~hanspayer/+junk/kobersdorf

« back to all changes in this revision

Viewing changes to static/cms/js/select2/select2_locale_ca.js

  • Committer: Payer Hans-Christian
  • Date: 2016-03-29 20:18:05 UTC
  • Revision ID: hans@net-so.org-20160329201805-cs2re2zwb7svwje4
base template working

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * Select2 Catalan translation.
 
3
 * 
 
4
 * Author: David Planella <david.planella@gmail.com>
 
5
 */
 
6
(function ($) {
 
7
    "use strict";
 
8
 
 
9
    $.fn.select2.locales['ca'] = {
 
10
        formatNoMatches: function () { return "No s'ha trobat cap coincidència"; },
 
11
        formatInputTooShort: function (input, min) { var n = min - input.length; return "Introduïu " + n + " caràcter" + (n == 1 ? "" : "s") + " més"; },
 
12
        formatInputTooLong: function (input, max) { var n = input.length - max; return "Introduïu " + n + " caràcter" + (n == 1? "" : "s") + "menys"; },
 
13
        formatSelectionTooBig: function (limit) { return "Només podeu seleccionar " + limit + " element" + (limit == 1 ? "" : "s"); },
 
14
        formatLoadMore: function (pageNumber) { return "S'estan carregant més resultats…"; },
 
15
        formatSearching: function () { return "S'està cercant…"; }
 
16
    };
 
17
 
 
18
    $.extend($.fn.select2.defaults, $.fn.select2.locales['ca']);
 
19
})(jQuery);