mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 11:47:25 +01:00
Update translation files
This commit is contained in:
parent
9e39c9283a
commit
c9900691b5
4 changed files with 34 additions and 7 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Name=musicus
|
Name=Musicus
|
||||||
Exec=musicus
|
Exec=musicus
|
||||||
Icon=de.johrpan.musicus
|
Icon=de.johrpan.musicus
|
||||||
Terminal=false
|
Terminal=false
|
||||||
|
|
|
||||||
27
po/HACKING.md
Normal file
27
po/HACKING.md
Normal file
|
|
@ -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
|
||||||
|
```
|
||||||
8
po/de.po
8
po/de.po
|
|
@ -8,7 +8,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \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"
|
"PO-Revision-Date: 2023-06-28 14:58+0200\n"
|
||||||
"Last-Translator: <elias@johrpan.de>\n"
|
"Last-Translator: <elias@johrpan.de>\n"
|
||||||
"Language-Team: German <translation-team-de@lists.sourceforge.net>\n"
|
"Language-Team: German <translation-team-de@lists.sourceforge.net>\n"
|
||||||
|
|
@ -19,12 +19,12 @@ msgstr ""
|
||||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
|
|
||||||
#: data/de.johrpan.musicus.desktop.in:3
|
#: data/de.johrpan.musicus.desktop.in:3
|
||||||
msgid "musicus"
|
msgid "Musicus"
|
||||||
msgstr ""
|
msgstr "Musicus"
|
||||||
|
|
||||||
#: data/de.johrpan.musicus.appdata.xml.in:7
|
#: data/de.johrpan.musicus.appdata.xml.in:7
|
||||||
msgid "No description"
|
msgid "No description"
|
||||||
msgstr ""
|
msgstr "Keine Beschreibung"
|
||||||
|
|
||||||
#: src/window.blp:20
|
#: src/window.blp:20
|
||||||
msgid "Hello, World!"
|
msgid "Hello, World!"
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \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"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
|
@ -18,7 +18,7 @@ msgstr ""
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
|
||||||
#: data/de.johrpan.musicus.desktop.in:3
|
#: data/de.johrpan.musicus.desktop.in:3
|
||||||
msgid "musicus"
|
msgid "Musicus"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: data/de.johrpan.musicus.appdata.xml.in:7
|
#: data/de.johrpan.musicus.appdata.xml.in:7
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue