Skip to content

Commit e91936f

Browse files
committed
Language Editor: cool new features!
1) Untranslated phrases can now be sorted by "type", e.g. "UI element", "status bar message", "tooltip", etc. This allows translators with limited time to prioritize important phrases (UI elements) over less-important phrases (tooltips). 2) The language editor now lists the file(s) where a given phrase occurs. This makes it much easier to infer and/or double-check context. 3) The above features are made possible by a new mini phrase "database" that stores per-phrase information. The language file generator produces this db alongside the primary en-US language file. 4) The language editor now swaps between phrases much much *MUCH* faster. (Hash tables are used to map between listbox indices and array indices, vs the naive search used before.) Also included in this commit is a new German localization c/o Roy K. Thank you, Roy!
1 parent ca8b5bf commit e91936f

18 files changed

Lines changed: 1222 additions & 445 deletions

App/PhotoDemon/Languages/French.xml

Lines changed: 54 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<langid>fr-FR</langid>
88
<langname>Français</langname>
9-
<langversion>6.7.589</langversion>
9+
<langversion>6.7.590</langversion>
1010
<langstatus>Complete</langstatus>
1111

1212
<author>Jean Jacques Piedfort (orig. Frank Donckers)</author>
@@ -4742,11 +4742,6 @@ La valeur finale doit être entre %3 and %4.</translation>
47424742
<translation>taille</translation>
47434743
</phrase>
47444744

