Fixing errors in FR locale. Added missing pl/pt-BR locales in dist.
This commit is contained in:
parent
470bc9ff64
commit
75aa419d0a
2
dist/js/i18n/fr.js
vendored
2
dist/js/i18n/fr.js
vendored
@ -1 +1 @@
|
||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/fr",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n='Supprimez " + n + " caractère';return t!==1&&(n+="s"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n='Saisissez " + n + " caractère';return overChars!==1&&(n+="s"),n},loadingMore:function(){return"Chargement de résultats supplémentaires…"},maximumSelection:function(e){var t="Vous pouvez seulement sélectionner "+e.maximum+" élément";return e.maximum!==1&&(t+="s"),t},noResults:function(){return"Aucun résultat trouvé"},searching:function(){return"Recherche en cours…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/fr",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Supprimez "+t+" caractère";return t!==1&&(n+="s"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Saisissez "+t+" caractère";return t!==1&&(n+="s"),n},loadingMore:function(){return"Chargement de résultats supplémentaires…"},maximumSelection:function(e){var t="Vous pouvez seulement sélectionner "+e.maximum+" élément";return e.maximum!==1&&(t+="s"),t},noResults:function(){return"Aucun résultat trouvé"},searching:function(){return"Recherche en cours…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
1
dist/js/i18n/pl.js
vendored
Normal file
1
dist/js/i18n/pl.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/pl",[],function(){var e=["znak","znaki","znaków"],t=["element","elementy","elementów"],n=function(t,n){if(t===1)return n[0];if(t>1&&t<=4)return n[1];if(t>=5)return n[2]};return{errorLoading:function(){return"Nie można załadować wyników."},inputTooLong:function(t){var r=t.input.length-t.maximum;return"Usuń "+r+" "+n(r,e)},inputTooShort:function(t){var r=t.minimum-t.input.length;return"Podaj przynajmniej "+r+" "+n(r,e)},loadingMore:function(){return"Trwa ładowanie…"},maximumSelected:function(e){return"Możesz zaznaczyć tylko "+e.maximum+" "+n(e.maxiumum,t)},noResults:function(){return"Brak wyników"},searching:function(){return"Trwa wyszukiwanie…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
1
dist/js/i18n/pt-BR.js
vendored
Normal file
1
dist/js/i18n/pt-BR.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/pt-BR",[],function(){return{errorLoading:function(){return"Os resultados não puderam ser carregados."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Apague "+t+" caracter";return t!=1&&(n+="es"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Digite "+t+" ou mais caracteres";return n},loadingMore:function(){return"Carregando mais resultados…"},maximumSelected:function(e){var t="Você só pode selecionar "+e.maximum+" ite";return e.maximum==1?t+="m":t+="ns",t},noResults:function(){return"Nenhum resultado encontrado"},searching:function(){return"Buscando…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
2
dist/js/select2.amd.full.js
vendored
2
dist/js/select2.amd.full.js
vendored
@ -2993,7 +2993,7 @@ define('select2/data/maximumInputLength',[
|
||||
this.trigger('results:message', {
|
||||
message: 'inputTooLong',
|
||||
args: {
|
||||
minimum: this.maximumInputLength,
|
||||
maximum: this.maximumInputLength,
|
||||
input: params.term,
|
||||
params: params
|
||||
}
|
||||
|
2
dist/js/select2.amd.js
vendored
2
dist/js/select2.amd.js
vendored
@ -2993,7 +2993,7 @@ define('select2/data/maximumInputLength',[
|
||||
this.trigger('results:message', {
|
||||
message: 'inputTooLong',
|
||||
args: {
|
||||
minimum: this.maximumInputLength,
|
||||
maximum: this.maximumInputLength,
|
||||
input: params.term,
|
||||
params: params
|
||||
}
|
||||
|
2
dist/js/select2.full.js
vendored
2
dist/js/select2.full.js
vendored
@ -3431,7 +3431,7 @@ define('select2/data/maximumInputLength',[
|
||||
this.trigger('results:message', {
|
||||
message: 'inputTooLong',
|
||||
args: {
|
||||
minimum: this.maximumInputLength,
|
||||
maximum: this.maximumInputLength,
|
||||
input: params.term,
|
||||
params: params
|
||||
}
|
||||
|
2
dist/js/select2.full.min.js
vendored
2
dist/js/select2.full.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/select2.js
vendored
2
dist/js/select2.js
vendored
@ -3431,7 +3431,7 @@ define('select2/data/maximumInputLength',[
|
||||
this.trigger('results:message', {
|
||||
message: 'inputTooLong',
|
||||
args: {
|
||||
minimum: this.maximumInputLength,
|
||||
maximum: this.maximumInputLength,
|
||||
input: params.term,
|
||||
params: params
|
||||
}
|
||||
|
2
dist/js/select2.min.js
vendored
2
dist/js/select2.min.js
vendored
File diff suppressed because one or more lines are too long
6
src/js/select2/i18n/fr.js
vendored
6
src/js/select2/i18n/fr.js
vendored
@ -4,7 +4,7 @@ define(function () {
|
||||
inputTooLong: function (args) {
|
||||
var overChars = args.input.length - args.maximum;
|
||||
|
||||
var message = 'Supprimez " + n + " caractère';
|
||||
var message = 'Supprimez ' + overChars + ' caractère';
|
||||
|
||||
if (overChars !== 1) {
|
||||
message += 's';
|
||||
@ -15,9 +15,9 @@ define(function () {
|
||||
inputTooShort: function (args) {
|
||||
var remainingChars = args.minimum - args.input.length;
|
||||
|
||||
var message = 'Saisissez " + n + " caractère';
|
||||
var message = 'Saisissez ' + remainingChars + ' caractère';
|
||||
|
||||
if (overChars !== 1) {
|
||||
if (remainingChars !== 1) {
|
||||
message += 's';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user