docs/README.i18n
changeset 42 7f13cbdca3c7
parent 13 2ff220cfde13
equal deleted inserted replaced
41:48f2ac49ec24 42:7f13cbdca3c7
     5 -----------------------------------------------------------------------
     5 -----------------------------------------------------------------------
     6 
     6 
     7 All available translations can be found in the locale directory in the
     7 All available translations can be found in the locale directory in the
     8 poweradmin base directory. The Dutch translation for example, can be
     8 poweradmin base directory. The Dutch translation for example, can be
     9 found in locale/nl_NL. To review the status of the translation, you 
     9 found in locale/nl_NL. To review the status of the translation, you 
    10 can have a look at the nl.po file in the LC_MESSAGE directory.
    10 can have a look at the nl.po file in the LC_MESSAGES directory.
    11 
    11 
    12 If you want to use a translation, say the nl_NL, all you have to do is 
    12 If you want to use a translation, say the nl_NL, all you have to do is 
    13 edit inc/i18n.php file and change the $language variable to the desired
    13 edit inc/i18n.php file and change the $language variable to the desired
    14 language, for example "nl_NL".
    14 language, for example "nl_NL".
    15 
    15 
    16 If this doesn't work, please try to do the following:
    16 If this doesn't work, please try to do the following:
    17 
    17 
    18  - cd /path/to/poweradmin/locale/$lang/LC_MESSAGES/
    18  - cd /path/to/poweradmin/locale/$lang/LC_MESSAGES/
    19  - msgfmt $lang.po -o message.mo 
    19  - msgfmt $lang.po -o messages.mo 
    20 
    20 
    21 If that doesn't help either, most likely your system itself is not
    21 If that doesn't help either, most likely your system itself is not
    22 setup properly. See <https://rejo.zenger.nl/misc/1176630442.php> maybe
    22 setup properly. See <https://rejo.zenger.nl/misc/1176630442.php> maybe
    23 of some help.
    23 of some help.
    24 
    24 
    32  - cd /path/to/poweradmin/
    32  - cd /path/to/poweradmin/
    33  - mkdir -p locale/nl_NL/LC_MESSAGES/
    33  - mkdir -p locale/nl_NL/LC_MESSAGES/
    34  - cp docs/template.pot locale/nl_NL/LC_MESSAGES/nl.po
    34  - cp docs/template.pot locale/nl_NL/LC_MESSAGES/nl.po
    35  - cd locale/nl_NL/LC_MESSAGES/
    35  - cd locale/nl_NL/LC_MESSAGES/
    36  - vim nl.po
    36  - vim nl.po
    37  - msgfmt nl.po -o message.mo
    37  - msgfmt nl.po -o messages.mo
    38 
    38 
    39 
    39 
    40 Updating the translation template file
    40 Updating the translation template file
    41 -----------------------------------------------------------------------
    41 -----------------------------------------------------------------------
    42 
    42