docs/README.i18n
author rejo
Tue, 10 Jul 2007 21:24:06 +0000
changeset 37 b785e54690ce
parent 13 2ff220cfde13
child 42 7f13cbdca3c7
permissions -rw-r--r--
[feladat @ 84] Bugfix. The function zone_count() now also counts zones an owner has only partial access to, not just those zones the owner has full access to. This fixes just the count, the zones a user has partial access to are not (yet!) shown in the "list zones" page. Bugfix. In the zone listing the "edit" button is now show for users with access level 1. Untill now they were presented an overview of the zones they could change, but there was no link for them to actually edit the zone. Bugfix. Some of the buttons in the "edit zone" interface that are of no use to a user with access level 1 have been hidden. Bugfix. Make sure a user with access level 1 with only partial access to a zone cannot add new records to that zone. Only the zone owner should be able to add new record. Bugfix. If a user with access level 1 edits a record in a zone he has only partial access to, an error was shown because of call to a non- existing function in the PEAR:MDB2. This bug was most likely introduced while migrating from PEAR:DB to PEAR:MDB2. Bugfix. A user with access level 1 was able to delete all records of a zone he has only partial access to. Some additional checks have been added. Bugfix. If a user with accees level 1 has partial access to one or more zones starting with a certain character, but did not own at least one entire zone starting with the same character, the character wasn't clickable in the "list zone" page. Interface. If no record or zone id is given for delete_record.php or delete_domain.php, don't just die but echo a nice message. The i18n files have not yet been updated to reflect this change. Interface. If no master IP is given in delete_supermaster.php, don't just die but echo a nice message. The i18n files have not yet been updated to reflect this change. [All fixes by Peter Beernink.]
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
13
2ff220cfde13 [feladat @ 60]
rejo
parents: 11
diff changeset
     9
found in locale/nl_NL. To review the status of the translation, you 
2ff220cfde13 [feladat @ 60]
rejo
parents: 11
diff changeset
    10
can have a look at the nl.po file in the LC_MESSAGE directory.
3
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
11
9e103ea0585d [feladat @ 25]
rejo
parents: 6
diff changeset
    16
If this doesn't work, please try to do the following:
9e103ea0585d [feladat @ 25]
rejo
parents: 6
diff changeset
    17
9e103ea0585d [feladat @ 25]
rejo
parents: 6
diff changeset
    18
 - cd /path/to/poweradmin/locale/$lang/LC_MESSAGES/
9e103ea0585d [feladat @ 25]
rejo
parents: 6
diff changeset
    19
 - msgfmt $lang.po -o message.mo 
9e103ea0585d [feladat @ 25]
rejo
parents: 6
diff changeset
    20
9e103ea0585d [feladat @ 25]
rejo
parents: 6
diff changeset
    21
If that doesn't help either, most likely your system itself is not
9e103ea0585d [feladat @ 25]
rejo
parents: 6
diff changeset
    22
setup properly. See <https://rejo.zenger.nl/misc/1176630442.php> maybe
9e103ea0585d [feladat @ 25]
rejo
parents: 6
diff changeset
    23
of some help.
3
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    24
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    25
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    26
Adding a new translation
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    27
-----------------------------------------------------------------------
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    28
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    29
If you want to create a new translation you can do the following. For
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    30
example, if you want to create a Dutch translation:
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    31
 
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    32
 - cd /path/to/poweradmin/
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    33
 - mkdir -p locale/nl_NL/LC_MESSAGES/
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    34
 - cp docs/template.pot locale/nl_NL/LC_MESSAGES/nl.po
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    35
 - cd locale/nl_NL/LC_MESSAGES/
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    36
 - vim nl.po
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    37
 - msgfmt nl.po -o message.mo
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    38
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    39
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    40
Updating the translation template file
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    41
-----------------------------------------------------------------------
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    42
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    43
If creating a new translation and you are not sure if the template file
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    44
that was provided in the distribution, you may want to re-create the 
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    45
template file. To do so, do the following:
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    46
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    47
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    48
 - cd /path/to/poweradmin/
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    49
 - xgettext --no-wrap -o docs/template.pot *.php inc/*.php
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    50
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    51
The last command updates the template file in docs/ directory.
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    52
64525a2eb098 [feladat @ 4]
rejo
parents:
diff changeset
    53