Changeset View
Changeset View
Standalone View
Standalone View
filljsonfrompo.py
Context not available. | |||||
54 | continue | 54 | continue | ||
---|---|---|---|---|---|
55 | if entry.msgstr == '': | 55 | if entry.msgstr == '': | ||
56 | continue | 56 | continue | ||
57 | if entry.msgstr == msgid: | | |||
58 | # don't add translations that are the same as the original (e.g. en_GB) | | |||
59 | # to the JSON file, it unnecessarily increases the size of the JSON file | | |||
60 | # and as such the size of the plugin binary if it is embedded | | |||
61 | debugPrint('Not adding translation "%s" as it is the same as the original: "%s"' % (langkey, msgid)) | | |||
62 | continue | | |||
63 | if islist: | 57 | if islist: | ||
64 | json[langkey] = deserializeList(entry.msgstr) | 58 | json[langkey] = deserializeList(entry.msgstr) | ||
65 | else: | 59 | else: | ||
Context not available. |