{namespace apps} /** * This is a Closure Template. * * Run the following command after changing the messages in any of the * included apps subdirectories. If building on Windows, you may need to * substitute '\' for '/'. * * java -jar _soy/SoyMsgExtractor.jar --outputFile extracted_msgs.xlf --srcs common.soy,code/template.soy,graph/template.soy,maze/template.soy,plane/template.soy,turtle/template.soy,index/template.soy * * Create en.json, keys.json, and qqq.json. * ../i18n/xliff_to_json.py --xlf extracted_msgs.xlf --templates common.soy {code,graph,index,maze,plane,turtle}/template.soy * or in Windows: * python ..\i18n\xliff_to_json.py --xlf extracted_msgs.xlf --templates common.soy code\template.soy graph\template.soy index\template.soy maze\template.soy plane\template.soy turtle\template.soy * * Generate .js files for each project and the index: * for i in code graph index maze plane turtle; do ../i18n/json_to_js.py --output_dir=$i/generated --template common.soy,$i/template.soy json/*.json; done * or in Windows: * FOR %i IN (code graph index maze plane turtle) DO python ..\i18n\json_to_js.py --output_dir=%i\generated --template common.soy,%i\template.soy json\*.json */ /** * All messages to be translated. */ {template .messages}
{/template} /** * Dialogs. */ {template .dialog private="true"} {/template} /** * Code dialog. */ {template .codeDialog private="true"}