OLPC Tonga: Difference between revisions

From OLPC
Jump to navigation Jump to search
(→‎glibc locale: added XO installation instructions)
(→‎Pootle: added instructions for installing tongan translations)
Line 25: Line 25:
=== Pootle ===
=== Pootle ===


SugarLabs Pootle setup for Tonga - http://translate.sugarlabs.org/ton/
Tongan has been set up on the SugarLabs Pootle server http://translate.sugarlabs.org/ton/

To install part of the translation on an XO directly from the pootle server.

* Visit the [http://translate.sugarlabs.org/ton/ tongan language page] on the pootle server.
* Click the project you want ([http://translate.sugarlabs.org/ton/glucose82/ Glucose 0.82] is the core sugar stuff for sugar 0.82)
* Click on the Review tab
* Click on the "Download" link for the file you want to update on the XO and transfer the file to the XO ([http://translate.sugarlabs.org/ton/glucose82/sugar.po sugar.po] has most of what you want)
* Edit the file and change the Language line from "ton" to "to"
* If it's not already installed, install the msgfmt utility with "sudo yum install gettext"
* If it's not already created, created, create the tongan locale directory with "sudo mkdir -p /usr/share/locale/to/LC_MESSAGES"
* Run "msgfmt sugar.po /usr/share/locale/to/LC_MESSAGES/sugar.mo"

If this is the first time you have installed tongan on the XO you may have to reboot before you can select tongan in the language preferences.
If you have already changed your language to Tongan, you may need to select another language (causing sugar to restart) and then select tongan again (causing another restart) to see your updates.


For information on who is in the translation team contact [http://wiki.laptop.org/go/User:Tabitha Tabitha]
For information on who is in the translation team contact [http://wiki.laptop.org/go/User:Tabitha Tabitha]

Revision as of 11:18, 19 July 2010

Deployment progress

Tonga is included in the OLPC Oceania deployments list.

For information contact OLPC_Oceania team.



Translation progress

glibc locale

Tongan is not a supported locale in glibc, so support has to be added there first. See File:To TO.txt. Note this file should be called to_TO, not To_TO.txt, the wiki seems to want the name that way.

To install on XO:

wget http://wiki.laptop.org/images/3/38/To_TO.txt -o to_TO
sudo localedef --no-archive -i to_TO --charmap=UTF-8 /usr/lib/locale/to_TO.utf8
sudo localedef --no-archive -i to_TO /usr/lib/locale/to_TO

to_TO and to_TO.UTF8 should appear in the list of supported locales printed by the "locale -a" command.

Pootle

Tongan has been set up on the SugarLabs Pootle server http://translate.sugarlabs.org/ton/

To install part of the translation on an XO directly from the pootle server.

  • Visit the tongan language page on the pootle server.
  • Click the project you want (Glucose 0.82 is the core sugar stuff for sugar 0.82)
  • Click on the Review tab
  • Click on the "Download" link for the file you want to update on the XO and transfer the file to the XO (sugar.po has most of what you want)
  • Edit the file and change the Language line from "ton" to "to"
  • If it's not already installed, install the msgfmt utility with "sudo yum install gettext"
  • If it's not already created, created, create the tongan locale directory with "sudo mkdir -p /usr/share/locale/to/LC_MESSAGES"
  • Run "msgfmt sugar.po /usr/share/locale/to/LC_MESSAGES/sugar.mo"

If this is the first time you have installed tongan on the XO you may have to reboot before you can select tongan in the language preferences. If you have already changed your language to Tongan, you may need to select another language (causing sugar to restart) and then select tongan again (causing another restart) to see your updates.

For information on who is in the translation team contact Tabitha