# HG changeset patch # User Christophe Lincoln # Date 1304187683 -7200 # Node ID 58cc74bfc5bc3a3f89f5309fe2ac0ef9b4e7aa0b # Parent f0d39bce1a2e8a7eb509c0c56ba47e70596f230d i18n.php: Add a mostly complet guide about translating the website and system diff -r f0d39bce1a2e -r 58cc74bfc5bc i18n.php --- a/i18n.php Sat Apr 30 18:50:14 2011 +0200 +++ b/i18n.php Sat Apr 30 20:21:23 2011 +0200 @@ -87,8 +87,8 @@ languages are English, French, German, Portuguese and Chinese. Spanish is on the stove, but more help is needed. Most of the communication is done through the - Mailing List and the - Labs. + Mailing List and the i18n group on + SCN.

@@ -98,6 +98,142 @@ more than welcome to join us.

+ +

Howto participate

+ +

+ From fixing typo to translating a full xHTML page we always translation + and proofreading to accomplish. Website often move and get update and + SliTaz home made tools such TazPanel got new strings depending the new + functions we add to it. By the time we have now many way to let you contact + us and get involve in the project. +

+

+ For sending translation work or request a new language you can join the + SliTaz Mailing List and/or the + community group on SCN + and post to the forum + witch let you attache files. +

+ +

Website translation

+ +

+ Here is an howto translate SliTaz website in a new language. First you need + the original website page in English. You have 2 way to get a full copy + of the website, use Mercurial and clone the repository or download the + latest archive in tar.bz2 format. Using Mercurial let you after update your + local copy in one command and downloading directly from the repository + let you get just a page if you want. So it'a matter of choice, but if you + want to manage a language and push changes yourself, you will have to use + Mercurial, here is more info on Hg. +

+

+ Clone the website or get the latest archive: +

+ +
+$ hg clone http://hg.slitaz.org/website
+$ wget http://hg.slitaz.org/website/archive/tip.tar.bz2
+
+ +

+ Now that you have a full copy of the website you can fix typo or start a new + translation. The reference is English, so always copy and english page to + your native language and naturraly keep the website structure intact. When + you happy with with your work you can sent it the the community like + explained before. +

+

+ If you a bit afraid about sending a mail to more than 300 people on the list + or be exposed on the forum, you can send a private message to one the i18n + group member on SCN but he might not have time to anser. Keep in mind we are + a friendly community and ther is no stupid questions. +

+ +

System translation

+ +

+ Like said above, the goal is to provide full language support, not only + with the website or forum, but the system itsef. Everything can be translate + from menu items to SHell script and GUI boxes. For this we use a standard + gettext POT files. +

+

+ Each translation of a sub-project have is own file named with the language + prefix, example: pt.po or fr.po. This PO file can be translated with a nice + graphical editor like POedit on SliTaz. That means you dont need to have + programming or goog Linux skills to help or maintain a translation. +

+

+ If a PO file for language doesn't exist yet you can create it yourself or + ask a contributors to do it and commit the new file to Hg. For each project + you will find a README file with translation instruction to use msginit + and other gettext tools. If you want to update or complet a translation + PO file, you can download it from here or from Hg and then send it to + the list, the forum or SCN as usual. Note that some project are in the + same repository such as tazpkg-notify who is part of tazpkg. +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ProjectPOT filePO files
TazPKGtazpkg.pot + fr + pt +
TazPKG Notifytazpkg-notify.pot + fr + pt +
TazPaneltazpanel.pot + fr + pt +
TazBoxtazbox.pot + pt +
+