1 | | = Howto add translation = |
| 1 | [[PageOutline]] |
| 2 | = Howto update an existing translation = |
| 3 | This example is for the french translation. For another language, just replace "fr" with the appropriate language code in the following instructions. |
| 4 | == Updating the .po == |
| 5 | 1. Retrieve the .po file from svn at the following URL (replace "fr" with the appropriate language code): https://dev.wifidog.org/svn/trunk/wifidog-auth/wifidog/locale/fr/LC_MESSAGES/messages.po |
| 6 | 1. Update the .po file you downloaded: You can translate/correct just a few sentence, or the entire file. There are several good graphical .po editors, the two best known being [http://kbabel.kde.org/ KBabel] and [http://www.poedit.org/ poEdit]. |
| 7 | 1. Send us the updated file. The usual way is to attach the file to [http://dev.wifidog.org/newticket a new ticket on wifidog's trac]. |
| 8 | For most people you are done. |
| 9 | |
| 10 | == Checking out the result in wifidog == |
| 11 | 1. Run wifidog-auth/wifidog/locale/compile.sh |
| 12 | 1. Restart Apache. You will have to do this when you recompile, because .mo binary files are cached by gettext. |
| 13 | 1. See your updated translation in action |
| 14 | |
| 15 | == Comiting a contributed translation (for those with commit access) == |
| 16 | 1. Put the updated file in your local tree |
| 17 | 1. Run wifidog-auth/wifidog/locale/gen.sh |
| 18 | 1. Run wifidog-auth/wifidog/locale/compile.sh |
| 19 | 1. Updte the ChangeLog |
| 20 | 1. svn commit |
| 21 | |
| 22 | = Howto add a new translation = |