[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [51659] trunk/blender/release/scripts/ modules/bl_i18n_utils: Back to generating a pot file into trunk/ po of i18n repo (it' s useful for translators who want to start a new translation without be able to generate their own po! ).
Bastien Montagne
montagne29 at wanadoo.fr
Fri Oct 26 15:15:15 CEST 2012
Revision: 51659
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=51659
Author: mont29
Date: 2012-10-26 13:15:14 +0000 (Fri, 26 Oct 2012)
Log Message:
-----------
Back to generating a pot file into trunk/po of i18n repo (it's useful for translators who want to start a new translation without be able to generate their own po!).
Modified Paths:
--------------
trunk/blender/release/scripts/modules/bl_i18n_utils/update_branches.py
trunk/blender/release/scripts/modules/bl_i18n_utils/update_pot.py
Modified: trunk/blender/release/scripts/modules/bl_i18n_utils/update_branches.py
===================================================================
--- trunk/blender/release/scripts/modules/bl_i18n_utils/update_branches.py 2012-10-26 12:58:54 UTC (rev 51658)
+++ trunk/blender/release/scripts/modules/bl_i18n_utils/update_branches.py 2012-10-26 13:15:14 UTC (rev 51659)
@@ -38,7 +38,9 @@
PY3 = settings.PYTHON3_EXEC
+FILE_NAME_POT = settings.FILE_NAME_POT
+
def main():
import argparse
parser = argparse.ArgumentParser(description="" \
@@ -71,16 +73,13 @@
if t:
ret = t
- # Regenerate POTFILES.in.
-# cmd = (PY3, "./update_potinput.py")
-# t = subprocess.call(cmd)
-# if t:
-# ret = t
-
# Generate a temp pot file.
- dummy, potfile = tempfile.mkstemp(suffix=".pot",
- prefix="blender_pot_")
- os.close(dummy)
+ # Back to having a pot file in trunk/po. It's quite useful for translators that want to start
+ # a new translation and not not want to bother generating their own po from scratch!
+# dummy, potfile = tempfile.mkstemp(suffix=".pot",
+# prefix="blender_pot_")
+# os.close(dummy)
+ potfile = FILE_NAME_POT
cmd = [PY3, "./update_pot.py", "-i", msgfile, "-o", potfile]
if not args.no_checks:
cmd.append("-c")
Modified: trunk/blender/release/scripts/modules/bl_i18n_utils/update_pot.py
===================================================================
--- trunk/blender/release/scripts/modules/bl_i18n_utils/update_pot.py 2012-10-26 12:58:54 UTC (rev 51658)
+++ trunk/blender/release/scripts/modules/bl_i18n_utils/update_pot.py 2012-10-26 13:15:14 UTC (rev 51659)
@@ -236,8 +236,8 @@
def main():
- parser = argparse.ArgumentParser(description="Update blender.pot file " \
- "from messages.txt")
+ parser = argparse.ArgumentParser(description="Update blender.pot file from messages.txt and source code parsing, "
+ "and performs some checks over msgids.")
parser.add_argument('-w', '--warning', action="store_true",
help="Show warnings.")
parser.add_argument('-i', '--input', metavar="File",
More information about the Bf-blender-cvs
mailing list