4745-
<phrase>
4746-
<original>(messages will appear here at run-time)</original>
4747-
<translation>(les messages apparaissent ici au moment de l'exécution)</translation>
4748-
</phrase>
4749-
47504745
<phrase>
47514746
<original>Fit the image on-screen</original>
47524747
<translation>Adapter l'image à l'écran</translation>
@@ -4772,7 +4767,7 @@ La valeur finale doit être entre %3 and %4.</translation>
47724767
<translation>Changer l'unité de taille de l'image (affichée à gauche de cette boîte)</translation>
47734768
</phrase>
47744769

4775-
<!-- pdStatusBar.ctl contains 9 phrases. 2 were duplicates of existing phrases, so only 7 new phrases were written to file. -->
4770+
<!-- pdStatusBar.ctl contains 8 phrases. 2 were duplicates of existing phrases, so only 6 new phrases were written to file. -->
47764771

47774772
<phrase>
47784773
<original>PhotoDemon by Tanner Helland - www.photodemon.org</original>
@@ -12717,11 +12712,26 @@ Vous pouvez alors si besoin
1271712712
<translation></translation>
1271812713
</phrase>
1271912714

12715+
<phrase>
12716+
<original>UI elements</original>
12717+
<translation></translation>
12718+
</phrase>
12719+
1272012720
<phrase>
1272112721
<original>replace translation with reference text (Ctrl+U)</original>
1272212722
<translation></translation>
1272312723
</phrase>
1272412724

12725+
<phrase>
12726+
<original>list of phrases (%1 items)</original>
12727+
<translation>liste des phrases ( %1 items)</translation>
12728+
</phrase>
12729+
12730+
<phrase>
12731+
<original>phrase groups</original>
12732+
<translation></translation>
12733+
</phrase>
12734+
1272512735
<phrase>
1272612736
<original>Save this translation and proceed to the next phrase</original>
1272712737
<translation>Sauvegarder cette traduction et passer à la phrase suivante</translation>
@@ -12738,27 +12748,52 @@ Vous pouvez alors si besoin
1273812748
</phrase>
1273912749

1274012750
<phrase>
12741-
<original>phrase groups</original>
12751+
<original>Auto-translate all missing phrases</original>
1274212752
<translation></translation>
1274312753
</phrase>
1274412754

1274512755
<phrase>
12746-
<original>list of phrases (%1 items)</original>
12747-
<translation>liste des phrases ( %1 items)</translation>
12756+
<original>reference translation from .po file</original>
12757+
<translation></translation>
1274812758
</phrase>
1274912759

1275012760
<phrase>
12751-
<original>Auto-translate all missing phrases</original>
12761+
<original>(NOTE: CTRL+ENTER automatically saves and proceeds to next phrase.)</original>
1275212762
<translation></translation>
1275312763
</phrase>
1275412764

1275512765
<phrase>
12756-
<original>reference translation from .po file</original>
12766+
<original>phrase types</original>
1275712767
<translation></translation>
1275812768
</phrase>
1275912769

1276012770
<phrase>
12761-
<original>(NOTE: CTRL+ENTER automatically saves and proceeds to next phrase.)</original>
12771+
<original>action names</original>
12772+
<translation></translation>
12773+
</phrase>
12774+
12775+
<phrase>
12776+
<original>message boxes</original>
12777+
<translation></translation>
12778+
</phrase>
12779+
12780+
<phrase>
12781+
<original>status bar messages</original>
12782+
<translation></translation>
12783+
</phrase>
12784+
12785+
<phrase>
12786+
<original>tooltips</original>
12787+
<translation></translation>
12788+
</phrase>
12789+
12790+
<phrase>
12791+
<original>files where this phrase occurs</original>
12792+
<translation></translation>
12793+
</phrase>
12794+
12795+
<phrase>
12796+
<original>miscellaneous</original>
1276212797
<translation></translation>
1276312798
</phrase>
1276412799

@@ -12998,7 +13033,7 @@ Pour continuer, veuillez télécharger une nouvelle copie de PhotoDemon de photo
1299813033
<translation></translation>
1299913034
</phrase>
1300013035

13001-
<!-- Tools_LanguageEditor.frm contains 101 phrases. 45 were duplicates of existing phrases, so only 56 new phrases were written to file. -->
13036+
<!-- Tools_LanguageEditor.frm contains 108 phrases. 44 were duplicates of existing phrases, so only 64 new phrases were written to file. -->
1300213037

1300313038
<phrase>
1300413039
<original>Create macro from session history</original>
@@ -13931,12 +13966,12 @@ Si vous choisissez de désactiver les mises à jour, n'oubliez pas de visiter ph
1393113966

1393213967
<!-- Tools_ScreenVideoPrefs.frm contains 19 phrases. 9 were duplicates of existing phrases, so only 10 new phrases were written to file. -->
1393313968

13934-
<!-- Automatic text extraction complete. -->
13969+
<!-- Automatic text generation complete. -->
1393513970

13936-
<phrasecount>2633</phrasecount>
13971+
<phrasecount>2640</phrasecount>
1393713972

13938-
<!-- As of this build, PhotoDemon contains 5509 phrases. -->
13939-
<!-- 2876 are duplicates, so only 2633 unique phrases have been written to file. -->
13940-
<!-- These 2633 phrases contain approximately 11409 total words. -->
13973+
<!-- As of this build, PhotoDemon contains 5515 phrases. -->
13974+
<!-- 2875 are duplicates, so only 2640 unique phrases have been written to file. -->
13975+
<!-- These 2640 phrases contain approximately 11421 total words. -->
1394113976

1394213977
</pdData>

App/PhotoDemon/Languages/German.xml

Lines changed: 59 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<langid>de-DE</langid>
88
<langname>Deutsch (German)</langname>
9-
<langversion>9.0.1683</langversion>
9+
<langversion>9.0.1701</langversion>
1010
<langstatus>Up-to-date</langstatus>
1111

1212
<author>rk (ehem. Frank Donckers, Helmut Kuerbiss)</author>
@@ -4444,7 +4444,7 @@ Sie werden diese Datei unter Verwendung Ihres Internet-Browsers manuell herunter
44444444

44454445
<phrase>
44464446
<original>This button will open a new issue page in your web browser. You will need a GitHub account to proceed.</original>
4447-
<translation></translation>
4447+
<translation>Dieser Button wird eine neue Issue-Seite in Ihrem Webbrowser öffnen. Sie benötigen einen GitHub-Account, um fortzufahren.</translation>
44484448
</phrase>
44494449

44504450
<phrase>
@@ -4744,11 +4744,6 @@ Der finale Wert muss zwischen %3 und %4 liegen.</translation>
47444744
<translation>Größe</translation>
47454745
</phrase>
47464746

4747-
<phrase>
4748-
<original>(messages will appear here at run-time)</original>
4749-
<translation>(Nachrichten werden bei Laufzeit hier erscheinen)</translation>
4750-
</phrase>
4751-
47524747
<phrase>
47534748
<original>Fit the image on-screen</original>
47544749
<translation>Anpassen des Bildes auf dem Screen</translation>
@@ -4774,7 +4769,7 @@ Der finale Wert muss zwischen %3 und %4 liegen.</translation>
47744769
<translation>Die links von dieser Box angezeigte Bildgrößeneinheit ändern</translation>
47754770
</phrase>
47764771

4777-
<!-- pdStatusBar.ctl contains 9 phrases. 2 were duplicates of existing phrases, so only 7 new phrases were written to file. -->
4772+
<!-- pdStatusBar.ctl contains 8 phrases. 2 were duplicates of existing phrases, so only 6 new phrases were written to file. -->
47784773

47794774
<phrase>
47804775
<original>PhotoDemon by Tanner Helland - www.photodemon.org</original>
@@ -12711,34 +12706,39 @@ Möchten Sie Ihre Batchliste vor dem Beenden speichern?</translation>
1271112706
<translation>Klicken Sie hier für detaillierte Instruktionen (in Englisch)</translation>
1271212707
</phrase>
1271312708

12709+
<phrase>
12710+
<original>UI elements</original>
12711+
<translation></translation>
12712+
</phrase>
12713+
1271412714
<phrase>
1271512715
<original>replace translation with reference text (Ctrl+U)</original>
1271612716
<translation>Übersetzung durch Referenztext ersetzen (Strg+U)</translation>
1271712717
</phrase>
1271812718

1271912719
<phrase>
12720-
<original>Save this translation and proceed to the next phrase</original>
12721-
<translation>Diese Übersetzung speichern und mit der nächsten Phrase fortfahren</translation>
12720+
<original>list of phrases (%1 items)</original>
12721+
<translation>Liste der Phrasen (%1 Items)</translation>
1272212722
</phrase>
1272312723

1272412724
<phrase>
12725-
<original>translated phrase</original>
12726-
<translation>Übersetzte Phrase</translation>
12725+
<original>phrase groups</original>
12726+
<translation>Phrasengruppen</translation>
1272712727
</phrase>
1272812728

1272912729
<phrase>
12730-
<original>original phrase</original>
12731-
<translation>Original-Phrase</translation>
12730+
<original>Save this translation and proceed to the next phrase</original>
12731+
<translation>Diese Übersetzung speichern und mit der nächsten Phrase fortfahren</translation>
1273212732
</phrase>
1273312733

1273412734
<phrase>
12735-
<original>phrase groups</original>
12736-
<translation>Phrasengruppen</translation>
12735+
<original>translated phrase</original>
12736+
<translation>Übersetzte Phrase</translation>
1273712737
</phrase>
1273812738

1273912739
<phrase>
12740-
<original>list of phrases (%1 items)</original>
12741-
<translation>Liste der Phrasen (%1 Items)</translation>
12740+
<original>original phrase</original>
12741+
<translation>Original-Phrase</translation>
1274212742
</phrase>
1274312743

1274412744
<phrase>
@@ -12756,6 +12756,41 @@ Möchten Sie Ihre Batchliste vor dem Beenden speichern?</translation>
1275612756
<translation>(HINWEIS: STRG+ENTER speichert automatisch und fährt mit nächster Phrase fort.)</translation>
1275712757
</phrase>
1275812758

12759+
<phrase>
12760+
<original>phrase types</original>
12761+
<translation></translation>
12762+
</phrase>
12763+
12764+
<phrase>
12765+
<original>action names</original>
12766+
<translation></translation>
12767+
</phrase>
12768+
12769+
<phrase>
12770+
<original>message boxes</original>
12771+
<translation></translation>
12772+
</phrase>
12773+
12774+
<phrase>
12775+
<original>status bar messages</original>
12776+
<translation></translation>
12777+
</phrase>
12778+
12779+
<phrase>
12780+
<original>tooltips</original>
12781+
<translation></translation>
12782+
</phrase>
12783+
12784+
<phrase>
12785+
<original>files where this phrase occurs</original>
12786+
<translation></translation>
12787+
</phrase>
12788+
12789+
<phrase>
12790+
<original>miscellaneous</original>
12791+
<translation></translation>
12792+
</phrase>
12793+
1275912794
<phrase>
1276012795
<original>copy system locale</original>
1276112796
<translation>System-Locale kopieren</translation>
@@ -12994,7 +13029,7 @@ Um fortzusetzen, laden Sie bitte eine neue Version von PhotoDemon von photodemon
1299413029
<translation>(autom. gespeichert um/am %1)</translation>
1299513030
</phrase>
1299613031

12997-
<!-- Tools_LanguageEditor.frm contains 101 phrases. 45 were duplicates of existing phrases, so only 56 new phrases were written to file. -->
13032+
<!-- Tools_LanguageEditor.frm contains 108 phrases. 44 were duplicates of existing phrases, so only 64 new phrases were written to file. -->
1299813033

1299913034
<phrase>
1300013035
<original>Create macro from session history</original>
@@ -13918,12 +13953,12 @@ Wenn Sie sich dennoch dafür entscheiden, Updates zu deaktivieren, vergessen Sie
1391813953

1391913954
<!-- Tools_ScreenVideoPrefs.frm contains 19 phrases. 9 were duplicates of existing phrases, so only 10 new phrases were written to file. -->
1392013955

13921-
<!-- Automatic text extraction complete. -->
13956+
<!-- Automatic text generation complete. -->
1392213957

13923-
<phrasecount>2633</phrasecount>
13958+
<phrasecount>2640</phrasecount>
1392413959

13925-
<!-- As of this build, PhotoDemon contains 5509 phrases. -->
13926-
<!-- 2876 are duplicates, so only 2633 unique phrases have been written to file. -->
13927-
<!-- These 2633 phrases contain approximately 11409 total words. -->
13960+
<!-- As of this build, PhotoDemon contains 5515 phrases. -->
13961+
<!-- 2875 are duplicates, so only 2640 unique phrases have been written to file. -->
13962+
<!-- These 2640 phrases contain approximately 11421 total words. -->
1392813963

1392913964
</pdData>

0 commit comments

Comments
 (0)