Activity Team/Modifing an Activity: Difference between revisions

Tonyforster (talk | contribs)
Tonyforster (talk | contribs)
Line 114: Line 114:


===Localizing TurtleArt===
===Localizing TurtleArt===
The best way to contribute to translations for Sugar Activities is through http://translate.sugarlabs.org/ In the next release cycle, your translations will be available to millions of users.
Here follows a quick and dirty hack to add translations to a local copy of TurtleArt.
For TurtleArt, the translations' source resides at /home/olpc/Activities/TurtleArt.activity/po For example, the Slovenian translation source is in sl.po. The file consists of untranslated and translated string pairs:
msgid "untranslatedstring"
msgstr "translatedstring"
This file can be edited with the
* vi editor or
* write (as described at the head of this article, use copy-to-journal -m text/plain, edit with write and copy-from-journal) or
* on dual boot laptops use the GNOME desktop
Compile the po file to a mo file using msgfmt http://linuxcommand.org/man_pages/msgfmt1.html
Put the compiled mo file in the right directory and with the right file name, eg for Slovenian that is /home/olpc/Activities/TurtleArt.activity/locale/sl/LC_MESSAGES/org.laptop.TurtleArtActivity.mo


==Modifying Speak==
==Modifying Speak==