Skip to content

Commit

Permalink
Fixing Issue #4636 Latest jQueryMultiselect
Browse files Browse the repository at this point in the history
jQueryMulti-select 3.0.1 includes i18n upgrade to it
  • Loading branch information
TheWitness committed Mar 19, 2022
1 parent 4a6ace2 commit 84a9ecf
Show file tree
Hide file tree
Showing 30 changed files with 380 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Expand Up @@ -111,6 +111,7 @@ Cacti CHANGELOG
-feature: Enhance Cisco Router Device Package
-feature#4574: Cacti needs some additional permission methods for larger installations
-feature#4631: Additional choices for Heartbeat when creating a Data Source Profile
-feature#4636: jQueryMulti-select 3.0.1 includes i18n upgrade to it

1.2.19
-security#4356: Further fixes for grave character security protection
Expand Down
16 changes: 15 additions & 1 deletion include/global_languages.php
Expand Up @@ -29,7 +29,7 @@
/* an array that will contains all textdomains being in use. */
$cacti_textdomains = array();

global $path2calendar, $path2timepicker, $path2colorpicker;
global $path2calendar, $path2timepicker, $path2colorpicker, $path2ms, $path2msfilter;

/* get a list of locale settings */
$lang2locale = get_list_of_locales();
Expand Down Expand Up @@ -115,9 +115,23 @@
} else {
$path2colorpicker = '';
}

// Detect the multiselect path
if (file_exists($config['include_path'] . '/js/LC_MESSAGES/jquery-multiselect-' . $cacti_locale . '.js')) {
$path2ms = $config['include_path'] . '/js/LC_MESSAGES/jquery-multiselect-' . $cacti_locale . '.js';
$path2msfilter = $config['include_path'] . '/js/LC_MESSAGES/jquery-multiselect-filter-' . $cacti_locale . '.js';
} elseif (file_exists($config['include_path'] . '/js/LC_MESSAGES/jquery-multiselect-' . $lang_parts[0] . '.js')) {
$path2ms = $config['include_path'] . '/js/LC_MESSAGES/jquery-multiselect-' . $lang_parts[0] . '.js';
$path2msfilter = $config['include_path'] . '/js/LC_MESSAGES/jquery-multiselect-filter-' . $lang_parts[0] . '.js';
} else {
$path2ms = '';
$path2msfilter = '';
}
} else {
$path2timepicker = '';
$path2calendar = '';
$path2ms = '';
$path2msfiler = '';
$path2colorpicker = '';
}

Expand Down
15 changes: 15 additions & 0 deletions include/js/LC_MESSAGES/jquery.multiselect.br.js
@@ -0,0 +1,15 @@
/* Brazilian initialisation for the jQuery UI multiselect plugin. */
/* Written by Vinícius Fontoura Corrêa (vinusfc@gmail.com). */

(function ( $ ) {

$.extend($.ech.multiselect.prototype.options, {
linkInfo: {
checkAll: {text: 'Marcar todos', title: 'Marcar todos'},
uncheckAll: {text: 'Desmarcar todos', title: 'Desmarcar todos'}
},
noneSelectedText: 'Selecione as opções',
selectedText: '# selecionado'
});

})( jQuery );
16 changes: 16 additions & 0 deletions include/js/LC_MESSAGES/jquery.multiselect.cs.js
@@ -0,0 +1,16 @@
/* Czech initialisation for the jQuery UI multiselect plugin. */
/* Written by Michi (michi.m@gmail.com). */

(function ( $ ) {

$.extend($.ech.multiselect.prototype.options, {
linkInfo: {
checkAll: {text: 'Vybrat vše', title: 'Vybrat vše'},
uncheckAll: {text: 'Zrušit výběr', title: 'Zrušit výběr'}
},
noneSelectedText: 'Nic není vybráno',
selectedText: '# vybráno'
});

})( jQuery );

15 changes: 15 additions & 0 deletions include/js/LC_MESSAGES/jquery.multiselect.de.js
@@ -0,0 +1,15 @@
/* German initialisation for the jQuery UI multiselect plugin. */
/* Written by Sven Tatter (sven.tatter@gmail.com). */

