Skip to content

Commit

Permalink
Merge pull request #2810 from TracksApp/datepicker_localisations
Browse files Browse the repository at this point in the history
Update Datepicker localisations and add missing ones
  • Loading branch information
ZeiP authored Aug 11, 2022
2 parents 24e3ff5 + 21373ce commit 9ae21dd
Show file tree
Hide file tree
Showing 13 changed files with 233 additions and 72 deletions.
4 changes: 3 additions & 1 deletion .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ checks:
method-lines:
config:
threshold: 100
engines:
plugins:
brakeman:
enabled: true
fixme:
Expand All @@ -30,3 +30,5 @@ engines:
enabled: false
Rubocop/Style/HashSyntax:
enabled: false
#exclude_patterns:
#- app/assets/javascripts-jquery-ui
3 changes: 3 additions & 0 deletions app/assets/config/manifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@
//= link datepicker-fi.js
//= link datepicker-fr.js
//= link datepicker-he.js
//= link datepicker-nb_NO.js
//= link datepicker-nl.js
//= link datepicker-ru.js
//= link datepicker-sv.js
//= link datepicker-tr.js
21 changes: 12 additions & 9 deletions app/assets/javascripts-jquery-ui/datepicker-cs.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/* Czech initialisation for the jQuery UI date picker plugin. */
/* Written by Tomas Muller ([email protected]). */
( function( factory ) {
"use strict";

if ( typeof define === "function" && define.amd ) {

// AMD. Register as an anonymous module.
Expand All @@ -10,20 +12,21 @@
// Browser globals
factory( jQuery.datepicker );
}
}( function( datepicker ) {
} )( function( datepicker ) {
"use strict";

datepicker.regional.cs = {
closeText: "Zavřít",
prevText: "<Dříve",
nextText: "Později>",
prevText: "Dříve",
nextText: "Později",
currentText: "Nyní",
monthNames: [ "leden","únor","březen","duben","květen","červen",
"červenec","srpen","září","říjen","listopad","prosinec" ],
monthNamesShort: [ "led","úno","bře","dub","kvě","čer",
"čvc","srp","zář","říj","lis","pro" ],
monthNames: [ "leden", "únor", "březen", "duben", "květen", "červen",
"červenec", "srpen", "září", "říjen", "listopad", "prosinec" ],
monthNamesShort: [ "led", "úno", "bře", "dub", "kvě", "čer",
"čvc", "srp", "zář", "říj", "lis", "pro" ],
dayNames: [ "neděle", "pondělí", "úterý", "středa", "čtvrtek", "pátek", "sobota" ],
dayNamesShort: [ "ne", "po", "út", "st", "čt", "pá", "so" ],
dayNamesMin: [ "ne","po","út","st","čt","pá","so" ],
dayNamesMin: [ "ne", "po", "út", "st", "čt", "pá", "so" ],
weekHeader: "Týd",
dateFormat: "dd.mm.yy",
firstDay: 1,
Expand All @@ -34,4 +37,4 @@ datepicker.setDefaults( datepicker.regional.cs );

return datepicker.regional.cs;

} ) );
} );
25 changes: 14 additions & 11 deletions app/assets/javascripts-jquery-ui/datepicker-de.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/* German initialisation for the jQuery UI date picker plugin. */
/* Written by Milian Wolff ([email protected]). */
( function( factory ) {
"use strict";

if ( typeof define === "function" && define.amd ) {

// AMD. Register as an anonymous module.
Expand All @@ -10,20 +12,21 @@
// Browser globals
factory( jQuery.datepicker );
}
}( function( datepicker ) {
} )( function( datepicker ) {
"use strict";

datepicker.regional.de = {
closeText: "Schließen",
prevText: "<Zurück",
nextText: "Vor>",
prevText: "Zurück",
nextText: "Vor",
currentText: "Heute",
monthNames: [ "Januar","Februar","März","April","Mai","Juni",
"Juli","August","September","Oktober","November","Dezember" ],
monthNamesShort: [ "Jan","Feb","Mär","Apr","Mai","Jun",
"Jul","Aug","Sep","Okt","Nov","Dez" ],
dayNames: [ "Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag" ],
dayNamesShort: [ "So","Mo","Di","Mi","Do","Fr","Sa" ],
dayNamesMin: [ "So","Mo","Di","Mi","Do","Fr","Sa" ],
monthNames: [ "Januar", "Februar", "März", "April", "Mai", "Juni",
"Juli", "August", "September", "Oktober", "November", "Dezember" ],
monthNamesShort: [ "Jan", "Feb", "Mär", "Apr", "Mai", "Jun",
"Jul", "Aug", "Sep", "Okt", "Nov", "Dez" ],
dayNames: [ "Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag" ],
dayNamesShort: [ "So", "Mo", "Di", "Mi", "Do", "Fr", "Sa" ],
dayNamesMin: [ "So", "Mo", "Di", "Mi", "Do", "Fr", "Sa" ],
weekHeader: "KW",
dateFormat: "dd.mm.yy",
firstDay: 1,
Expand All @@ -34,4 +37,4 @@ datepicker.setDefaults( datepicker.regional.de );

return datepicker.regional.de;

} ) );
} );
25 changes: 14 additions & 11 deletions app/assets/javascripts-jquery-ui/datepicker-es.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/* Inicialización en español para la extensión 'UI date picker' para jQuery. */
/* Traducido por Vester ([email protected]). */
( function( factory ) {
"use strict";

if ( typeof define === "function" && define.amd ) {

// AMD. Register as an anonymous module.
Expand All @@ -10,20 +12,21 @@
// Browser globals
factory( jQuery.datepicker );
}
}( function( datepicker ) {
} )( function( datepicker ) {
"use strict";

datepicker.regional.es = {
closeText: "Cerrar",
prevText: "<Ant",
nextText: "Sig>",
prevText: "Ant",
nextText: "Sig",
currentText: "Hoy",
monthNames: [ "enero","febrero","marzo","abril","mayo","junio",
"julio","agosto","septiembre","octubre","noviembre","diciembre" ],
monthNamesShort: [ "ene","feb","mar","abr","may","jun",
"jul","ago","sep","oct","nov","dic" ],
dayNames: [ "domingo","lunes","martes","miércoles","jueves","viernes","sábado" ],
dayNamesShort: [ "dom","lun","mar","mié","jue","vie","sáb" ],
dayNamesMin: [ "D","L","M","X","J","V","S" ],
monthNames: [ "enero", "febrero", "marzo", "abril", "mayo", "junio",
"julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre" ],
monthNamesShort: [ "ene", "feb", "mar", "abr", "may", "jun",
"jul", "ago", "sep", "oct", "nov", "dic" ],
dayNames: [ "domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado" ],
dayNamesShort: [ "dom", "lun", "mar", "mié", "jue", "vie", "sáb" ],
dayNamesMin: [ "D", "L", "M", "X", "J", "V", "S" ],
weekHeader: "Sm",
dateFormat: "dd/mm/yy",
firstDay: 1,
Expand All @@ -34,4 +37,4 @@ datepicker.setDefaults( datepicker.regional.es );

return datepicker.regional.es;

} ) );
} );
25 changes: 14 additions & 11 deletions app/assets/javascripts-jquery-ui/datepicker-fi.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/* Finnish initialisation for the jQuery UI date picker plugin. */
/* Written by Harri Kilpiö ([email protected]). */
( function( factory ) {
"use strict";

if ( typeof define === "function" && define.amd ) {

// AMD. Register as an anonymous module.
Expand All @@ -10,20 +12,21 @@
// Browser globals
factory( jQuery.datepicker );
}
}( function( datepicker ) {
} )( function( datepicker ) {
"use strict";

datepicker.regional.fi = {
closeText: "Sulje",
prevText: "«Edellinen",
nextText: "Seuraava»",
prevText: "Edellinen",
nextText: "Seuraava",
currentText: "Tänään",
monthNames: [ "Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu","Kesäkuu",
"Heinäkuu","Elokuu","Syyskuu","Lokakuu","Marraskuu","Joulukuu" ],
monthNamesShort: [ "Tammi","Helmi","Maalis","Huhti","Touko","Kesä",
"Heinä","Elo","Syys","Loka","Marras","Joulu" ],
dayNamesShort: [ "Su","Ma","Ti","Ke","To","Pe","La" ],
dayNames: [ "Sunnuntai","Maanantai","Tiistai","Keskiviikko","Torstai","Perjantai","Lauantai" ],
dayNamesMin: [ "Su","Ma","Ti","Ke","To","Pe","La" ],
monthNames: [ "Tammikuu", "Helmikuu", "Maaliskuu", "Huhtikuu", "Toukokuu", "Kesäkuu",
"Heinäkuu", "Elokuu", "Syyskuu", "Lokakuu", "Marraskuu", "Joulukuu" ],
monthNamesShort: [ "Tammi", "Helmi", "Maalis", "Huhti", "Touko", "Kesä",
"Heinä", "Elo", "Syys", "Loka", "Marras", "Joulu" ],
dayNamesShort: [ "Su", "Ma", "Ti", "Ke", "To", "Pe", "La" ],
dayNames: [ "Sunnuntai", "Maanantai", "Tiistai", "Keskiviikko", "Torstai", "Perjantai", "Lauantai" ],
dayNamesMin: [ "Su", "Ma", "Ti", "Ke", "To", "Pe", "La" ],
weekHeader: "Vk",
dateFormat: "d.m.yy",
firstDay: 1,
Expand All @@ -34,4 +37,4 @@ datepicker.setDefaults( datepicker.regional.fi );

return datepicker.regional.fi;

} ) );
} );
9 changes: 6 additions & 3 deletions app/assets/javascripts-jquery-ui/datepicker-fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
Stéphane Nahmani ([email protected]),
Stéphane Raimbault <[email protected]> */
( function( factory ) {
"use strict";

if ( typeof define === "function" && define.amd ) {

// AMD. Register as an anonymous module.
Expand All @@ -12,7 +14,8 @@
// Browser globals
factory( jQuery.datepicker );
}
}( function( datepicker ) {
} )( function( datepicker ) {
"use strict";

datepicker.regional.fr = {
closeText: "Fermer",
Expand All @@ -25,7 +28,7 @@ datepicker.regional.fr = {
"juil.", "août", "sept.", "oct.", "nov.", "déc." ],
dayNames: [ "dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi" ],
dayNamesShort: [ "dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam." ],
dayNamesMin: [ "D","L","M","M","J","V","S" ],
dayNamesMin: [ "D", "L", "M", "M", "J", "V", "S" ],
weekHeader: "Sem.",
dateFormat: "dd/mm/yy",
firstDay: 1,
Expand All @@ -36,4 +39,4 @@ datepicker.setDefaults( datepicker.regional.fr );

return datepicker.regional.fr;

} ) );
} );
25 changes: 14 additions & 11 deletions app/assets/javascripts-jquery-ui/datepicker-he.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/* Hebrew initialisation for the UI Datepicker extension. */
/* Written by Amir Hardon (ahardon at gmail dot com). */
( function( factory ) {
"use strict";

if ( typeof define === "function" && define.amd ) {

// AMD. Register as an anonymous module.
Expand All @@ -10,20 +12,21 @@
// Browser globals
factory( jQuery.datepicker );
}
}( function( datepicker ) {
} )( function( datepicker ) {
"use strict";

datepicker.regional.he = {
closeText: "סגור",
prevText: "&#x3C;הקודם",
nextText: "הבא&#x3E;",
prevText: "הקודם",
nextText: "הבא",
currentText: "היום",
monthNames: [ "ינואר","פברואר","מרץ","אפריל","מאי","יוני",
"יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר" ],
monthNamesShort: [ "ינו","פבר","מרץ","אפר","מאי","יוני",
"יולי","אוג","ספט","אוק","נוב","דצמ" ],
dayNames: [ "ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת" ],
dayNamesShort: [ "א'","ב'","ג'","ד'","ה'","ו'","שבת" ],
dayNamesMin: [ "א'","ב'","ג'","ד'","ה'","ו'","שבת" ],
monthNames: [ "ינואר", "פברואר", "מרץ", "אפריל", "מאי", "יוני",
"יולי", "אוגוסט", "ספטמבר", "אוקטובר", "נובמבר", "דצמבר" ],
monthNamesShort: [ "ינו", "פבר", "מרץ", "אפר", "מאי", "יוני",
"יולי", "אוג", "ספט", "אוק", "נוב", "דצמ" ],
dayNames: [ "ראשון", "שני", "שלישי", "רביעי", "חמישי", "שישי", "שבת" ],
dayNamesShort: [ "א'", "ב'", "ג'", "ד'", "ה'", "ו'", "שבת" ],
dayNamesMin: [ "א'", "ב'", "ג'", "ד'", "ה'", "ו'", "שבת" ],
weekHeader: "Wk",
dateFormat: "dd/mm/yy",
firstDay: 0,
Expand All @@ -34,4 +37,4 @@ datepicker.setDefaults( datepicker.regional.he );

return datepicker.regional.he;

} ) );
} );
52 changes: 52 additions & 0 deletions app/assets/javascripts-jquery-ui/datepicker-nb_NO.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/* Norwegian Bokmål initialisation for the jQuery UI date picker plugin. */
/* Written by Bjørn Johansen ([email protected]). */
( function( factory ) {
"use strict";

if ( typeof define === "function" && define.amd ) {

// AMD. Register as an anonymous module.
define( [ "../widgets/datepicker" ], factory );
} else {

// Browser globals
factory( jQuery.datepicker );
}
} )( function( datepicker ) {
"use strict";

datepicker.regional.nb = {
closeText: "Lukk",
prevText: "Forrige",
nextText: "Neste",
currentText: "I dag",
monthNames: [
"januar",
"februar",
"mars",
"april",
"mai",
"juni",
"juli",
"august",
"september",
"oktober",
"november",
"desember"
],
monthNamesShort: [ "jan", "feb", "mar", "apr", "mai", "jun", "jul", "aug", "sep", "okt", "nov", "des" ],
dayNamesShort: [ "søn", "man", "tir", "ons", "tor", "fre", "lør" ],
dayNames: [ "søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag" ],
dayNamesMin: [ "sø", "ma", "ti", "on", "to", "fr", "lø" ],
weekHeader: "Uke",
dateFormat: "dd.mm.yy",
firstDay: 1,
isRTL: false,
showMonthAfterYear: false,
yearSuffix: ""
};
datepicker.setDefaults( datepicker.regional.nb );

return datepicker.regional.nb;

} );
11 changes: 7 additions & 4 deletions app/assets/javascripts-jquery-ui/datepicker-nl.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/* Dutch (UTF-8) initialisation for the jQuery UI date picker plugin. */
/* Written by Mathias Bynens <http://mathiasbynens.be/> */
( function( factory ) {
"use strict";

if ( typeof define === "function" && define.amd ) {

// AMD. Register as an anonymous module.
Expand All @@ -10,12 +12,13 @@
// Browser globals
factory( jQuery.datepicker );
}
}( function( datepicker ) {
} )( function( datepicker ) {
"use strict";

datepicker.regional.nl = {
closeText: "Sluiten",
prevText: "",
nextText: "",
prevText: "Vorig",
nextText: "Volgende",
currentText: "Vandaag",
monthNames: [ "januari", "februari", "maart", "april", "mei", "juni",
"juli", "augustus", "september", "oktober", "november", "december" ],
Expand All @@ -34,4 +37,4 @@ datepicker.setDefaults( datepicker.regional.nl );

return datepicker.regional.nl;

} ) );
} );
Loading

0 comments on commit 9ae21dd

Please sign in to comment.