From 1cce1f0e6b9eb4ba6bbee4535076b523c97237ca Mon Sep 17 00:00:00 2001
From: Bernhard Posselt <dev@bernhard-posselt.com>
Date: Wed, 14 Jan 2015 14:42:19 +0100
Subject: [PATCH] dont load core scritps

---
 lib/private/util.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/private/util.php b/lib/private/util.php
index 54e4f2b1d2..13208911f4 100644
--- a/lib/private/util.php
+++ b/lib/private/util.php
@@ -365,7 +365,7 @@ class OC_Util {
 		if (!in_array($path, self::$scripts)) {
 			// load javascript translations if it is the first time an app's
 			// script is loaded.
-			if (!isset(self::$loadedScriptTranslations[$application]) && $file) {
+			if (!isset(self::$loadedScriptTranslations[$application]) && $file && $application !== 'core') {
 				error_log("adding " . $application . " "  . $file);
 
 				self::addTranslations($application);
@@ -406,7 +406,9 @@ class OC_Util {
 			$path = "l10n/$languageCode";
 		}
 		if (!in_array($path, self::$scripts)) {
+		error_log("translation " . $path);
 			self::$scripts[] = $path;
+			error_log(print_r(self::$scripts, true));
 		}
 	}
 
-- 
GitLab