3
|
1 |
README.i18n |
|
2 |
|
|
3 |
|
|
4 |
Using a translation |
|
5 |
----------------------------------------------------------------------- |
|
6 |
|
|
7 |
All available translations can be found in the locale directory in the |
|
8 |
poweradmin base directory. The Dutch translation for example, can be |
|
9 |
found in nl_NL. To review the status of the translation, you can have a |
|
10 |
look at the nl.po file in the LC_MESSAGE directory. |
|
11 |
|
|
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 |
|
14 |
language, for example "nl_NL". |
|
15 |
|
6
|
16 |
If this doesn't work, most likely your system itself is not setup |
|
17 |
properly. See <https://rejo.zenger.nl/misc/1176630442.php> maybe of |
|
18 |
some help. |
3
|
19 |
|
|
20 |
|
|
21 |
Adding a new translation |
|
22 |
----------------------------------------------------------------------- |
|
23 |
|
|
24 |
If you want to create a new translation you can do the following. For |
|
25 |
example, if you want to create a Dutch translation: |
|
26 |
|
|
27 |
- cd /path/to/poweradmin/ |
|
28 |
- mkdir -p locale/nl_NL/LC_MESSAGES/ |
|
29 |
- cp docs/template.pot locale/nl_NL/LC_MESSAGES/nl.po |
|
30 |
- cd locale/nl_NL/LC_MESSAGES/ |
|
31 |
- vim nl.po |
|
32 |
- msgfmt nl.po -o message.mo |
|
33 |
|
|
34 |
|
|
35 |
Updating the translation template file |
|
36 |
----------------------------------------------------------------------- |
|
37 |
|
|
38 |
If creating a new translation and you are not sure if the template file |
|
39 |
that was provided in the distribution, you may want to re-create the |
|
40 |
template file. To do so, do the following: |
|
41 |
|
|
42 |
|
|
43 |
- cd /path/to/poweradmin/ |
|
44 |
- xgettext --no-wrap -o docs/template.pot *.php inc/*.php |
|
45 |
|
|
46 |
The last command updates the template file in docs/ directory. |
|
47 |
|
|
48 |
|