Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Closed
wants to merge 1 commit into from

3 participants

@pablohess

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.

@scottgonzalez

@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.

@mikesherov
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.

@mikesherov mikesherov closed this
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.
View
23 ui/i18n/jquery.ui.datepicker-it-CH.js
@@ -0,0 +1,23 @@
+/* Swiss Italian initialisation for the jQuery UI date picker plugin. */
+/* Written by Pablo Hess (pablo.hess@p-ing.ch). */
+jQuery(function($){
+ $.datepicker.regional['it-CH'] = {
+ closeText: 'Chiudi',
+ prevText: '<Prec',
+ nextText: 'Succ>',
+ currentText: 'Oggi',
+ monthNames: ['Gennaio','Febbraio','Marzo','Aprile','Maggio','Giugno',
+ 'Luglio','Agosto','Settembre','Ottobre','Novembre','Dicembre'],
+ monthNamesShort: ['Gen','Feb','Mar','Apr','Mag','Giu',
+ 'Lug','Ago','Set','Ott','Nov','Dic'],
+ dayNames: ['Domenica','Lunedì','Martedì','Mercoledì','Giovedì','Venerdì','Sabato'],
+ dayNamesShort: ['Dom','Lun','Mar','Mer','Gio','Ven','Sab'],
+ dayNamesMin: ['Do','Lu','Ma','Me','Gi','Ve','Sa'],
+ weekHeader: 'Sm',
+ dateFormat: 'dd.mm.yy',
+ firstDay: 1,
+ isRTL: false,
+ showMonthAfterYear: false,
+ yearSuffix: ''};
+ $.datepicker.setDefaults($.datepicker.regional['it-CH']);
+});
View
21 ui/i18n/jquery.ui.datepicker-rm-CH.js
@@ -0,0 +1,21 @@
+/* Swiss Romansh initialisation for the jQuery UI date picker plugin. */
+/* Written by Pablo Hess (pablo.hess@p-ing.ch). */
+jQuery(function($){
+ $.datepicker.regional['rm-CH'] = {
+ closeText: 'Serrar',
+ prevText: '<Suandant',
+ nextText: 'Precedent>',
+ currentText: 'Actual',
+ monthNames: ['Schaner','Favrer','Mars','Avrigl','Matg','Zercladur', 'Fanadur','Avust','Settember','October','November','December'],
+ monthNamesShort: ['Scha','Fev','Mar','Avr','Matg','Zer', 'Fan','Avu','Sett','Oct','Nov','Dec'],
+ dayNames: ['Dumengia','Glindesdi','Mardi','Mesemna','Gievgia','Venderdi','Sonda'],
+ dayNamesShort: ['Dum','Gli','Mar','Mes','Gie','Ven','Som'],
+ dayNamesMin: ['Du','Gl','Ma','Me','Gi','Ve','So'],
+ weekHeader: 'emna',
+ dateFormat: 'dd.mm.yy',
+ firstDay: 1,
+ isRTL: false,
+ showMonthAfterYear: false,
+ yearSuffix: ''};
+ $.datepicker.setDefaults($.datepicker.regional['rm-CH']);
+});
Something went wrong with that request. Please try again.