X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=po%2FREADME.Translations;h=ef1af6aa4103c8b4c580c375cdb711a61e19e96a;hp=be8cb785e6519d0a890a3b740b88a016efb06950;hb=971ca150e3747d5f2c90c45bbbc1fe64bac48001;hpb=2573fe442275287321d828d88a5fb8d743952388 diff --git a/po/README.Translations b/po/README.Translations index be8cb785..ef1af6aa 100644 --- a/po/README.Translations +++ b/po/README.Translations @@ -1,5 +1,5 @@ In order to create or update a translatable file, run the following command -in the directory i18n/: +in the directory po/: ./update.sh xx @@ -17,11 +17,16 @@ NOTE: Remember to remove X-Virgin-Header line if you want to preserve your heade Qt itself does not use the *.po files, but a compact binary format (*.qm). These files will automatically be generated at build time. By default, all -languages will be built. To select languages, add -DLINGUAS="" -to your cmake call, where is a space-separated list of language -codes as explained above. +languages will be built. To select languages, use environment variable LINGUAS +to specify superset of languages you want to build in. As you can see in +example there we will build only Czech German and French translations. +EXAMPLE: +$ export LINGUAS="cs de fr" +$ cmake /path/to/source NOTE: You'll need lconvert installed with your Qt in order to generate translation files. Some distributions don't package that tool; in that case you won't get translations. +Regenerating .pot file: +lupdate ../src -ts quassel.ts && lconvert -i quassel.ts -o quassel.po && rm quassel.ts && mv quassel.po quassel.pot