This commit is contained in:
krzysztofmadejski 2016-11-14 15:18:17 +00:00
parent 8b362bf81c
commit 921be79884
2 changed files with 9 additions and 3 deletions

4
make
View File

@ -5,9 +5,9 @@ import os
def cat():
print("** Combining js files")
cmd = 'ls src/**/*.js | grep -v couchdb | xargs cat > dist/recline.js'
cmd = 'ls src/*.js | grep -v couchdb | xargs cat > dist/recline.js'
os.system(cmd)
cmd = 'ls src/*.js | grep -v couchdb | xargs cat >> dist/recline.js'
cmd = 'ls src/**/*.js | grep -v couchdb | xargs cat >> dist/recline.js'
os.system(cmd)
cmd = 'cat src/model.js src/backend.memory.js > dist/recline.dataset.js'

View File

@ -3,6 +3,7 @@
*
* This code is licensed under GPL v3 http://choosealicense.com/licenses/gpl-3.0/
*/
(function (global) {
"use strict";
var I18nMessages = function(libraryID, translations, languageResolverOrLocale, appHardcodedLocale) {
if (typeof this === 'undefined') {
@ -117,4 +118,9 @@ var I18nMessages = function(libraryID, translations, languageResolverOrLocale, a
I18nMessages.languageResolver = function() {
var h = $('html');
return h.attr('lang') || h.attr('xml:lang');
};
};
global.I18nMessages = I18nMessages;
}(window));