diff -r 9a485c41cfcf -r 64525a2eb098 docs/README.i18n --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docs/README.i18n Mon Apr 16 19:48:27 2007 +0000 @@ -0,0 +1,46 @@ +README.i18n + + +Using a translation +----------------------------------------------------------------------- + +All available translations can be found in the locale directory in the +poweradmin base directory. The Dutch translation for example, can be +found in nl_NL. To review the status of the translation, you can have a +look at the nl.po file in the LC_MESSAGE directory. + +If you want to use a translation, say the nl_NL, all you have to do is +edit inc/i18n.php file and change the $language variable to the desired +language, for example "nl_NL". + +If this doesn't work, your system isn't setup properly. + + +Adding a new translation +----------------------------------------------------------------------- + +If you want to create a new translation you can do the following. For +example, if you want to create a Dutch translation: + + - cd /path/to/poweradmin/ + - mkdir -p locale/nl_NL/LC_MESSAGES/ + - cp docs/template.pot locale/nl_NL/LC_MESSAGES/nl.po + - cd locale/nl_NL/LC_MESSAGES/ + - vim nl.po + - msgfmt nl.po -o message.mo + + +Updating the translation template file +----------------------------------------------------------------------- + +If creating a new translation and you are not sure if the template file +that was provided in the distribution, you may want to re-create the +template file. To do so, do the following: + + + - cd /path/to/poweradmin/ + - xgettext --no-wrap -o docs/template.pot *.php inc/*.php + +The last command updates the template file in docs/ directory. + +