|
|
|
@ -134,10 +134,10 @@ class OC_L10N implements \OCP\IL10N { |
|
|
|
|
$i18ndir = self::findI18nDir($app); |
|
|
|
|
// Localization is in /l10n, Texts are in $i18ndir |
|
|
|
|
// (Just no need to define date/time format etc. twice) |
|
|
|
|
if((OC_Helper::issubdirectory($i18ndir.$lang.'.php', OC::$SERVERROOT.'/core/l10n/') |
|
|
|
|
|| OC_Helper::issubdirectory($i18ndir.$lang.'.php', OC::$SERVERROOT.'/lib/l10n/') |
|
|
|
|
|| OC_Helper::issubdirectory($i18ndir.$lang.'.php', OC::$SERVERROOT.'/settings') |
|
|
|
|
|| OC_Helper::issubdirectory($i18ndir.$lang.'.php', OC_App::getAppPath($app).'/l10n/') |
|
|
|
|
if((OC_Helper::isSubDirectory($i18ndir.$lang.'.php', OC::$SERVERROOT.'/core/l10n/') |
|
|
|
|
|| OC_Helper::isSubDirectory($i18ndir.$lang.'.php', OC::$SERVERROOT.'/lib/l10n/') |
|
|
|
|
|| OC_Helper::isSubDirectory($i18ndir.$lang.'.php', OC::$SERVERROOT.'/settings') |
|
|
|
|
|| OC_Helper::isSubDirectory($i18ndir.$lang.'.php', OC_App::getAppPath($app).'/l10n/') |
|
|
|
|
) |
|
|
|
|
&& file_exists($i18ndir.$lang.'.php')) { |
|
|
|
|
// Include the file, save the data from $CONFIG |
|
|
|
@ -162,7 +162,7 @@ class OC_L10N implements \OCP\IL10N { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(file_exists(OC::$SERVERROOT.'/core/l10n/l10n-'.$lang.'.php') && OC_Helper::issubdirectory(OC::$SERVERROOT.'/core/l10n/l10n-'.$lang.'.php', OC::$SERVERROOT.'/core/l10n/')) { |
|
|
|
|
if(file_exists(OC::$SERVERROOT.'/core/l10n/l10n-'.$lang.'.php') && OC_Helper::isSubDirectory(OC::$SERVERROOT.'/core/l10n/l10n-'.$lang.'.php', OC::$SERVERROOT.'/core/l10n/')) { |
|
|
|
|
// Include the file, save the data from $CONFIG |
|
|
|
|
include OC::$SERVERROOT.'/core/l10n/l10n-'.$lang.'.php'; |
|
|
|
|
if(isset($LOCALIZATIONS) && is_array($LOCALIZATIONS)) { |
|
|
|
|