How to work with Internationalisation (i18n) in umtsmon
As you can see to the right, as of version 0.8, umtsmon now can handle internationalisation.
Version 0.8 ships with support for the following languages:
It is up to the users to add support for other languages.
Version 0.9 will have a lot more support:
As i18n is in all releases starting 0.8, all you need to do is download and install a release. It should have several *.qm files, the default location to put these would be /usr/share/umtsmon/translations . umtsmon will search the current directory, a directory called i18n and the just mentioned directory on startup.
Now you only need to tell umtsmon to start in your language. The easiest way to do this would be to use an environment value called LANG. First you need to check if it's actually set:
The output should be something like en_US.UTF-8 or e.g. if you are in Germany de_DE@euro or similar. Essentially, umtsmon only looks at stuff before the dot or the '@'. If you don't see output or if it doesn't define the language you want, you can change the variable and start umtsmon like this:
export LANG="nl" umtsmon
This should be enough to get umtsmon going - if you language is supported.
If it doesn't seem to work, look at the output.
export LANG="nl" umtsmon -v5
You should now get more logging. It should show something like:
umtsmon version 0.8.90 . ##P1 t=781: setVerbosity: '5' ##P2 t=781: set verbosity level to 5 ##P2 t=781: set PPP verbosity level to 2 installing text SIGABRT handler ##P5 t=781: loadTranslator('qt', '(null)') ##P1 t=781: aLocale '(null)' denied ##P5 t=781: loadTranslator('qt', 'it') ##P5 t=781: Translation filename: 'qt_it' ##P5 t=781: ... NOT FOUND ##P5 t=781: loadTranslator('qt', 'it_it') ##P5 t=781: Translation filename: 'qt_it_IT' ##P5 t=781: ... NOT FOUND ##P5 t=781: loadTranslator('umtsmon', 'it') ##P5 t=781: Translation filename: 'umtsmon_it' ##P5 t=781: ... NOT FOUND ##P5 t=781: loadTranslator('umtsmon', 'it_it') ##P5 t=781: Translation filename: 'umtsmon_it_IT' ##P5 t=781: ... NOT FOUND
As you can see, umtsmon tried really hard to find an Italian translation, but didn't find one. In that case, you'll need to create one.
Modify existing translations
If you want to work on the existing translations, you have to work on the current development version. That will mean first getting the latest CVS snapshot and then work from there:
Adding a new language
If your umtsmon_*.ts file doesn't exist yet, it needs to be in CVS before you can work on it. You will have to e-mail firstname.lastname@example.org and wait for Klaas to create your language file in CVS. If multiple people want to do the same language we'll split the job :-D
Make sure you also supply a line to define how you want to see your contribution in the AUTHORS file.
This is your time to contribute to umtsmon - eternal thankfulness from all umtsmon users will be yours!
|UMTSmon (C) 2006,2007,2008 Klaas van Gend and others, licensed under the GPL v2 license||hosted by SourceForge.net:||Sponsored by NLNet Foundation:|