forked from 0ad/0ad
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:
parent
e2536ae4bc
commit
d06ecc1b89
@ -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)
|
||||
|
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user