import os
import langdefs
+import buildlib
def progress (str):
sys.stderr.write (str + '\n')
progress ("translations-status.py")
-buildscript_dir = sys.argv[1]
-
_doc = lambda s: s
-sys.path.append (buildscript_dir)
-import buildlib
-
# load gettext messages catalogs
translation = langdefs.translation
## calculate how much the file is outdated
(diff_string, error) = \
- buildlib.check_translated_doc (masterdocument.filename, self.contents)
+ buildlib.check_translated_doc (masterdocument.filename, self.filename, self.contents)
if error:
sys.stderr.write ('warning: %s: %s' % (self.filename, error))
self.uptodate_percentage = None