Skip to content
Snippets Groups Projects
Commit d6f1ff79 authored by Bernhard Posselt's avatar Bernhard Posselt
Browse files

only load translsations for apps

parent 8cb60b23
No related branches found
No related tags found
No related merge requests found
...@@ -365,7 +365,9 @@ class OC_Util { ...@@ -365,7 +365,9 @@ class OC_Util {
if (!in_array($path, self::$scripts)) { if (!in_array($path, self::$scripts)) {
// load javascript translations if it is the first time an app's // load javascript translations if it is the first time an app's
// script is loaded. // script is loaded.
if (!isset(self::$loadedScriptTranslations[$application])) { if (!isset(self::$loadedScriptTranslations[$application]) && $file) {
error_log("adding " . $application . " " . $file);
self::addTranslations($application); self::addTranslations($application);
self::$loadedScriptTranslations[$application] = true; self::$loadedScriptTranslations[$application] = true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment