Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

i18n: Added datepicker localization for Swiss Italian and Swiss Romansh #875

Closed
wants to merge 1 commit into from

3 participants

Pablo Hess Scott González Mike Sherov
Pablo Hess

Previous Pull Request:
#643 (comment)

So far the date format for Swiss Italian and Romansh aren't correct. We're using dd.mm.yy instead of dd/mm/yy. 'de-CH' isn't necessary cause the German localization has the same date format as we use in Switzerland and 'fr-CH' is already written.

Scott González
Owner

@pablohess In the other PR I mentioned that many of the values should be lowercase. It doesn't look like any change was made here.

Mike Sherov
Collaborator

Thanks again, @pablohess, for the work here.

In the interest of keeping the pull request queue clean, I'm going to close this pull request for now. It's been 3 months since the last update. If you'd like to make the required changes to address @scottgonzalez's concerns, please submit a new PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
23 ui/i18n/jquery.ui.datepicker-it-CH.js
... ... @@ -0,0 +1,23 @@
  1 +/* Swiss Italian initialisation for the jQuery UI date picker plugin. */
  2 +/* Written by Pablo Hess (pablo.hess@p-ing.ch). */
  3 +jQuery(function($){
  4 + $.datepicker.regional['it-CH'] = {
  5 + closeText: 'Chiudi',
  6 + prevText: '<Prec',
  7 + nextText: 'Succ>',
  8 + currentText: 'Oggi',
  9 + monthNames: ['Gennaio','Febbraio','Marzo','Aprile','Maggio','Giugno',
  10 + 'Luglio','Agosto','Settembre','Ottobre','Novembre','Dicembre'],
  11 + monthNamesShort: ['Gen','Feb','Mar','Apr','Mag','Giu',
  12 + 'Lug','Ago','Set','Ott','Nov','Dic'],
  13 + dayNames: ['Domenica','Lunedì','Martedì','Mercoledì','Giovedì','Venerdì','Sabato'],
  14 + dayNamesShort: ['Dom','Lun','Mar','Mer','Gio','Ven','Sab'],
  15 + dayNamesMin: ['Do','Lu','Ma','Me','Gi','Ve','Sa'],
  16 + weekHeader: 'Sm',
  17 + dateFormat: 'dd.mm.yy',
  18 + firstDay: 1,
  19 + isRTL: false,
  20 + showMonthAfterYear: false,
  21 + yearSuffix: ''};
  22 + $.datepicker.setDefaults($.datepicker.regional['it-CH']);
  23 +});
21 ui/i18n/jquery.ui.datepicker-rm-CH.js
... ... @@ -0,0 +1,21 @@
  1 +/* Swiss Romansh initialisation for the jQuery UI date picker plugin. */
  2 +/* Written by Pablo Hess (pablo.hess@p-ing.ch). */
  3 +jQuery(function($){
  4 + $.datepicker.regional['rm-CH'] = {
  5 + closeText: 'Serrar',
  6 + prevText: '<Suandant',
  7 + nextText: 'Precedent>',
  8 + currentText: 'Actual',
  9 + monthNames: ['Schaner','Favrer','Mars','Avrigl','Matg','Zercladur', 'Fanadur','Avust','Settember','October','November','December'],
  10 + monthNamesShort: ['Scha','Fev','Mar','Avr','Matg','Zer', 'Fan','Avu','Sett','Oct','Nov','Dec'],
  11 + dayNames: ['Dumengia','Glindesdi','Mardi','Mesemna','Gievgia','Venderdi','Sonda'],
  12 + dayNamesShort: ['Dum','Gli','Mar','Mes','Gie','Ven','Som'],
  13 + dayNamesMin: ['Du','Gl','Ma','Me','Gi','Ve','So'],
  14 + weekHeader: 'emna',
  15 + dateFormat: 'dd.mm.yy',
  16 + firstDay: 1,
  17 + isRTL: false,
  18 + showMonthAfterYear: false,
  19 + yearSuffix: ''};
  20 + $.datepicker.setDefaults($.datepicker.regional['rm-CH']);
  21 +});

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.