From: Jan N. <ja...@gn...> - 2001-01-04 20:30:53
|
Arno Hollosi <aho...@in...> writes: > What else is there to do? Tasks I can think of: > - update localized versions > - write a locale/README (e.g. how to add your language -- Jan?) Currently have not too much time on my hands, but here's a (bit patched up) email I sent in response to a translation question. All info should be there. This would make a nice wiki page, maintained by new translators AddNewLocale :-) ./locale/README: From: Jan Nieuwenhuizen <ja...@gn...> Subject: Re: [Phpwiki-talk] translation To: php...@li... Cc: Arno Hollosi <aho...@in...>, Olivier Kaloudoff <ka...@ka...> Date: 14 Dec 2000 20:51:16 +0100 Organization: Jan at Appel Olivier Kaloudoff <ka...@ka...> writes: > I saw locale/translate.sh in the > 1.1.9 tarball. I seems to be useful *after* > translation. > > But no docs about how to start > translation for a new locale (fr). Just copy the locale/po/phpwiki.pot to fr.po, alongside nl.po. Then, translate all the strings to french. Emacs has a handy po translation mode for you. Most of the work, though, is in translating the pgsrc and template files. Easiest is to do: mkdir locale/fr cp -rv pgsrc locale/fr cp -rv templates locale/fr You may want to change the names of some pgsrc files afterwards. For anything you don't know, look at the `nl' or `de' versions*. After you've translated everything, you may want to check the result of your efforts, run: ./locale/translate.sh which generates the translation tables, the mo files**. Then, edit ./lib/config.php and change the lines that set $LANG to make phpwiki use your language, to make them look like this: // Select your language - default language "C": English // other languages available: Dutch "nl", Spanish "es", German "de" // $LANG="C"; $LANG="fr"; Phpwiki should now speak french. If you're unfamiliar with GNU gettext and po files, you may find some information at http://www.iro.umontreal.ca/contrib/po/HTML/ If you succeed, you may also want to add instructions to this translation doco for phpwiki ;-) Good luck, Jan. *) you have to get the filenames for the templates right, e.g. **)translate.sh is a simple script that tries to replace the usual `make po po-update'. It actually does these things: * make the .pot file up to date * merge differences into all translated .po files * generate .mo files * generate legacy php3 translation dictionary [this is the hairiest part and should be dropped when we drop php3 support] -- Jan Nieuwenhuizen <ja...@gn...> | GNU LilyPond - The music typesetter http://www.xs4all.nl/~jantien | http://www.lilypond.org -- Jan Nieuwenhuizen <ja...@gn...> | GNU LilyPond - The music typesetter http://www.xs4all.nl/~jantien | http://www.lilypond.org |