[Bf-translations-svn] SVN commit: /data/svn/bf-translations [413] trunk/po/tools: Small fixes to tools.
bf-translations at blender.org
bf-translations at blender.org
Mon Feb 27 20:02:24 CET 2012
Revision: 413
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-translations&revision=413
Author: mont29
Date: 2012-02-27 19:02:24 +0000 (Mon, 27 Feb 2012)
Log Message:
-----------
Small fixes to tools.
Modified Paths:
--------------
trunk/po/tools/update_mo.py
trunk/po/tools/utils.py
Modified: trunk/po/tools/update_mo.py
===================================================================
--- trunk/po/tools/update_mo.py 2012-02-27 18:58:01 UTC (rev 412)
+++ trunk/po/tools/update_mo.py 2012-02-27 19:02:24 UTC (rev 413)
@@ -79,6 +79,7 @@
else:
for po in os.listdir(TRUNK_PO_DIR):
if po.endswith(".po") and not po.endswith("_raw.po"):
+ print(po)
lang = os.path.basename(po)[:-3]
po = os.path.join(TRUNK_PO_DIR, po)
t = process_po(po, lang)
Modified: trunk/po/tools/utils.py
===================================================================
--- trunk/po/tools/utils.py 2012-02-27 18:58:01 UTC (rev 412)
+++ trunk/po/tools/utils.py 2012-02-27 19:02:24 UTC (rev 413)
@@ -110,7 +110,7 @@
msgkey = (msgid, msgctxt)
is_ttip = is_tooltip(msgid)
- if (WARN_NC and msgid not in NC_ALLOWED and
+ if (WARN_NC and msgid not in NC_ALLOWED and not is_commented and
msgid[0].isalpha() and not msgid[0].isupper()):
print("WARNING: msgid around line {} is not capitalized "
"(\"{}\")!\n {}".format(line_nr, msgid,
More information about the Bf-translations-svn
mailing list