[MPlayer-cvslog] r36782 - in trunk: DOCS/tech/translations.txt TOOLS/mphelp_check.py
ib
subversion at mplayerhq.hu
Sun Feb 2 22:30:05 CET 2014
Author: ib
Date: Sun Feb 2 22:30:05 2014
New Revision: 36782
Log:
Enhance the tool for checking translated messages header files.
Report redefinitions.
Additionally, update documentation.
Modified:
trunk/DOCS/tech/translations.txt
trunk/TOOLS/mphelp_check.py
Modified: trunk/DOCS/tech/translations.txt
==============================================================================
--- trunk/DOCS/tech/translations.txt Sun Feb 2 22:02:34 2014 (r36781)
+++ trunk/DOCS/tech/translations.txt Sun Feb 2 22:30:05 2014 (r36782)
@@ -101,9 +101,10 @@ to bottom once. Later it should suffice
Additionally, please make sure that your translated messages fit on an 80
character wide display to avoid overflowing output.
-TOOLS/mphelp_check.py is a small tool to check translated files. It will report
-conflicting arguments, strings not present in the master file and (optionally)
-strings missing from the translation. Running it as
+You are strongly encouraged to use TOOLS/mphelp_check.py, a small tool to
+check translated files. It will report conflicting definitions, mismatching
+arguments, extra definitions not present in the master file and (optionally)
+definitions missing from the translation. Running it as
TOOLS/mphelp_check.py help/help_mp-en.h help/help_mp-XX.h
Modified: trunk/TOOLS/mphelp_check.py
==============================================================================
--- trunk/TOOLS/mphelp_check.py Sun Feb 2 22:02:34 2014 (r36781)
+++ trunk/TOOLS/mphelp_check.py Sun Feb 2 22:30:05 2014 (r36782)
@@ -25,6 +25,11 @@ def parse(filename):
while line[-1] == '\\':
line = it.next().strip()
value += line.rstrip('\\').strip('"')
+ if name in r:
+ print 'Conflict: ', name
+ print r[name]
+ print value
+ print
r[name] = value
f.close()
return r
More information about the MPlayer-cvslog
mailing list