[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [55565] trunk/blender/release/scripts/ modules/bl_i18n_utils: Update to i18n tools (new [CTX_]DATA_ macros, and some more exceptions to spell check...).

Bastien Montagne montagne29 at wanadoo.fr
Mon Mar 25 09:30:38 CET 2013


Revision: 55565
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=55565
Author:   mont29
Date:     2013-03-25 08:30:38 +0000 (Mon, 25 Mar 2013)
Log Message:
-----------
Update to i18n tools (new [CTX_]DATA_ macros, and some more exceptions to spell check...).

Modified Paths:
--------------
    trunk/blender/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py
    trunk/blender/release/scripts/modules/bl_i18n_utils/settings.py
    trunk/blender/release/scripts/modules/bl_i18n_utils/utils_spell_check.py

Modified: trunk/blender/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py
===================================================================
--- trunk/blender/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py	2013-03-25 08:29:06 UTC (rev 55564)
+++ trunk/blender/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py	2013-03-25 08:30:38 UTC (rev 55565)
@@ -135,7 +135,7 @@
     _print("{} messages were rejected.".format(len(reports["messages_skipped"])))
     _print("\n")
     _print("Current POT stats:")
-    pot.print_stats(prefix="\t", output=_print)
+    pot.print_info(prefix="\t", output=_print)
     _print("\n")
 
     check_ctxt = reports["check_ctxt"]

Modified: trunk/blender/release/scripts/modules/bl_i18n_utils/settings.py
===================================================================
--- trunk/blender/release/scripts/modules/bl_i18n_utils/settings.py	2013-03-25 08:29:06 UTC (rev 55564)
+++ trunk/blender/release/scripts/modules/bl_i18n_utils/settings.py	2013-03-25 08:30:38 UTC (rev 55565)
@@ -237,10 +237,10 @@
 _msg_re = r"(?P<msg_raw>" + _str_whole_re.format(_="_msg") + r")"
 PYGETTEXT_KEYWORDS = (() +
     tuple((r"{}\(\s*" + _msg_re + r"\s*\)").format(it)
-          for it in ("IFACE_", "TIP_", "N_")) +
+          for it in ("IFACE_", "TIP_", "DATA_", "N_")) +
 
     tuple((r"{}\(\s*" + _ctxt_re + r"\s*,\s*" + _msg_re + r"\s*\)").format(it)
-          for it in ("CTX_IFACE_", "CTX_TIP_", "CTX_N_")) + 
+          for it in ("CTX_IFACE_", "CTX_TIP_", "CTX_DATA_", "CTX_N_")) + 
 
     tuple(("{}\\((?:[^\"',]+,){{1,2}}\\s*" + _msg_re + r"\s*(?:\)|,)").format(it)
           for it in ("BKE_report", "BKE_reportf", "BKE_reports_prepend", "BKE_reports_prependf",
@@ -308,6 +308,7 @@
     "sqrt(x*x+y*y+z*z)",
     "sRGB",
     "utf-8",
+    "var",
     "vBVH",
     "view",
     "wav",

Modified: trunk/blender/release/scripts/modules/bl_i18n_utils/utils_spell_check.py
===================================================================
--- trunk/blender/release/scripts/modules/bl_i18n_utils/utils_spell_check.py	2013-03-25 08:29:06 UTC (rev 55564)
+++ trunk/blender/release/scripts/modules/bl_i18n_utils/utils_spell_check.py	2013-03-25 08:30:38 UTC (rev 55565)
@@ -374,8 +374,9 @@
         "fluidsim",
         "frameserver",
         "enum",
+        "idcol",
         "keyframe", "keyframes", "keyframing", "keyframed",
-        "metaball", "metaballs",
+        "metaball", "metaballs", "mball",
         "metaelement", "metaelements",
         "metastrip", "metastrips",
         "movieclip",




More information about the Bf-blender-cvs mailing list