Skip to content

Commit 2b9bedc

Browse files
committed
fixed #2 workbench import/export
2 parents fa06900 + bfe9fc4 commit 2b9bedc

File tree

11 files changed

+530
-54
lines changed

11 files changed

+530
-54
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## 0.0.3 (2019-XX-XX)
44

55
* Implemented #1: Workbenches can be renamed.
6+
* Implemented #2: Workbenches can be imported and exported.
67
* Implemented #8: Warnings because of unnamed UI elements are turned off by default. If required, they can be activated in the configuration.
78

89
## 0.0.2 (2019-09-03)

i18n/qgist_de.qm

505 Bytes
Binary file not shown.

i18n/qgist_de.ts

Lines changed: 126 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<translation>Werkbänke verwalten</translation>
2525
</message>
2626
<message>
27-
<location filename="../qgist/workbench/ui_manager.py" line="144"/>
27+
<location filename="../qgist/workbench/ui_manager.py" line="147"/>
2828
<source>Name of new workbench</source>
2929
<translation>Name der neuen Werkbank</translation>
3030
</message>
@@ -209,7 +209,7 @@
209209
<translation type="unfinished"></translation>
210210
</message>
211211
<message>
212-
<location filename="../qgist/workbench/dtype_fsm.py" line="221"/>
212+
<location filename="../qgist/workbench/dtype_fsm.py" line="252"/>
213213
<source>&quot;active_workbench&quot; must not be changed. (dtype_fsm active)</source>
214214
<translation type="unfinished"></translation>
215215
</message>
@@ -254,72 +254,72 @@
254254
<translation type="unfinished"></translation>
255255
</message>
256256
<message>
257-
<location filename="../qgist/config.py" line="67"/>
257+
<location filename="../qgist/config.py" line="68"/>
258258
<source>QGIS settings path does not point to a directory. (config path)</source>
259259
<translation type="unfinished"></translation>
260260
</message>
261261
<message>
262-
<location filename="../qgist/config.py" line="69"/>
262+
<location filename="../qgist/config.py" line="70"/>
263263
<source>QGIS settings path does not exist. (config path)</source>
264264
<translation type="unfinished"></translation>
265265
</message>
266266
<message>
267-
<location filename="../qgist/config.py" line="73"/>
267+
<location filename="../qgist/config.py" line="74"/>
268268
<source>QGIS plugin configuration path exists but is not a directory. (config path)</source>
269269
<translation type="unfinished"></translation>
270270
</message>
271271
<message>
272-
<location filename="../qgist/config.py" line="79"/>
272+
<location filename="../qgist/config.py" line="80"/>
273273
<source>QGIST configuration path exists but is not a directory. (config path)</source>
274274
<translation type="unfinished"></translation>
275275
</message>
276276
<message>
277-
<location filename="../qgist/config.py" line="95"/>
277+
<location filename="../qgist/config.py" line="96"/>
278278
<source>&quot;fn&quot; must be str. (config)</source>
279279
<translation type="unfinished"></translation>
280280
</message>
281281
<message>
282-
<location filename="../qgist/config.py" line="101"/>
282+
<location filename="../qgist/config.py" line="102"/>
283283
<source>Parent of &quot;fn&quot; must exists. (config)</source>
284284
<translation type="unfinished"></translation>
285285
</message>
286286
<message>
287-
<location filename="../qgist/config.py" line="103"/>
287+
<location filename="../qgist/config.py" line="104"/>
288288
<source>Parent of &quot;fn&quot; must be a directory. (config)</source>
289289
<translation type="unfinished"></translation>
290290
</message>
291291
<message>
292-
<location filename="../qgist/config.py" line="108"/>
292+
<location filename="../qgist/config.py" line="109"/>
293293
<source>&quot;fn&quot; must be a file. (config)</source>
294294
<translation type="unfinished"></translation>
295295
</message>
296296
<message>
297-
<location filename="../qgist/config.py" line="112"/>
297+
<location filename="../qgist/config.py" line="117"/>
298298
<source>Configuration data must be a dict. (config)</source>
299299
<translation type="unfinished"></translation>
300300
</message>
301301
<message>
302-
<location filename="../qgist/config.py" line="117"/>
302+
<location filename="../qgist/config.py" line="122"/>
303303
<source>&quot;name&quot; must be str. (config getitem)</source>
304304
<translation type="unfinished"></translation>
305305
</message>
306306
<message>
307-
<location filename="../qgist/config.py" line="119"/>
307+
<location filename="../qgist/config.py" line="124"/>
308308
<source>Unknown configuration field &quot;name&quot;. (config getitem)</source>
309309
<translation type="unfinished"></translation>
310310
</message>
311311
<message>
312-
<location filename="../qgist/config.py" line="126"/>
312+
<location filename="../qgist/config.py" line="131"/>
313313
<source>&quot;name&quot; must be str. (config setitem)</source>
314314
<translation type="unfinished"></translation>
315315
</message>
316316
<message>
317-
<location filename="../qgist/config.py" line="128"/>
317+
<location filename="../qgist/config.py" line="133"/>
318318
<source>&quot;value&quot; contains not allowed types. (config setitem)</source>
319319
<translation type="unfinished"></translation>
320320
</message>
321321
<message>
322-
<location filename="../qgist/config.py" line="174"/>
322+
<location filename="../qgist/config.py" line="179"/>
323323
<source>Could not backup old configuration before saving new - too many old backups. (config save)</source>
324324
<translation type="unfinished"></translation>
325325
</message>
@@ -379,37 +379,37 @@
379379
<translation type="unfinished"></translation>
380380
</message>
381381
<message>
382-
<location filename="../qgist/workbench/ui_manager.py" line="77"/>
382+
<location filename="../qgist/workbench/ui_manager.py" line="80"/>
383383
<source>&quot;plugin_root_fld&quot; must be str. (ui_manager)</source>
384384
<translation type="unfinished"></translation>
385385
</message>
386386
<message>
387-
<location filename="../qgist/workbench/ui_manager.py" line="79"/>
387+
<location filename="../qgist/workbench/ui_manager.py" line="82"/>
388388
<source>&quot;plugin_root_fld&quot; must exists. (ui_manager)</source>
389389
<translation type="unfinished"></translation>
390390
</message>
391391
<message>
392-
<location filename="../qgist/workbench/ui_manager.py" line="81"/>
392+
<location filename="../qgist/workbench/ui_manager.py" line="84"/>
393393
<source>&quot;plugin_root_fld&quot; must be a directory. (ui_manager)</source>
394394
<translation type="unfinished"></translation>
395395
</message>
396396
<message>
397-
<location filename="../qgist/workbench/ui_manager.py" line="83"/>
397+
<location filename="../qgist/workbench/ui_manager.py" line="86"/>
398398
<source>&quot;mainwindow&quot; must be a QGIS mainwindow. (ui_manager)</source>
399399
<translation type="unfinished"></translation>
400400
</message>
401401
<message>
402-
<location filename="../qgist/workbench/ui_manager.py" line="85"/>
402+
<location filename="../qgist/workbench/ui_manager.py" line="88"/>
403403
<source>&quot;combobox_workbench&quot; must be a QGis mainwindow. (ui_manager)</source>
404404
<translation type="unfinished"></translation>
405405
</message>
406406
<message>
407-
<location filename="../qgist/workbench/ui_manager.py" line="87"/>
407+
<location filename="../qgist/workbench/ui_manager.py" line="90"/>
408408
<source>&quot;combobox_workbench_update&quot; must be callable. (ui_manager)</source>
409409
<translation type="unfinished"></translation>
410410
</message>
411411
<message>
412-
<location filename="../qgist/workbench/ui_manager.py" line="89"/>
412+
<location filename="../qgist/workbench/ui_manager.py" line="92"/>
413413
<source>&quot;fsm&quot; must be a workbench finite state machine. (ui_manager)</source>
414414
<translation type="unfinished"></translation>
415415
</message>
@@ -529,12 +529,12 @@
529529
<translation type="unfinished"></translation>
530530
</message>
531531
<message>
532-
<location filename="../qgist/workbench/ui_manager_base.py" line="132"/>
532+
<location filename="../qgist/workbench/ui_manager_base.py" line="134"/>
533533
<source>Warn if UI elements can not be uniquely identified</source>
534534
<translation>Warnen, wenn UI-Elemente nicht eindeutig identifiziert werden können</translation>
535535
</message>
536536
<message>
537-
<location filename="../qgist/workbench/dtype_fsm.py" line="231"/>
537+
<location filename="../qgist/workbench/dtype_fsm.py" line="262"/>
538538
<source>&quot;config&quot; must not be changed. (dtype_fsm config)</source>
539539
<translation type="unfinished"></translation>
540540
</message>
@@ -544,9 +544,109 @@
544544
<translation>Werkbank umbenennen</translation>
545545
</message>
546546
<message>
547-
<location filename="../qgist/workbench/ui_manager.py" line="193"/>
547+
<location filename="../qgist/workbench/ui_manager.py" line="196"/>
548548
<source>New name of workbench</source>
549549
<translation>Neuer Name für Werkbank</translation>
550550
</message>
551+
<message>
552+
<location filename="../qgist/workbench/dtype_fsm.py" line="208"/>
553+
<source>&quot;workbench_dict&quot; must be dict. (dtype_fsm import)</source>
554+
<translation type="unfinished"></translation>
555+
</message>
556+
<message>
557+
<location filename="../qgist/workbench/dtype_fsm.py" line="210"/>
558+
<source>&quot;workbench_dict&quot; does not contain a name. (dtype_fsm import)</source>
559+
<translation type="unfinished"></translation>
560+
</message>
561+
<message>
562+
<location filename="../qgist/workbench/dtype_fsm.py" line="212"/>
563+
<source>&quot;mainwindow&quot; must be a QGis mainwindow. (dtype_fsm import)</source>
564+
<translation type="unfinished"></translation>
565+
</message>
566+
<message>
567+
<location filename="../qgist/workbench/dtype_fsm.py" line="217"/>
568+
<source>&quot;name&quot; is a known workbench, i.e. already exists. (dtype_fsm import)</source>
569+
<translation type="unfinished"></translation>
570+
</message>
571+
<message>
572+
<location filename="../qgist/workbench/dtype_fsm.py" line="219"/>
573+
<source>&quot;name&quot; is empty. (dtype_fsm import)</source>
574+
<translation type="unfinished"></translation>
575+
</message>
576+
<message>
577+
<location filename="../qgist/workbench/dtype_fsm.py" line="230"/>
578+
<source>&quot;name&quot; must be str. (dtype_fsm export)</source>
579+
<translation type="unfinished"></translation>
580+
</message>
581+
<message>
582+
<location filename="../qgist/workbench/dtype_fsm.py" line="232"/>
583+
<source>&quot;name&quot; is not a known workbench. (dtype_fsm export)</source>
584+
<translation type="unfinished"></translation>
585+
</message>
586+
<message>
587+
<location filename="../qgist/workbench/ui_manager_base.py" line="115"/>
588+
<source>Import workbench</source>
589+
<translation>Werkbank importieren</translation>
590+
</message>
591+
<message>
592+
<location filename="../qgist/workbench/ui_manager_base.py" line="116"/>
593+
<source>Export workbench</source>
594+
<translation>Werkbank exportieren</translation>
595+
</message>
596+
<message>
597+
<location filename="../qgist/config.py" line="115"/>
598+
<source>Config does not contain valid JSON. (config)</source>
599+
<translation type="unfinished"></translation>
600+
</message>
601+
<message>
602+
<location filename="../qgist/config.py" line="192"/>
603+
<source>&quot;fn&quot; must be str. (config import)</source>
604+
<translation type="unfinished"></translation>
605+
</message>
606+
<message>
607+
<location filename="../qgist/config.py" line="194"/>
608+
<source>&quot;fn&quot; must exists. (config import)</source>
609+
<translation type="unfinished"></translation>
610+
</message>
611+
<message>
612+
<location filename="../qgist/config.py" line="196"/>
613+
<source>&quot;fn&quot; must be a file. (config import)</source>
614+
<translation type="unfinished"></translation>
615+
</message>
616+
<message>
617+
<location filename="../qgist/config.py" line="204"/>
618+
<source>&quot;fn&quot; does not contain valid JSON. (config import)</source>
619+
<translation type="unfinished"></translation>
620+
</message>
621+
<message>
622+
<location filename="../qgist/config.py" line="212"/>
623+
<source>&quot;fn&quot; must be str. (config export)</source>
624+
<translation type="unfinished"></translation>
625+
</message>
626+
<message>
627+
<location filename="../qgist/config.py" line="214"/>
628+
<source>Parent of &quot;fn&quot; must exists. (config export)</source>
629+
<translation type="unfinished"></translation>
630+
</message>
631+
<message>
632+
<location filename="../qgist/config.py" line="216"/>
633+
<source>Parent of &quot;fn&quot; must be a directory. (config export)</source>
634+
<translation type="unfinished"></translation>
635+
</message>
636+
<message>
637+
<location filename="../qgist/config.py" line="218"/>
638+
<source>&quot;value&quot; contains not allowed types. (config export)</source>
639+
<translation type="unfinished"></translation>
640+
</message>
641+
<message>
642+
<location filename="../qgist/workbench/ui_manager.py" line="219"/>
643+
<source>Import workbench from file</source>
644+
<translation>Importiere Werkbank aus Datei</translation>
645+
</message>
646+
<message>
647+
<location filename="../qgist/workbench/ui_manager.py" line="243"/>
648+
<source>Export workbench to file</source>
649+
<translation>Exportiere Werkbank in Datei</translation>
650+
</message>
551651
</context>
552652
</TS>

0 commit comments

Comments
 (0)