Locale folders inside its own modules
This commit is contained in:
parent
73ba247268
commit
9bdd604038
|
@ -1,4 +1,4 @@
|
|||
php-vn-lib (1.306-deb8) stable; urgency=low
|
||||
php-vn-lib (1.307-deb8) stable; urgency=low
|
||||
|
||||
* Initial Release.
|
||||
|
||||
|
|
|
@ -88,7 +88,8 @@ namespace Vn\Lib
|
|||
**/
|
||||
static function loadFile ($path)
|
||||
{
|
||||
$file = stream_resolve_include_path ('locale/'. self::$locale .'/'. $path .'.json');
|
||||
$locale = self::$locale;
|
||||
$file = stream_resolve_include_path ("$path/locale/$locale.json");
|
||||
|
||||
if (file_exists ($file)
|
||||
&& ($jsonString = file_get_contents ($file)))
|
||||
|
|
Loading…
Reference in New Issue