|
Revision 1653, 1.3 kB
(checked in by benjamin, 3 years ago)
|
new translations + secondarymx management
|
| Line | |
|---|
| 1 |
Le système de langue fonctionne ainsi : |
|---|
| 2 |
|
|---|
| 3 |
dans bureau/locales/ on trouve un DOSSIER par langue sous la forme |
|---|
| 4 |
major_minor/ |
|---|
| 5 |
exemple : fr_FR en_US ... |
|---|
| 6 |
dans lequel on a un sous-dossier LC_MESSAGES |
|---|
| 7 |
dans lequel on a des fichiers .po en vrac (normalement 1 ou 2 fichiers .po par module d'AlternC.) |
|---|
| 8 |
|
|---|
| 9 |
Le fichier alternc.mo est donc construit à partir de TOUS les fichiers .po d'une même langue. |
|---|
| 10 |
|
|---|
| 11 |
Howto translate AlternC in a new language |
|---|
| 12 |
========================================= |
|---|
| 13 |
|
|---|
| 14 |
This folder contains po and pot files, who are templates that allows you |
|---|
| 15 |
to translate AlternC in any language. |
|---|
| 16 |
|
|---|
| 17 |
1. How to add a language : |
|---|
| 18 |
- create a folder with your iso language code (ex: de_DE for |
|---|
| 19 |
German from Germany see `dpkg-reconfigure locales` for available codes.) |
|---|
| 20 |
- create a subfolder LC_MESSAGES in this folder |
|---|
| 21 |
- copy .po and .pot files and rename .pot to .po |
|---|
| 22 |
- Translate them ;) |
|---|
| 23 |
- Send them to us so that we can add them to the next release or as a language pack. |
|---|
| 24 |
|
|---|
| 25 |
2. How to update language files. |
|---|
| 26 |
|
|---|
| 27 |
When the programm is updated, the po files in locales/ are changed to |
|---|
| 28 |
reflect the new developped features. |
|---|
| 29 |
|
|---|
| 30 |
You can just call the makefile to have the files regenerated: |
|---|
| 31 |
|
|---|
| 32 |
cd admin/locales |
|---|
| 33 |
make |
|---|
| 34 |
|
|---|
| 35 |
from "locales/" to update your language po files. New strings will have |
|---|
| 36 |
an empty "msgstr" value, and obsoletes one will be commented out with |
|---|
| 37 |
#~ |
|---|