X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=doc%2Ftranslating.txt;h=dee35a30d37b5e15b1ecc9c8965baf946ce94e5a;hb=e697b6cc39af08f80d3ee3743c9d4088791af634;hp=ef281023e670ea2d73cbef3b8cf1e2a9fab7897b;hpb=7f029a23034280bf93d81aaa495083ef31228729;p=squirrelmail.git diff --git a/doc/translating.txt b/doc/translating.txt index ef281023..dee35a30 100644 --- a/doc/translating.txt +++ b/doc/translating.txt @@ -13,7 +13,8 @@ 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 + there is a 2 letter code for the language, use this. Create a directory squirrelmail/locale/language_code/LC_MESSAGES/. Copy squirrelmail/po/squirrelmail.po into this directory. This is the @@ -31,6 +32,9 @@ c) To translate the actual strings fill inn the msgstr after each d) Add the language name and language code to the array at the top of squirrelmail/functions/i18n.php. +There is also a small script in the po/ directory that can help in +creating charset mappings from the mappings files that are provided by +the Unicode consortium. 2. Maintaining translations --------------------------- @@ -45,7 +49,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 @@ -60,8 +64,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