Contents |
All easygate application are forecasted to manage many languages. However, for the moment, the easygate is delivered only in french. This choice is done during the compilation process. There's no problem with this choice now cause the gate is only sold in france.
Language support is fixed during the compilation with the help of an environment variable LINGUAS to create the crosstool.
For example to manage french and german language we are going to do this to create the crosstool:
export LINGUAS="fr de"
For buildroot, languages are defined in the Internationalization section of menuconfig. There's three variable: one for supported language, one for the default language and the last one for the supported charset. Be carrefull of having a crosstool supporting languages define in the .config file.
For each application or PACKAGE, there is a LANG.po file (fr.po, de.po...) which contains translations for LANG. To create a translation in a new language just look at the PACKAGE.pot which contains messages in english without their translations. These fles must be edited in UTF-8.
The missing translations can be found in missing_translation.lang after a compilation process
Community applications manage the main languages. By contrast some modifications done by Easyneuf which contains messages are translated only in french. So these messages will appear in english if the default language is not french. The better thing to do is to update Easyneuf patches with the new translations.
Applications developped by Easyneuf are avalaible only in french or in english. For a new language LANG, you need to add a new file LANG.po. Don't forget to translate the easyneuf toolbar(/usr/lib/iceweasel/extensions/9browser@easyneuf.fr/chrome/locale/fr_FR/)
Some shell scipts display popups. These message translation is centered in the package "9system". In the same way as other packages, you will have to create a new LANG.po file to generate a new language LANG.
For the moment it's not possible. But it will be considered that each user of the gate could choose is own language. So it will be a new option to add to user configuraion. For example:
cat ~/.config/lang fr_FR.UTF-8
Besides at the login, the applications and the system messages will be in the user prefezred language. As soon as this functionality will be in place, you will have to choose the default language during the compilation process (like supported languages). Because now the language of each user is defined in the following files:
Finally some scripts need to be launched as root, so for the moment the locale is fixed in french. This will be changed so that the locale used will be the locale oif the logged user:
The following article will help you building an image in another language. As Language Support is experimental, this page is likely to change frequently. The process result is uncertain...
[wiki:Faire_une_image_dans_une_langue_etrangere Faire une image dans une langue étrangère]