[Bf-translations-svn] SVN commit: /data/svn/bf-translations [648] trunk/po/tools: Update, adding Cycles' addon ui file...

bf-translations at blender.org bf-translations at blender.org
Tue May 22 09:57:03 CEST 2012


Revision: 648
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-translations&revision=648
Author:   mont29
Date:     2012-05-22 07:57:01 +0000 (Tue, 22 May 2012)
Log Message:
-----------
Update, adding Cycles' addon ui file...

Note that the same problem may rise for "release" addons defining custom UI in panels or menus, will have to check how to best handle this.

Modified Paths:
--------------
    trunk/po/tools/_update_msg.py
    trunk/po/tools/settings.py

Modified: trunk/po/tools/_update_msg.py
===================================================================
--- trunk/po/tools/_update_msg.py	2012-05-21 18:45:20 UTC (rev 647)
+++ trunk/po/tools/_update_msg.py	2012-05-22 07:57:01 UTC (rev 648)
@@ -35,6 +35,7 @@
 
 SOURCE_DIR = settings.SOURCE_DIR
 
+CUSTOM_PY_UI_FILES = settings.CUSTOM_PY_UI_FILES
 FILE_NAME_MESSAGES = settings.FILE_NAME_MESSAGES
 COMMENT_PREFIX     = settings.COMMENT_PREFIX
 CONTEXT_PREFIX     = settings.CONTEXT_PREFIX
@@ -321,6 +322,9 @@
              if fn.endswith("py")
              ]
 
+    # Dummy Cycles has its py addon in its own dir!
+    files += CUSTOM_PY_UI_FILES
+
     for fp in files:
         extract_strings_from_file(fp)
 

Modified: trunk/po/tools/settings.py
===================================================================
--- trunk/po/tools/settings.py	2012-05-21 18:45:20 UTC (rev 647)
+++ trunk/po/tools/settings.py	2012-05-22 07:57:01 UTC (rev 648)
@@ -190,6 +190,12 @@
 # The template messages file.
 FILE_NAME_POT = os.path.join(TRUNK_PO_DIR, ".".join((DOMAIN, "pot")))
 
+# Other py files that should be searched for ui strings.
+# Needed for Cycles, currently...
+CUSTOM_PY_UI_FILES = [os.path.join(SOURCE_DIR, "intern", "cycles", "blender",
+                                   "addon", "ui.py"),
+                     ]
+
 # Override with custom user settings, if available.
 try:
     from user_settings import *



More information about the Bf-translations-svn mailing list