Update translation files

This commit is contained in:
Elias Projahn 2023-07-06 17:50:39 +02:00
parent 9e39c9283a
commit c9900691b5
4 changed files with 34 additions and 7 deletions

27
po/HACKING.md Normal file
View 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
```