HowTo

From GCompris
Revision as of 23:29, 14 January 2008 by Bruno (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Manually update translation on Ubuntu 7.10

As the GCompris translations for Ubuntu 7.10 are broken. I propose you a workaround in which we will overwrite the current translation file by the one provided by GCompris.

To do this, get the GCompris .mo translation file from here:

http://gcompris.net/incoming/locale/
Follow the link up to the file gcompris.mo in the proper locale directory. For example, for French, follow fr/LC_MESSAGES/gcompris.mo

Then copy it in :

/usr/share/locale-langpack/"YOUR LOCALE"/LC_MESSAGES/gcompris.mo

To determine you locale, you can start a console and run the "locale" command alone. You can check the output line like for French it displays LANG=fr_FR.UTF-8. The short locale is 'fr'. You can then check what locales are installed for GCompris with this command:

find /usr/share/locale-langpack/ -name gcompris.mo

It will display one or more lines like this:

/usr/share/locale-langpack/mr/LC_MESSAGES/gcompris.mo
/usr/share/locale-langpack/th/LC_MESSAGES/gcompris.mo
...

depending on how many locales you have installed.

As you need the super user right, and I don't know how to to this from the user interface, you can enter these commands in a console WHILE REPLACING /fr/ by /"your locale"/ :

cd /tmp
wget http://gcompris.net/incoming/locale/fr/LC_MESSAGES/gcompris.mo
sudo cp gcompris.mo /usr/share/locale-langpack/fr/LC_MESSAGES/
<Enter your user password>

Then start GCompris, it should be properly translated.