(function ( $ ) {

$.extend($.ech.multiselect.prototype.options, {
linkInfo: {
checkAll: {text: 'Alle auswählen', title: 'Alle auswählen'},
uncheckAll: {text: 'Alle abwählen', title: 'Alle abwählen'}
},
noneSelectedText: 'Nichts ausgewählt',
selectedText: '# ausgewählt'
});

})( jQuery );
15 changes: 15 additions & 0 deletions include/js/LC_MESSAGES/jquery.multiselect.es.js
@@ -0,0 +1,15 @@
/* Spanish initialisation for the jQuery UI multiselect plugin. */
/* Written by Vinius Fontoura Correa(vinusfc@gmail.com). */

(function ( $ ) {

$.extend($.ech.multiselect.prototype.options, {
linkInfo: {
checkAll: {text: 'Marca todas', title: 'Marca todas'},
uncheckAll: {text: 'Desmarque todas', title: 'Desmarque todas'}
},
noneSelectedText: 'Seleccione las opciones',
selectedText: '# seleccionado'
});

})( jQuery );
11 changes: 11 additions & 0 deletions include/js/LC_MESSAGES/jquery.multiselect.filter.br.js
@@ -0,0 +1,11 @@
/* Brazilian initialisation for the jQuery UI multiselect plugin. */
/* Written by Vinícius Fontoura Corrêa (vinusfc@gmail.com). */

(function ( $ ) {

$.extend($.ech.multiselectfilter.prototype.options, {
label: "Filtro:",
placeholder: "Entre com a palavra"
});

})( jQuery );
11 changes: 11 additions & 0 deletions include/js/LC_MESSAGES/jquery.multiselect.filter.cs.js
@@ -0,0 +1,11 @@
/* Czech initialisation for the jQuery UI multiselect plugin. */
/* Written by Michi (michi.m@gmail.com). */

(function ( $ ) {

$.extend($.ech.multiselectfilter.prototype.options, {
label: "Filtrovat:",
placeholder: "Napište výraz"
});

})( jQuery );
11 changes: 11 additions & 0 deletions include/js/LC_MESSAGES/jquery.multiselect.filter.de.js
@@ -0,0 +1,11 @@
/* German initialisation for the jQuery UI multiselect plugin. */
/* Written by Sven Tatter (sven.tatter@gmail.com). */

(function ( $ ) {

$.extend($.ech.multiselectfilter.prototype.options, {
label: "Suchen:",
placeholder: "Stichwort eingeben"
});

})( jQuery );
11 changes: 11 additions & 0 deletions include/js/LC_MESSAGES/jquery.multiselect.filter.es.js
@@ -0,0 +1,11 @@
/* Spanish initialisation for the jQuery UI multiselect plugin. */
/* Written by Vinícius Fontoura Corrêa (vinusfc@gmail.com). */

(function ( $ ) {

$.extend($.ech.multiselectfilter.prototype.options, {
label: "Filtro:",
placeholder: "Introduzca una palabra"
});

})( jQuery );
11 changes: 11 additions & 0 deletions include/js/LC_MESSAGES/jquery.multiselect.filter.fr.js
@@ -0,0 +1,11 @@
/* French initialisation for the jQuery UI multiselect plugin. */
/* Written by Charles SANQUER (charles.sanquer@spyrit.net). */

(function ( $ ) {

$.extend($.ech.multiselectfilter.prototype.options, {
label: "Filtre:",
placeholder: "Entrer un mot clé"
});

})( jQuery );
11 changes: 11 additions & 0 deletions include/js/LC_MESSAGES/jquery.multiselect.filter.hu.js
@@ -0,0 +1,11 @@
/* Hungarian initialisation for the jQuery UI multiselect plugin. */
/* Written by Adam Fónagy (adam.fonagy@greenformatics.hu). */

(function ( $ ) {

$.extend($.ech.multiselectfilter.prototype.options, {
label: "Keresés:",
placeholder: "kulcsszó megadása"
});

})( jQuery );
12 changes: 12 additions & 0 deletions include/js/LC_MESSAGES/jquery.multiselect.filter.it.js
@@ -0,0 +1,12 @@
/* Italian initialization for the jQuery UI multiselect plugin. */
/* Written by Vincenzo Farruggia(mastropinguino@networky.net). */

