From 3d06ce2a24655e3f44c34438c7173d5fd6f84594 Mon Sep 17 00:00:00 2001 From: janxb Date: Mon, 25 Jul 2016 11:38:37 +0200 Subject: [PATCH] fixed error message translation in javascript --- bl-kernel/admin/themes/default/init.php | 8 ++++---- bl-kernel/js/bludit-cover-image.js | 2 +- bl-kernel/js/bludit-images-v8.js | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bl-kernel/admin/themes/default/init.php b/bl-kernel/admin/themes/default/init.php index 4cfe7091..bc67c0d9 100644 --- a/bl-kernel/admin/themes/default/init.php +++ b/bl-kernel/admin/themes/default/init.php @@ -205,11 +205,11 @@ class HTML { public static function bluditCoverImage($coverImage="") { + global $L; + // Javascript code include(PATH_JS.'bludit-cover-image.js'); - global $L; - $style = ''; if(!empty($coverImage)) { $style = 'background-image: url('.HTML_PATH_UPLOADS_THUMBNAILS.$coverImage.')'; @@ -263,11 +263,11 @@ class HTML { public static function bluditImagesV8() { + global $L; + // Javascript code include(PATH_JS.'bludit-images-v8.js'); - global $L; - $html = ''; $html .= '
diff --git a/bl-kernel/js/bludit-cover-image.js b/bl-kernel/js/bludit-cover-image.js index 4738cfb8..fef06ebc 100644 --- a/bl-kernel/js/bludit-cover-image.js +++ b/bl-kernel/js/bludit-cover-image.js @@ -85,7 +85,7 @@ $(document).ready(function() { }, notallowed: function(file, settings) { - alert("'.$L->g('Supported image file types').' "+settings.allow); + alert("g('error').'. '.$L->g('Supported image file types')?>: "+settings.allow); } }; diff --git a/bl-kernel/js/bludit-images-v8.js b/bl-kernel/js/bludit-images-v8.js index 4810becb..a6b9f9ec 100644 --- a/bl-kernel/js/bludit-images-v8.js +++ b/bl-kernel/js/bludit-images-v8.js @@ -58,7 +58,7 @@ $(document).ready(function() { }, notallowed: function(file, settings) { - alert("'.$L->g('Supported image file types').' "+settings.allow); + alert("g('error').'. '.$L->g('Supported image file types')?>: "+settings.allow); } };