From dc1e3e443117f8643906cdb8792404377a809624 Mon Sep 17 00:00:00 2001 From: SARL ENR-68 Date: Thu, 26 Sep 2013 18:11:52 +0200 Subject: add po-update.sh and po-compile.sh for translations --- i18n.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 i18n.md (limited to 'i18n.md') diff --git a/i18n.md b/i18n.md new file mode 100644 index 0000000..2049415 --- /dev/null +++ b/i18n.md @@ -0,0 +1,30 @@ +# Translating IsoDumper + +First, make sure you have installed the `gettext` package. + +Here are the steps to add/update a translation (you should run all scripts from +the source root): + +1. Get an up-to-date copy of the source files. Preferrably, make a clone on + GitHub and clone it locally on your machine; this way you can later make a + pull request to the main project. + +2. Run `./tools/po-update.sh `; it will create/update the file + `./po/.po`. + +3. Edit `./po/.po` with your favourite editor (just make sure it saves + the file with the UTF-8 encoding). For each string in english (msgid), edit + the translation (msgstr); if you leave msgstr empty, the string will remain + untranslated. + + Alternatively, you can use the excellent `poedit`. + +4. Run `./tools/po-compile.sh`. It will bring up-to-date all the compiled + language files, necessary at runtime. + +5. Start IsoDumper (`./bin/isodumper`). By default it will pick up the system languge + from your environment; to start it in another language, run + `LANGUAGE= ./bin/isodumper`. + +You can edit the translation iteratively, just repeat from step 3. +If the upstream changes, do a `git pull` and then repeat from step 2. -- cgit v1.2.1