[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r20975: {translation} updated the documentation to cover the process of adding a n (translation/trunk/tools/gsoc09)
Author: runa
Date: 2009-11-18 13:32:39 -0500 (Wed, 18 Nov 2009)
New Revision: 20975
Modified:
translation/trunk/tools/gsoc09/HOWTO
Log:
updated the documentation to cover the process of adding a new language
Modified: translation/trunk/tools/gsoc09/HOWTO
===================================================================
--- translation/trunk/tools/gsoc09/HOWTO 2009-11-18 18:11:38 UTC (rev 20974)
+++ translation/trunk/tools/gsoc09/HOWTO 2009-11-18 18:32:39 UTC (rev 20975)
@@ -106,3 +106,29 @@
publishing the website, if you wish to include the most recent
translations. The Makefile in website/ explains the process of building
and publishing the website.
+
+4. Add a new language
+---------------------
+
+To add a new language, log on to translation.torproject.org and click on
+"Admin", "Projects" and "Website". Choose the language you wish to
+add, and click on "Add Language". The second you click on that button,
+the directory for the new language is created in
+'/var/lib/pootle/website', along with a file named
+'pootle-website-$lang.prefs'.
+
+The next step is to add the file and the directory to the repository. To
+do that, you need to become the pootle user. This can be done using
+'sudo su - /bin/bash pootle'. Adding the file and the directory can be
+done using 'svn add $lang/'.
+
+Next on the list is converting the .wml files, for the language you just
+added, using wml2po. This script can be found in the website module, and
+all you need to do is run './wml2po.sh'. The script will create the
+directories needed, and also add the .po files to the repository.
+Remember to commit before you do anything else.
+
+If you did not convert the files on the pootle machine (and directly to
+'/var/lib/pootle/website'), you will have to do an 'svn up' to fetch the
+latest copy of the repository. After that, you can restart pootle using
+'sudo /etc/init.d/pootle restart'.