adobe/brackets — pull request #1348 by tvoliter (2012-08-06 22:01:53+00:00)
Title: Use Mustache to templatize index.html for localization (REVIEW ONLY)

Do not merge. This pull request is to facilitate discussion around localizating index.html

Changes:
* replaced strings in index.html with Mustache keys in the form: {{keyname}}
* added strings.json which maps keys to strings
* changed order of operations in index.html so Mustache can replace strings before any plugins load. I did this since some plugins immediately reach into the dom upon loading. SideBarView.js does work on the dom on load for example.

Execution is now:
1. load all html in body tag of index.html
2. run Mustache on body to replace strings
3. load require.js which in turn loads brackets.js and all the plugins

Note:
The pull request doesn't use the i18n.js plug-in that jdielh used in this localization pull request https://github.com/adobe/brackets/pull/1285
I tried integrating with pull rquest and ran into the following issue. i18n.js is loaded via require yet I want mustache to run before Brackets loads extensions and extensions use require. Since some extensions touch the DOM Brackets should be fully localized before a plugin sees the DOM.
I think we want this load order below, but I am not sure how to achieve it:
1. load all html in body tag of index.html
2. Load require and i18n.js plugin, but don't load brackets plugins yet
2. run Mustache on body to replace strings
3.load brackets.js and all the plugins