mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 07:40:12 +01:00
Precompile datepicker i18n files for each language.
Not an optimal solution, because it uses files from our own repository instead of the bundle, but found no other solution for now.
This commit is contained in:
parent
bb2bcd7245
commit
5a6ee73d7d
11 changed files with 310 additions and 12 deletions
37
app/assets/javascripts-jquery-ui/datepicker-cs.js
Normal file
37
app/assets/javascripts-jquery-ui/datepicker-cs.js
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
/* Czech initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Tomas Muller (tomas@tomas-muller.net). */
|
||||
( function( factory ) {
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
define( [ "../widgets/datepicker" ], factory );
|
||||
} else {
|
||||
|
||||
// Browser globals
|
||||
factory( jQuery.datepicker );
|
||||
}
|
||||
}( function( datepicker ) {
|
||||
|
||||
datepicker.regional.cs = {
|
||||
closeText: "Zavřít",
|
||||
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" ],
|
||||
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" ],
|
||||
weekHeader: "Týd",
|
||||
dateFormat: "dd.mm.yy",
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: "" };
|
||||
datepicker.setDefaults( datepicker.regional.cs );
|
||||
|
||||
return datepicker.regional.cs;
|
||||
|
||||
} ) );
|
||||
Loading…
Add table
Add a link
Reference in a new issue