(function ( $ ) {

$.extend($.ech.multiselectfilter.prototype.options, {
label: "Filtro:",
placeholder: "Digita una parola chiave"
});

})( jQuery );

11 changes: 11 additions & 0 deletions include/js/LC_MESSAGES/jquery.multiselect.filter.ja.js
@@ -0,0 +1,11 @@
/* Japanese initialisation for the jQuery UI multiselect plugin. */
/* Written by Daisuke (daisuketaniwaki@gmail.com). */

(function ( $ ) {

$.extend($.ech.multiselectfilter.prototype.options, {
label: '絞込み:',
placeholder: 'キーワードを入力してください'
});

})( jQuery );
11 changes: 11 additions & 0 deletions include/js/LC_MESSAGES/jquery.multiselect.filter.pl.js
@@ -0,0 +1,11 @@
/* Polish initialisation for the jQuery UI multiselect plugin. */
/* Written by Tomasz Mazur (contact@tomaszmazur.eu). */

(function ( $ ) {

$.extend($.ech.multiselectfilter.prototype.options, {
label: "Filtruj:",
placeholder: "Wprowadź słowa kluczowe"
});

})( jQuery );
11 changes: 11 additions & 0 deletions include/js/LC_MESSAGES/jquery.multiselect.filter.ru.js
@@ -0,0 +1,11 @@
/* Russian initialisation for the jQuery UI multiselect plugin. */
/* Written by Artem Packhomov (gorblnu4@gmail.com). */

(function ( $ ) {

$.extend($.ech.multiselectfilter.prototype.options, {
label: "Фильтр:",
placeholder: "Введите запрос"
});

})( jQuery );
11 changes: 11 additions & 0 deletions include/js/LC_MESSAGES/jquery.multiselect.filter.tr.js
@@ -0,0 +1,11 @@
/* Brazilian initialisation for the jQuery UI multiselect plugin. */
/* Written by Yusuf Özer (realsby@gmail.com). */

(function ( $ ) {

$.extend($.ech.multiselectfilter.prototype.options, {
label: "Filtre:",
placeholder: "Bir kelime yazın"
});

})( jQuery );
11 changes: 11 additions & 0 deletions include/js/LC_MESSAGES/jquery.multiselect.filter.zh-cn.js
@@ -0,0 +1,11 @@
/* Simplified Chinese initialisation for the jQuery UI multiselect plugin. */
/* Written by Ben (ben@zfben.com). */

(function ( $ ) {

$.extend($.ech.multiselectfilter.prototype.options, {
label: '过滤:',
placeholder: '输入关键字过滤'
});

})( jQuery );
11 changes: 11 additions & 0 deletions include/js/LC_MESSAGES/jquery.multiselect.filter.zh-tw.js
@@ -0,0 +1,11 @@
/* Simplified Chinese initialisation for the jQuery UI multiselect plugin. */
/* Written by Ben (ben@zfben.com). */

(function ( $ ) {

$.extend($.ech.multiselectfilter.prototype.options, {
label: '過濾:',
placeholder: '輸入關鍵字過濾'
});

})( jQuery );
15 changes: 15 additions & 0 deletions include/js/LC_MESSAGES/jquery.multiselect.fr.js
@@ -0,0 +1,15 @@
/* French initialisation for the jQuery UI multiselect plugin. */
/* Written by Charles SANQUER (charles.sanquer@spyrit.net). */

(function ( $ ) {

$.extend($.ech.multiselect.prototype.options, {
linkInfo: {
checkAll: {text: 'Tout cocher', title: 'Tout cocher'},
uncheckAll: {text: 'Tout décocher', title: 'Tout décocher'}
},
noneSelectedText: 'Sélectionner les options',
selectedText: '# sélectionnés'
});

})( jQuery );
15 changes: 15 additions & 0 deletions include/js/LC_MESSAGES/jquery.multiselect.hu.js
@@ -0,0 +1,15 @@
/* Hungarian initialisation for the jQuery UI multiselect plugin. */
/* Written by Adam Fónagy (adam.fonagy@greenformatics.hu). */

