X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=doc%2Ftranslating.txt;h=cdb4debbe30826c978cd2b1fb8aa0c6ba612d18e;hp=9df748b36acc21081c45e0b8e463529729275697;hb=e47c673b9cce49c297073084b8b974d1f03235c2;hpb=974dd86da8a0c564c2508c98af426ac96fd2efa6 diff --git a/doc/translating.txt b/doc/translating.txt index 9df748b3..cdb4debb 100644 --- a/doc/translating.txt +++ b/doc/translating.txt @@ -13,7 +13,7 @@ a) You must have gettext installed. If it is not installed you can b) Find the language code for the language you are going to translate into. A list of language codes can be found at - . If + . If there is a 2 letter code for the language, use this. Create a directory squirrelmail/locale/language_code/LC_MESSAGES/. @@ -46,7 +46,7 @@ a) There should always be an updated template containing all strings msgmerge squirrelmail/locale/language/LC_MESSAGES/squirrelmail.po \ squirrelmail/po/squirrelmail.po > \ -squirrelmail/locale/language/LC_MESSAGES/squirrelmail.po +squirrelmail/locale/language/LC_MESSAGES/squirrelmail.po.new This should keep all strings that are unchanged and comment out all strings that are no longer in use. You might want to make a copy @@ -61,8 +61,10 @@ b) Rung msgfmt again to create a new binary file. This script comes from Serek: #!/bin/bash -xgettext --keyword=_ -keyword=N_ --default-domain=squirrelmail/po/squirrelmail\ --C squirrelmail/src/*.php -xgettext --keyword=_ -keyword=N_ --default-domain=squirrelmail/po/squirrelmail\ --C -j squirrelmail/functions/*.php +xgettext --keyword=_ -keyword=N_ \ + --default-domain=squirrelmail/po/squirrelmail \ + -C squirrelmail/src/*.php +xgettext --keyword=_ -keyword=N_ \ + --default-domain=squirrelmail/po/squirrelmail \ + -C -j squirrelmail/functions/*.php