Locale hotfix
This commit is contained in:
parent
aaa4db25cd
commit
058493124b
|
@ -1,4 +1,4 @@
|
||||||
hedera-web (1.385-deb8) stable; urgency=low
|
hedera-web (1.387-deb8) stable; urgency=low
|
||||||
|
|
||||||
* Initial Release.
|
* Initial Release.
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue