po : adding note for windows translators/devs + remove backup function in update_po.py

(no more tons of *.po~ in the folder)
This commit is contained in:
Dalai Felinto 2011-09-30 05:36:56 +00:00
parent e6a9b68c79
commit ad8df4843e
2 changed files with 12 additions and 0 deletions

@ -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"

@ -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),