[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] r24395: {translation} patched howto.txt with text from kaner (translation/trunk/documentation)



Author: runa
Date: 2011-03-18 20:37:30 +0000 (Fri, 18 Mar 2011)
New Revision: 24395

Modified:
   translation/trunk/documentation/howto.txt
Log:
patched howto.txt with text from kaner

Modified: translation/trunk/documentation/howto.txt
===================================================================
--- translation/trunk/documentation/howto.txt	2011-03-18 16:11:18 UTC (rev 24394)
+++ translation/trunk/documentation/howto.txt	2011-03-18 20:37:30 UTC (rev 24395)
@@ -192,14 +192,51 @@
 
 BridgeDB:
 
-    # TODO: document the translation workflow for BridgeDB when we have
-    # figured it out.
+    1. Updating the Translations
 
+       After pulling new translations from Transifex and checking them into
+       the BrideDB repository, log into the BridgeDB host and update
+       translations as follows in the BridgeDB source directory:
+
+       $ python setup.py trans
+       $ python setup.py install_data    
+
+       This will ensure the newest translation strings can be used by BridgeDB.
+
+    2. Creating/Updating Translation Template Files
+
+       To update the translation template file for BridgeDB, run the
+       following command inside the BridgeDB source directory:
+
+       $ xgettext lib/bridgedb/I18n.py -dbridgedb --from-code=utf-8 \
+                    -oi18n/templates/bridgedb.pot
+       $ msgen -o i18n/en/bridgedb.po --lang=en i18n/templates/bridgedb.pot
+       $ for i in i18n/*/bridgedb.po; do \
+            msgmerge -U $i i18n/templates/bridgedb.pot; done
+
 GetTor:
 
-    # TODO: document the translation workflow for GetTor when we have
-    # figured it out.
+    1. Updating the Translations
 
+       After pulling new translations from Transifex and checking them into
+       the GetTor repository, log into the GetTor host and update
+       translations as follows in the GetTor source directory:
+
+       $ python setup.py trans
+       $ python setup.py install_data    
+
+       This will ensure the newest translation strings can be used by GetTor.
+
+    2. Creating/Updating Translation Template Files
+
+       To update the translation template file for GetTor, run the
+       following command inside the BridgeDB source directory:
+
+       $  xgettext lib/gettor/i18n.py -dgettor --from-code=utf-8 \
+                        -o i18n/templates/gettor.pot
+       $ for i in i18n/*/gettor.po; do \
+            msgmerge -U $i i18n/templates/gettor.pot; done
+
 Vidalia Help Files:
 
     The Transifex configuration file, source files and translations can

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits