Revert "Compatibility for Closure Compiler. (#1240)" [fc8d4c9]

This commit is contained in:
Tom
2017-08-03 11:27:43 +02:00
parent 824c806ec3
commit f7ff00eb9b

View File

@@ -42,7 +42,7 @@ def load_constants(filename):
for key in constant_defs:
value = constant_defs[key]
value = value.replace('"', '\\"')
constants_text += '\nBlockly.Msg["{0}"] = "{1}";'.format(key, value)
constants_text += '\nBlockly.Msg.{0} = \"{1}\";'.format(key, value)
return constants_text
def main():
@@ -139,7 +139,7 @@ goog.require('Blockly.Msg');
value = source_defs[key]
comment = ' // untranslated'
value = value.replace('"', '\\"')
outfile.write(u'Blockly.Msg["{0}"] = "{1}";{2}\n'.format(
outfile.write(u'Blockly.Msg.{0} = "{1}";{2}\n'.format(
key, value, comment))
# Announce any keys defined only for target language.