diff --git a/main/admin/career_dashboard.php b/main/admin/career_dashboard.php
index 3e5e574b1b..e2e81c1461 100644
--- a/main/admin/career_dashboard.php
+++ b/main/admin/career_dashboard.php
@@ -22,7 +22,7 @@ api_protect_admin_script();
$this_section = SECTION_PLATFORM_ADMIN;
//Adds the JS needed to use the jqgrid
-$htmlHeadXtra[] = api_get_jqgrid_js();
+$htmlHeadXtra[] = api_get_jquery_ui_js(true);
// setting breadcrumbs
$interbreadcrumb[]=array('url' => 'index.php','name' => get_lang('PlatformAdmin'));
diff --git a/main/admin/careers.php b/main/admin/careers.php
index 289f81b7bf..b86640905b 100644
--- a/main/admin/careers.php
+++ b/main/admin/careers.php
@@ -19,7 +19,7 @@ api_protect_admin_script();
//Add the JS needed to use the jqgrid
-$htmlHeadXtra[] = api_get_jqgrid_js();
+$htmlHeadXtra[] = api_get_jquery_ui_js(true);
// setting breadcrumbs
$interbreadcrumb[]=array('url' => 'index.php','name' => get_lang('PlatformAdmin'));
diff --git a/main/admin/promotions.php b/main/admin/promotions.php
index 2f8f35d60e..a203a24cfe 100644
--- a/main/admin/promotions.php
+++ b/main/admin/promotions.php
@@ -19,7 +19,7 @@ $this_section = SECTION_PLATFORM_ADMIN;
api_protect_admin_script();
//Adds the JS needed to use the jqgrid
-$htmlHeadXtra[] = api_get_jqgrid_js();
+$htmlHeadXtra[] = api_get_jquery_ui_js(true);
// setting breadcrumbs
$interbreadcrumb[]=array('url' => 'index.php','name' => get_lang('PlatformAdmin'));
$interbreadcrumb[]=array('url' => 'career_dashboard.php','name' => get_lang('CareersAndPromotions'));
diff --git a/main/admin/usergroups.php b/main/admin/usergroups.php
index 91434f2f18..7fef38bc39 100644
--- a/main/admin/usergroups.php
+++ b/main/admin/usergroups.php
@@ -19,7 +19,7 @@ api_protect_admin_script();
//Add the JS needed to use the jqgrid
-$htmlHeadXtra[] = api_get_jqgrid_js();
+$htmlHeadXtra[] = api_get_jquery_ui_js(true);
// setting breadcrumbs
$interbreadcrumb[]=array('url' => 'index.php','name' => get_lang('PlatformAdmin'));
diff --git a/main/exercice/admin.php b/main/exercice/admin.php
index 29f6ea2975..a5556446cd 100755
--- a/main/exercice/admin.php
+++ b/main/exercice/admin.php
@@ -286,9 +286,8 @@ if($modifyIn == 'thisExercise') {
}
}
-$htmlHeadXtra[] = '';
-$htmlHeadXtra[] = ''; //jQuery
-$htmlHeadXtra[] = ''; //jQuery
+
+$htmlHeadXtra[] = api_get_jquery_ui_js();
$htmlHeadXtra[] = ''; //jQuery
@@ -4777,14 +4773,23 @@ function api_get_jqgrid_js($include_jquery = true) {
//Jquery ui
$js .= '';
$js .= '';
-
+
//Grid js
- $js .= '';
- $js .= '';
- $js .= '';
+ if ($include_jqgrid) {
+ //languages supported by jqgrid see files in main/inc/lib/javascript/jqgrid/js/i18n
+ $jqgrid_langs = array('bg', 'bg1251', 'cat','cn','cs','da','de','el','en','es','fa','fi','fr','gl','he','hu','is','it','ja','nl','no','pl','pt-br','pt','ro','ru','sk','sr','sv','tr','ua');
+
+ if (in_array($platform_isocode, $jqgrid_langs)) {
+ $languaje = $platform_isocode;
+ }
+
+ $js .= '';
+ $js .= '';
+ $js .= '';
+ }
//Adding default CSS changes for Chamilo in order to preserve the neutral layout
$js .= '';
return $js;
-}
+}
\ No newline at end of file