diff --git a/demos/plane/README.txt b/demos/plane/README.txt index 38bbc0313..944448fd6 100644 --- a/demos/plane/README.txt +++ b/demos/plane/README.txt @@ -13,11 +13,11 @@ This generates xlf/extracted_msgs.xlf, which may then be used by any XLIFF-compatible translation console to generate a set of files with the translated strings. These should be placed in the xlf directory. -Finally, generate all the language versions wih this command: +Finally, generate all the language versions with this command: java -jar soy/SoyToJsSrcCompiler.jar --locales ar,be-tarask,br,ca,da,de,el,en,es,fa,fr,he,hrx,hu,ia,is,it,ja,ko,ms,nb,nl,pl,pms,pt-br,ro,ru,sc,sv,th,tr,uk,vi,zh-hans,zh-hant --messageFilePathFormat xlf/translated_msgs_{LOCALE}.xlf --outputPathFormat "generated/{LOCALE}.js" template.soy -This is the process that Google uses for maintaining Blockly Games in 40+ +This is the process that Google uses for maintaining Blockly Games in 50+ languages. The XLIFF format is simple enough that it is trivial to write a Python script to reformat it into some other format (such as JSON) for compatibility with other translation consoles. diff --git a/demos/plane/generated/ar.js b/demos/plane/generated/ar.js index 131094904..ac760fb11 100644 --- a/demos/plane/generated/ar.js +++ b/demos/plane/generated/ar.js @@ -1,37 +1,50 @@ // This file was automatically generated from template.soy. // Please don't edit this file by hand. +/** + * @fileoverview Templates in namespace planepage. + */ + if (typeof planepage == 'undefined') { var planepage = {}; } planepage.messages = function(opt_data, opt_ignored, opt_ijData) { - return '
الصفوف: %1الصفوف (%1)صفوف الطبقة الأولى: %1صفوف الطبقة الأولى (%1)صفوف الفئة الثانية: %1صفوف الفئة الثانية: (%1)المقاعد: %1؟المقاعد =
'; + return '
\u0627\u0644\u0635\u0641\u0648\u0641: %1\u0627\u0644\u0635\u0641\u0648\u0641 (%1)\u0635\u0641\u0648\u0641 \u0627\u0644\u0637\u0628\u0642\u0629 \u0627\u0644\u0623\u0648\u0644\u0649: %1\u0635\u0641\u0648\u0641 \u0627\u0644\u0637\u0628\u0642\u0629 \u0627\u0644\u0623\u0648\u0644\u0649 (%1)\u0635\u0641\u0648\u0641 \u0627\u0644\u0641\u0626\u0629 \u0627\u0644\u062B\u0627\u0646\u064A\u0629: %1\u0635\u0641\u0648\u0641 \u0627\u0644\u0641\u0626\u0629 \u0627\u0644\u062B\u0627\u0646\u064A\u0629: (%1)\u0627\u0644\u0645\u0642\u0627\u0639\u062F: %1\u061F\u0627\u0644\u0645\u0642\u0627\u0639\u062F =
'; }; +if (goog.DEBUG) { + planepage.messages.soyTemplateName = 'planepage.messages'; +} planepage.start = function(opt_data, opt_ignored, opt_ijData) { - var output = planepage.messages(null, null, opt_ijData) + '

Blockly‏ > Demos‏ > آلة حاسبة لمقعد الطائرة   '; - var iLimit37 = opt_ijData.maxLevel + 1; - for (var i37 = 1; i37 < iLimit37; i37++) { - output += ' ' + ((i37 == opt_ijData.level) ? '' + soy.$$escapeHtml(i37) + '' : (i37 < opt_ijData.level) ? '' : '' + soy.$$escapeHtml(i37) + ''); + var output = planepage.messages(null, null, opt_ijData) + '

Blockly‏ > Demos‏ > \u0622\u0644\u0629 \u062D\u0627\u0633\u0628\u0629 \u0644\u0645\u0642\u0639\u062F \u0627\u0644\u0637\u0627\u0626\u0631\u0629   '; + var iLimit47 = opt_ijData.maxLevel + 1; + for (var i47 = 1; i47 < iLimit47; i47++) { + output += ' ' + ((i47 == opt_ijData.level) ? '' + soy.$$escapeHtml(i47) + '' : (i47 < opt_ijData.level) ? '' : '' + soy.$$escapeHtml(i47) + ''); } output += '