[rkward-cvs] [rkward] /: Fix a bug when extracting messages from inlined UI logic, and add message extraction for "data" and "embedded" plugins.

Thomas Friedrichsmeier thomas.friedrichsmeier at ruhr-uni-bochum.de
Wed Jan 7 09:06:55 UTC 2015


Git commit d9b79205a988ccf3fdaa35666dc38eb2349d039c by Thomas Friedrichsmeier.
Committed on 07/01/2015 at 09:05.
Pushed by tfry into branch 'master'.

Fix a bug when extracting messages from inlined UI logic, and add message extraction for "data" and "embedded" plugins.

M  +3    -0    Messages.sh
M  +1    -1    scripts/update_plugin_messages.py

http://commits.kde.org/rkward/d9b79205a988ccf3fdaa35666dc38eb2349d039c

diff --git a/Messages.sh b/Messages.sh
index 0c9e8d4..0b36280 100755
--- a/Messages.sh
+++ b/Messages.sh
@@ -14,3 +14,6 @@ python scripts/update_plugin_messages.py --extract-only --default_po=pages --out
 python scripts/update_plugin_messages.py --extract-only --outdir=$podir rkward/plugins/analysis.pluginmap
 # extract messages from import_export plugins: >> rkward__import_export.pot
 python scripts/update_plugin_messages.py --extract-only --outdir=$podir rkward/plugins/import_export.pluginmap
+# extract messages from data plugins: >> rkward__data.pot
+python scripts/update_plugin_messages.py --extract-only --outdir=$podir rkward/plugins/data.pluginmap
+# messages of embedded plugins are extracted implicitly, as part of the above extraction calls: >> rkward__embedded.pot
diff --git a/scripts/update_plugin_messages.py b/scripts/update_plugin_messages.py
index 376982a..4deb68b 100755
--- a/scripts/update_plugin_messages.py
+++ b/scripts/update_plugin_messages.py
@@ -153,7 +153,7 @@ def stripLineDummy (text):
 
 def getLineOf (element, default=-1):
   if element.hasAttribute (LINE_DUMMY_ATTR):
-    return element.getAttribute (LINE_DUMMY_ATTR)
+    return int (element.getAttribute (LINE_DUMMY_ATTR))
   return default
 
 # Normalizes larger text fragments. TODO: Do we want to protect <pre>-blocks?





More information about the rkward-tracker mailing list