(function ( $ ) {

$.extend($.ech.multiselect.prototype.options, {
linkInfo: {
checkAll: {text: 'Mind kijelöl', title: 'Mind kijelöl'},
uncheckAll: {text: 'Mind eltávolít', title: 'Mind eltávolít'}
},
noneSelectedText: 'Nincs kijelölés',
selectedText: '# kijelölve'
});

})( jQuery );
15 changes: 15 additions & 0 deletions include/js/LC_MESSAGES/jquery.multiselect.it.js
@@ -0,0 +1,15 @@
/* Italian initialization for the jQuery UI multiselect plugin. */
/* Written by Vincenzo Farruggia(mastropinguino@networky.net). */

(function ( $ ) {

$.extend($.ech.multiselect.prototype.options, {
linkInfo: {
checkAll: {text: 'Seleziona tutto', title: 'Seleziona tutto'},
uncheckAll: {text: 'Deseleziona tutto', title: 'Deseleziona tutto'}
},
noneSelectedText: 'Seleziona le opzioni',
selectedText: '# selezionati'
});

})( jQuery );
15 changes: 15 additions & 0 deletions include/js/LC_MESSAGES/jquery.multiselect.ja.js
@@ -0,0 +1,15 @@
/* Japanese initialisation for the jQuery UI multiselect plugin. */
/* Written by Daisuke (daisuketaniwaki@gmail.com). */

(function ( $ ) {

$.extend($.ech.multiselect.prototype.options, {
linkInfo: {
checkAll: {text: 'すべて選択', title: 'すべて選択'},
uncheckAll: {text: '選択解除', title: '選択解除'}
},
noneSelectedText: '選択してください',
selectedText: '#つ選択中'
});

})( jQuery );
15 changes: 15 additions & 0 deletions include/js/LC_MESSAGES/jquery.multiselect.pl.js
@@ -0,0 +1,15 @@
/* Polish initialisation for the jQuery UI multiselect plugin. */
/* Written by Tomasz Mazur (contact@tomaszmazur.eu). */

(function ( $ ) {

$.extend($.ech.multiselect.prototype.options, {
linkInfo: {
checkAll: {text: 'Zaznacz wszystkie', title: 'Zaznacz wszystkie'},
uncheckAll: {text: 'Odznacz wszystkie', title: 'Odznacz wszystkie'}
},
noneSelectedText: 'Wybierz opcje',
selectedText: 'Zaznaczono #'
});

})( jQuery );
15 changes: 15 additions & 0 deletions include/js/LC_MESSAGES/jquery.multiselect.ru.js
@@ -0,0 +1,15 @@
/* Russian initialisation for the jQuery UI multiselect plugin. */
/* Written by Artem Packhomov (gorblnu4@gmail.com). */

(function ( $ ) {

$.extend($.ech.multiselect.prototype.options, {
linkInfo: {
checkAll: {text: 'Отметить все', title: 'Отметить все'},
uncheckAll: {text: 'Снять отметку со всех', title: 'Снять отметку со всех'}
},
noneSelectedText: 'Выберите из списка',
selectedText: 'Выбрано #'
});

})( jQuery );
15 changes: 15 additions & 0 deletions include/js/LC_MESSAGES/jquery.multiselect.tr.js
@@ -0,0 +1,15 @@
/* Turkish initialisation for the jQuery UI multiselect plugin. */
/* Written by Yusuf Özer (realsby@gmail.com). */

(function ( $ ) {

$.extend($.ech.multiselect.prototype.options, {
linkInfo: {
checkAll: {text: 'Tümünü seç', title: 'Tümünü seç'},
uncheckAll: {text: 'Tümünü sil', title: 'Tümünü sil'}
},
noneSelectedText: 'Seçenekleri belirleyin',
selectedText: '# adet seçildi'
});

})( jQuery );
15 changes: 15 additions & 0 deletions include/js/LC_MESSAGES/jquery.multiselect.zh-cn.js
@@ -0,0 +1,15 @@
/* Simplified Chinese initialisation for the jQuery UI multiselect plugin. */
/* Written by Ben (ben@zfben.com). */

(function ( $ ) {

$.extend($.ech.multiselect.prototype.options, {
linkInfo: {
checkAll: {text: '全选', title: '全选'},
uncheckAll: {text: '清空', title: '清空'}
},
noneSelectedText: '请选择',
selectedText: '# 已选择'
});

})( jQuery );

0 comments on commit 84a9ecf

Please sign in to comment.