[Bf-translations-svn] SVN commit: /data/svn/bf-translations [164] trunk/po/tools/_update_msg.py: Small /tools updates...
bf-translations at blender.org
bf-translations at blender.org
Mon Nov 7 23:11:52 CET 2011
Revision: 164
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-translations&revision=164
Author: mont29
Date: 2011-11-07 22:11:52 +0000 (Mon, 07 Nov 2011)
Log Message:
-----------
Small /tools updates...
Modified Paths:
--------------
trunk/po/tools/_update_msg.py
Modified: trunk/po/tools/_update_msg.py
===================================================================
--- trunk/po/tools/_update_msg.py 2011-11-07 22:00:15 UTC (rev 163)
+++ trunk/po/tools/_update_msg.py 2011-11-07 22:11:52 UTC (rev 164)
@@ -26,7 +26,7 @@
# Quite an ugly hack… But the simplest solution for now!
import sys
-sys.path.append(os.path.abspath(os.path.join(__file__, "..")))
+sys.path.append(os.path.abspath(os.path.dirname(__file__)))
import settings
@@ -111,7 +111,7 @@
def walkProperties(bl_rna):
import bpy
- # get our parents properties not to export them multiple times
+ # Get our parents' properties, to not export them multiple times.
bl_rna_base = bl_rna.base
if bl_rna_base:
bl_rna_base_props = bl_rna_base.properties.values()
@@ -119,9 +119,7 @@
bl_rna_base_props = ()
for prop in bl_rna.properties:
- # only write this property is our parent hasn't got it.
- if bl_rna.identifier == "MOCAP_OT_addmocapfix":
- print(prop)
+ # Only write this property if our parent hasn't got it.
if prop in bl_rna_base_props:
continue
if prop.identifier == "rna_type":
@@ -145,9 +143,6 @@
messages.setdefault(item.description, []).append(msgsrc)
def walkRNA(bl_rna):
- if bl_rna.identifier == "MOCAP_OT_AddMocapFix":
- print("MOCAP_OT_AddMocapFix")
-
if filterRNA(bl_rna):
return
@@ -228,6 +223,7 @@
walk_keymap_hierarchy(KM_HIERARCHY, "KM_HIERARCHY")
+
def dump_messages_pytext(messages):
""" dumps text inlined in the python user interface: eg.
More information about the Bf-translations-svn
mailing list