Skip to content

Commit

Permalink
Merge pull request #59 from euforic/locale
Browse files Browse the repository at this point in the history
[TIMOB-13999] [TIMOB-14581]
  • Loading branch information
Christian Sullivan committed Sep 30, 2013
2 parents c2f4df3 + 8ea67ae commit e6653fa
Show file tree
Hide file tree
Showing 5 changed files with 122 additions and 64 deletions.
7 changes: 5 additions & 2 deletions build/liveview.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,12 @@ Module.patch = function (globalCtx, url, port) {
Module._port = port || 8324;
Module._requireNative = globalCtx.require;
Module.evtServer && Module.evtServer.close();

globalCtx.localeStrings = Module.require('localeStrings');
globalCtx.L = function (name, filler) {
return (globalCtx.localeStrings[Ti.Locale.currentLanguage] || {})[name] || filler || name;
};
Module.connectServer();
Module.require('app');
}

/**
Expand Down Expand Up @@ -624,7 +628,6 @@ Module.prototype._compile = function() {
return;
}
this.source = Module._wrap(src);

try{
var fn = Function('exports, require, module, __filename, __dirname, lvGlobal',this.source);
fn(this.exports, Module.require, this, this.filename, this.__dirname, global);
Expand Down
2 changes: 1 addition & 1 deletion build/liveview.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e6653fa

Please sign in to comment.