Skip to content

Commit

Permalink
Merge pull request #6329 from maribethb/msg-again
Browse files Browse the repository at this point in the history
fix: Make message files work in unpackaged mode, and rebuild msg files
  • Loading branch information
maribethb authored Aug 9, 2022
2 parents c8dd01a + 4b1bb8c commit 463acb3
Show file tree
Hide file tree
Showing 124 changed files with 51,123 additions and 51,123 deletions.
838 changes: 419 additions & 419 deletions msg/js/ab.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/ace.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/af.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/am.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/ar.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/ast.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/az.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/ba.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/bcc.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/be-tarask.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/be.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/bg.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/bn.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/br.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/bs.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/ca.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/cdo.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/cs.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/da.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/de.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/diq.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/dty.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/ee.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/el.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/en-gb.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/en.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/eo.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/es.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/et.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/eu.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/fa.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/fi.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/fo.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/fr.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/frr.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/gl.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/gn.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/gor.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/ha.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/hak.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/he.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/hi.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/hr.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/hrx.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/hu.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/hy.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/ia.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/id.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/ig.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/inh.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/is.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/it.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/ja.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/ka.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/kab.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/kbd-cyrl.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/km.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/kn.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/ko.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/ksh.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/ku-latn.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/ky.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/la.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/lb.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/lki.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/lo.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/lrc.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/lt.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/lv.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/mg.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/mk.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/ml.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/mnw.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/ms.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/my.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/mzn.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/nb.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/ne.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/nl.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/oc.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/olo.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/pa.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/pl.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/pms.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/ps.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/pt-br.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/pt.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/ro.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/ru.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/sc.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/sco.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/sd.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/shn.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/si.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/sk.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/skr-arab.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/sl.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/smn.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/sq.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/sr-latn.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/sr.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/sv.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/sw.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/ta.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/tcy.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/te.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/th.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/ti.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/tl.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/tlh.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/tr.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/ug-arab.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/uk.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/ur.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/uz.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/vi.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/xmf.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/yo.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/yue.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/zgh.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/zh-hans.js

Large diffs are not rendered by default.

838 changes: 419 additions & 419 deletions msg/js/zh-hant.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions scripts/i18n/create_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def load_constants(filename):
for key in constant_defs:
value = constant_defs[key]
value = value.replace('"', '\\"')
constants_text += u'\nmessages["{0}"] = \"{1}\";'.format(
constants_text += u'\nBlockly.Msg["{0}"] = \"{1}\";'.format(
key, value)
return constants_text

Expand Down Expand Up @@ -88,7 +88,7 @@ def main():
os.curdir, args.source_synonym_file))

# synonym_defs is also being sorted to ensure the same order is kept
synonym_text = '\n'.join([u'messages["{0}"] = messages["{1}"];'
synonym_text = '\n'.join([u'Blockly.Msg["{0}"] = Blockly.Msg["{1}"];'
.format(key, synonym_defs[key]) for key in sorted(synonym_defs)])

# Read in constants file, which must be output in every language.
Expand Down Expand Up @@ -123,7 +123,7 @@ def main():
'use strict';
const messages = Object.create(null);
var Blockly = Blockly || {{ Msg: Object.create(null) }};
""".format(target_lang.replace('-', '.')))
# For each key in the source language file, output the target value
Expand All @@ -138,7 +138,7 @@ def main():
value = source_defs[key]
comment = ' // untranslated'
value = value.replace('"', '\\"')
outfile.write(u'messages["{0}"] = "{1}";{2}\n'
outfile.write(u'Blockly.Msg["{0}"] = "{1}";{2}\n'
.format(key, value, comment))

# Announce any keys defined only for target language.
Expand Down
2 changes: 1 addition & 1 deletion scripts/package/templates/umd-msg.template
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
}
}(this, function() {
<%= contents %>
return messages;
return Blockly.Msg;
}));

0 comments on commit 463acb3

Please sign in to comment.