[or-cvs] r14535: Some basic instructions for using the .po files. (check/trunk/i18n)

ioerror at seul.org ioerror at seul.org
Sat May 3 05:23:43 UTC 2008


Author: ioerror
Date: 2008-05-03 01:23:42 -0400 (Sat, 03 May 2008)
New Revision: 14535

Added:
   check/trunk/i18n/README
Log:
Some basic instructions for using the .po files.


Added: check/trunk/i18n/README
===================================================================
--- check/trunk/i18n/README	                        (rev 0)
+++ check/trunk/i18n/README	2008-05-03 05:23:42 UTC (rev 14535)
@@ -0,0 +1,19 @@
+To use these files, you'll need to transform the .po files into the binary 
+GNU message catalog format. For every language that you enable in the 
+TorCheck whitelist, you'll need a corresponding message catalog.
+
+First you'll want to ensure that the gettext template is properly formatted:
+
+	msgfmt -c TorCheck_en.po
+
+You'll want to compile each TorCheck gettext template like so:
+
+	msgfmt -o TorCheck_en.mo  TorCheck_en.po
+
+Then you'll move the compiled message catalog into the proper locale 
+directory:
+
+	mv TorCheck_en.mo /usr/share/locale/en/LC_MESSAGES/TorCheck.mo
+
+Once you've done this for each locale TorCheck supports, messages will be 
+automatically translated.



More information about the tor-commits mailing list