docs/README.i18n
author rejo
Wed, 18 Apr 2007 21:08:07 +0000
changeset 6 9fcac40c1b0e
parent 3 64525a2eb098
child 11 9e103ea0585d
permissions -rw-r--r--
[feladat @ 7] - Fixed last major part of translation.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
     1
README.i18n
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
     2
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
     3
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
     4
Using a translation
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
     5
-----------------------------------------------------------------------
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
     6
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
     7
All available translations can be found in the locale directory in the
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
     8
poweradmin base directory. The Dutch translation for example, can be
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
     9
found in nl_NL. To review the status of the translation, you can have a
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    10
look at the nl.po file in the LC_MESSAGE directory.
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    11
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    12
If you want to use a translation, say the nl_NL, all you have to do is 
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    13
edit inc/i18n.php file and change the $language variable to the desired
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    14
language, for example "nl_NL".
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    15
6
9fcac40c1b0e [feladat @ 7]
rejo
parents: 3
diff changeset
    16
If this doesn't work, most likely your system itself is not setup 
9fcac40c1b0e [feladat @ 7]
rejo
parents: 3
diff changeset
    17
properly. See <https://rejo.zenger.nl/misc/1176630442.php> maybe of 
9fcac40c1b0e [feladat @ 7]
rejo
parents: 3
diff changeset
    18
some help.
3
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    19
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    20
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    21
Adding a new translation
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    22
-----------------------------------------------------------------------
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    23
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    24
If you want to create a new translation you can do the following. For
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    25
example, if you want to create a Dutch translation:
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    26
 
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    27
 - cd /path/to/poweradmin/
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    28
 - mkdir -p locale/nl_NL/LC_MESSAGES/
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    29
 - cp docs/template.pot locale/nl_NL/LC_MESSAGES/nl.po
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    30
 - cd locale/nl_NL/LC_MESSAGES/
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    31
 - vim nl.po
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    32
 - msgfmt nl.po -o message.mo
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    33
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    34
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    35
Updating the translation template file
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    36
-----------------------------------------------------------------------
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    37
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    38
If creating a new translation and you are not sure if the template file
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    39
that was provided in the distribution, you may want to re-create the 
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    40
template file. To do so, do the following:
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    41
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    42
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    43
 - cd /path/to/poweradmin/
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    44
 - xgettext --no-wrap -o docs/template.pot *.php inc/*.php
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    45
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    46
The last command updates the template file in docs/ directory.
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    47
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    48