Fixes some errors in i18n scripts: use ASCII quotes to avoid charset errors in Windows command line, and use function form of print

This was SVN commit r15907.
This commit is contained in:
historic_bruno 2014-10-27 02:42:06 +00:00
parent e2536ae4bc
commit d06ecc1b89
2 changed files with 2 additions and 2 deletions

View File

@ -261,7 +261,7 @@ class javascript(Extractor):
# An empty string msgid isn't valid, emit a warning
where = '%s:%i' % (hasattr(fileObject, 'name') and \
fileObject.name or '(unknown)', lineno)
print >> sys.stderr, self.empty_msgid_warning % where
print(self.empty_msgid_warning % where, file=sys.stderr)
continue
messages = tuple(msgs)

View File

@ -103,7 +103,7 @@ def generateTemplatesForMessagesFile(messagesFilePath):
template.set_encoding("utf-8")
template.sync()
print(u"Generated {} with {} messages.".format(templateSettings["output"], len(template)))
print(u"Generated \"{}\" with {} messages.".format(templateSettings["output"], len(template)))
def main():