po : adding note for windows translators/devs + remove backup function in update_po.py
authorDalai Felinto <dfelinto@gmail.com>
Fri, 30 Sep 2011 05:36:56 +0000 (05:36 +0000)
committerDalai Felinto <dfelinto@gmail.com>
Fri, 30 Sep 2011 05:36:56 +0000 (05:36 +0000)
(no more tons of *.po~ in the folder)

po/README.txt
po/update_po.py

index 120181d3f35fdec503cdfbdce0a6359fe04dcb05..8756531f44253275ce33e44ff699649473875ce0 100644 (file)
@@ -59,3 +59,14 @@ using GNUMakefile:
 make -f GNUMakefile translations
 
 NOTE: Blender has to be compiled using GNUMakefile first.
+
+
+3. Note for Windows users
+-------------------------
+You can find compiled builds of gettext in the lib folder under "binaries\gettext\" for both windows and win64.
+In order to run the scripts you will need to replace the location of the GETTEXT_..._EXeCUTABLE.
+
+For example in update_pot.py:
+-GETTEXT_XGETTEXT_EXECUTABLE = "xgettext"
++GETTEXT_XGETTEXT_EXECUTABLE = "C:\\Blender\\lib\\\windows\\\binaries\\\gettext\\xgettext.exe"
+
index 978de6ab1e5558b1281ae2a4ac9d40498eaf0037..3dcaa9d8f1b7a4096942dfd84b750dabcb368ba3 100755 (executable)
@@ -38,6 +38,7 @@ def process_po(po):
     # update po file
     cmd = (GETTEXT_MSGMERGE_EXECUTABLE,
            "--update",
+           "--backup=none",
            "--lang=%s" % lang,
            os.path.join(CURRENT_DIR, "%s.po" % lang),
            os.path.join(CURRENT_DIR, "%s.pot" % DOMAIN),