Locale hotfix

This commit is contained in:
Juan Ferrer Toribio 2016-11-08 08:00:02 +01:00
parent aaa4db25cd
commit 058493124b
4 changed files with 6 additions and 6 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
hedera-web (1.385-deb8) stable; urgency=low hedera-web (1.387-deb8) stable; urgency=low
* Initial Release. * Initial Release.

View File

@ -32,7 +32,7 @@ module.exports =
,loadScript: function (path, callback) ,loadScript: function (path, callback)
{ {
this.init (); this.init ();
Vn.includeJs ('locale/'+ this.language +'/'+ path, callback); Vn.includeJs (path +'/locale/'+ this.language, callback);
} }
,loadDone: function (request, callback) ,loadDone: function (request, callback)

View File

@ -103,10 +103,10 @@ class HtmlService extends Service
function getUrl ($fileName) function getUrl ($fileName)
{ {
if (file_exists ($fileName)) /* if (file_exists ($fileName))
$mTime = '?'. strftime ('%G%m%d%H%M%S', filemtime ($fileName)); $mTime = '?'. strftime ('%G%m%d%H%M%S', filemtime ($fileName));
else else
$mTime = '?'. $this->getVersion (); */ $mTime = '?'. $this->getVersion ();
return $fileName.$mTime; return $fileName.$mTime;
} }

View File

@ -65,7 +65,7 @@ abstract class Service
preg_match_all ($regexp, $_SERVER['HTTP_ACCEPT_LANGUAGE'], $languages); preg_match_all ($regexp, $_SERVER['HTTP_ACCEPT_LANGUAGE'], $languages);
foreach ($languages[1] as $lang) foreach ($languages[1] as $lang)
if (stream_resolve_include_path ("locale/$lang")) if (TRUE || stream_resolve_include_path ("locale/$lang"))
{ {
$_SESSION['lang'] = $lang; $_SESSION['lang'] = $lang;
break; break;