Commit d9b79205 authored by Thomas Friedrichsmeier's avatar Thomas Friedrichsmeier
Browse files

Fix a bug when extracting messages from inlined UI logic, and add message...

Fix a bug when extracting messages from inlined UI logic, and add message extraction for "data" and "embedded" plugins.
parent dd393ba3
......@@ -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
......@@ -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?
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment