From 2a17281cb60ba3495cd76f0918a5df65847a12c6 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Mon, 22 Oct 2018 11:02:23 +0200 Subject: [PATCH] Load apps/APP/l10n/*.js and themes/THEME/apps/APP/l10n/*.js Before it quit right after finding the theme version of the l10n file which results in a not translated part of the UI. Signed-off-by: Morris Jobke --- lib/private/Template/JSResourceLocator.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/private/Template/JSResourceLocator.php b/lib/private/Template/JSResourceLocator.php index d38488e461..8b23a8d148 100644 --- a/lib/private/Template/JSResourceLocator.php +++ b/lib/private/Template/JSResourceLocator.php @@ -55,6 +55,7 @@ class JSResourceLocator extends ResourceLocator { $found += $this->appendIfExist($this->serverroot, $theme_dir.'core/'.$script.'.js'); $found += $this->appendIfExist($this->serverroot, $script.'.js'); $found += $this->appendIfExist($this->serverroot, $theme_dir.$script.'.js'); + $found += $this->appendIfExist($this->serverroot, 'apps/'.$script.'.js'); $found += $this->appendIfExist($this->serverroot, $theme_dir.'apps/'.$script.'.js'); if ($found) {