aboutsummaryrefslogtreecommitdiffstats
path: root/websites/README
diff options
context:
space:
mode:
authorYuri Chornoivan <yurchor@mageia.org>2012-09-09 14:00:09 +0000
committerYuri Chornoivan <yurchor@mageia.org>2012-09-09 14:00:09 +0000
commite47d828404b901010e5646eaa1d70f9a12676073 (patch)
tree700b415bade445577d2120721a3a72da1dc27e40 /websites/README
parent465a20a84e53b2fab8949e382ae86ee47134935a (diff)
downloadtools-e47d828404b901010e5646eaa1d70f9a12676073.tar
tools-e47d828404b901010e5646eaa1d70f9a12676073.tar.gz
tools-e47d828404b901010e5646eaa1d70f9a12676073.tar.bz2
tools-e47d828404b901010e5646eaa1d70f9a12676073.tar.xz
tools-e47d828404b901010e5646eaa1d70f9a12676073.zip
Add scripts for web pages lang templates conversion to POT/PO files and vice versa
Diffstat (limited to 'websites/README')
-rw-r--r--websites/README51
1 files changed, 51 insertions, 0 deletions
diff --git a/websites/README b/websites/README
new file mode 100644
index 00000000..b4d89a49
--- /dev/null
+++ b/websites/README
@@ -0,0 +1,51 @@
+For some reasons usual conversion scripts for .lang files from Translate Toolkit
+do not work as expected.
+
+Nevertheless, the attached script may be useful for those who want to
+organize sustainable translation process of web pages translation.
+
+Prerequisites:
+
+Installed python-polib package:
+
+# urpmi python-polib
+
+I langpo.py:
+
+Usage:
+
+1. Copy the script into the folder with English .lang files.
+2. Run
+ python langpo.py
+3. Script will create .pot's for all .lang's in the folder. Translate pot's and
+ rename the translations into <lang_code>.po
+4. Run
+ python langpo.py
+ once more to create lang's for your language.
+
+If you ever need to update something (.lang's were updated or you found a typo,
+etc.) just run
+ python langpo.py
+
+Limitations:
+The script is useful only for Unicode translations.
+
+II translated_converter.py is a one-time converter for existing
+translations.
+
+Run it as
+
+python translated_converter.py -l <lang_code>
+
+(Ex.: python translated_converter.py -l el)
+
+in a folder of translations. Then copy po's with their folders into /en folder
+and run
+
+python langpo.py
+
+ * Both of these files are free software. They come without any warranty, to
+ * the extent permitted by applicable law. You can redistribute it
+ * and/or modify them under the terms of the Do What The Fuck You Want
+ * To Public License, Version 2, as published by Sam Hocevar. See
+ * http://sam.zoy.org/wtfpl/COPYING for more details.