diff --git a/data/de.johrpan.musicus.desktop.in b/data/de.johrpan.musicus.desktop.in index 7ae5726..ee4bf1c 100644 --- a/data/de.johrpan.musicus.desktop.in +++ b/data/de.johrpan.musicus.desktop.in @@ -1,5 +1,5 @@ [Desktop Entry] -Name=musicus +Name=Musicus Exec=musicus Icon=de.johrpan.musicus Terminal=false diff --git a/po/HACKING.md b/po/HACKING.md new file mode 100644 index 0000000..153c33b --- /dev/null +++ b/po/HACKING.md @@ -0,0 +1,27 @@ +# Internationalization + +Execute the following commands from the project root directory to update +translation files whenever translatable strings have been changed. + +## 1. Update `template.pot` + +```bash +xgettext \ + --from-code=UTF-8 \ + --add-comments \ + --keyword=_ \ + --keyword=C_:1c,2 \ + --files-from=po/POTFILES \ + --output=po/template.pot +``` + +## 2. Update translation files + +```bash +msgmerge \ + --update \ + --backup=off \ + --no-fuzzy-matching \ + po/de.po \ + po/template.pot +``` \ No newline at end of file diff --git a/po/de.po b/po/de.po index 46e4cbc..89876c4 100644 --- a/po/de.po +++ b/po/de.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-06-28 14:50+0200\n" +"POT-Creation-Date: 2023-07-06 14:30+0200\n" "PO-Revision-Date: 2023-06-28 14:58+0200\n" "Last-Translator: \n" "Language-Team: German \n" @@ -19,12 +19,12 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: data/de.johrpan.musicus.desktop.in:3 -msgid "musicus" -msgstr "" +msgid "Musicus" +msgstr "Musicus" #: data/de.johrpan.musicus.appdata.xml.in:7 msgid "No description" -msgstr "" +msgstr "Keine Beschreibung" #: src/window.blp:20 msgid "Hello, World!" diff --git a/po/template.pot b/po/template.pot index 036a2ee..fb32063 100644 --- a/po/template.pot +++ b/po/template.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-06-28 14:50+0200\n" +"POT-Creation-Date: 2023-07-06 14:30+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -18,7 +18,7 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" #: data/de.johrpan.musicus.desktop.in:3 -msgid "musicus" +msgid "Musicus" msgstr "" #: data/de.johrpan.musicus.appdata.xml.in:7