1
Installation problems / Re: missing lang.js http error and Error 403 : forbidden, bugs since 2008
« on: November 05, 2012, 06:39:23 pm »
The missing lang.js message you can skip by tweaking app.js (the lang() function.
Below you find my tweak on versiion 2.2
function lang(name) {
var value = _lang[name];
if (!value) {
value=name; <<-- this line is added
// return "Missing lang.js: " + name; <<--this line commented out
}
for (var i=1; i < arguments.length; i++) {
value = value.replace("{" + (i-1) + "}", arguments);
}
return value;
}
The message 'missing lang' (without .js) you cab avoid by setting DEBUG is false in config.php
Below you find my tweak on versiion 2.2
function lang(name) {
var value = _lang[name];
if (!value) {
value=name; <<-- this line is added
// return "Missing lang.js: " + name; <<--this line commented out
}
for (var i=1; i < arguments.length; i++) {
value = value.replace("{" + (i-1) + "}", arguments);
}
return value;
}
The message 'missing lang' (without .js) you cab avoid by setting DEBUG is false in config.php