mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
161 lines
7.6 KiB
JavaScript
161 lines
7.6 KiB
JavaScript
/*
|
|
* This file has been compiled from: /modules/system/lang/sk/client.php
|
|
*/
|
|
if ($.oc === undefined) $.oc = {}
|
|
if ($.oc.langMessages === undefined) $.oc.langMessages = {}
|
|
$.oc.langMessages['sk'] = $.extend(
|
|
$.oc.langMessages['sk'] || {},
|
|
{"markdowneditor":{"formatting":"Formatting","quote":"Quote","code":"Code","header1":"Header 1","header2":"Header 2","header3":"Header 3","header4":"Header 4","header5":"Header 5","header6":"Header 6","bold":"Bold","italic":"Italic","unorderedlist":"Unordered List","orderedlist":"Ordered List","video":"Video","image":"Image","link":"Link","horizontalrule":"Insert Horizontal Rule","fullscreen":"Full screen","preview":"Preview"},"mediamanager":{"insert_link":"Insert Media Link","insert_image":"Insert Media Image","insert_video":"Insert Media Video","insert_audio":"Insert Media Audio","invalid_file_empty_insert":"Please select file to insert a links to.","invalid_file_single_insert":"Please select a single file.","invalid_image_empty_insert":"Please select image(s) to insert.","invalid_video_empty_insert":"Please select a video file to insert.","invalid_audio_empty_insert":"Please select an audio file to insert."},"alert":{"confirm_button_text":"OK","cancel_button_text":"Cancel","widget_remove_confirm":"Remove this widget?"},"datepicker":{"previousMonth":"Previous Month","nextMonth":"Next Month","months":["January","February","March","April","May","June","July","August","September","October","November","December"],"weekdays":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"weekdaysShort":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},"colorpicker":{"choose":"Ok"},"filter":{"group":{"all":"all"},"dates":{"all":"all","filter_button_text":"Filter","reset_button_text":"Reset","date_placeholder":"Date","after_placeholder":"After","before_placeholder":"Before"}},"eventlog":{"show_stacktrace":"Show the stacktrace","hide_stacktrace":"Hide the stacktrace","tabs":{"formatted":"Formatted","raw":"Raw"},"editor":{"title":"Source code editor","description":"Your operating system should be configured to listen to one of these URL schemes.","openWith":"Open with","remember_choice":"Remember selected option for this session","open":"Open","cancel":"Cancel"}}}
|
|
);
|
|
|
|
//! moment.js locale configuration
|
|
//! locale : slovak (sk)
|
|
//! author : Martin Minka : https://github.com/k2s
|
|
//! based on work of petrbela : https://github.com/petrbela
|
|
|
|
;(function (global, factory) {
|
|
typeof exports === 'object' && typeof module !== 'undefined'
|
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
|
typeof define === 'function' && define.amd ? define(['moment'], factory) :
|
|
factory(global.moment)
|
|
}(this, function (moment) { 'use strict';
|
|
|
|
|
|
var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_'),
|
|
monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
|
|
function plural(n) {
|
|
return (n > 1) && (n < 5);
|
|
}
|
|
function translate(number, withoutSuffix, key, isFuture) {
|
|
var result = number + ' ';
|
|
switch (key) {
|
|
case 's': // a few seconds / in a few seconds / a few seconds ago
|
|
return (withoutSuffix || isFuture) ? 'pár sekúnd' : 'pár sekundami';
|
|
case 'm': // a minute / in a minute / a minute ago
|
|
return withoutSuffix ? 'minúta' : (isFuture ? 'minútu' : 'minútou');
|
|
case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
|
|
if (withoutSuffix || isFuture) {
|
|
return result + (plural(number) ? 'minúty' : 'minút');
|
|
} else {
|
|
return result + 'minútami';
|
|
}
|
|
break;
|
|
case 'h': // an hour / in an hour / an hour ago
|
|
return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
|
|
case 'hh': // 9 hours / in 9 hours / 9 hours ago
|
|
if (withoutSuffix || isFuture) {
|
|
return result + (plural(number) ? 'hodiny' : 'hodín');
|
|
} else {
|
|
return result + 'hodinami';
|
|
}
|
|
break;
|
|
case 'd': // a day / in a day / a day ago
|
|
return (withoutSuffix || isFuture) ? 'deň' : 'dňom';
|
|
case 'dd': // 9 days / in 9 days / 9 days ago
|
|
if (withoutSuffix || isFuture) {
|
|
return result + (plural(number) ? 'dni' : 'dní');
|
|
} else {
|
|
return result + 'dňami';
|
|
}
|
|
break;
|
|
case 'M': // a month / in a month / a month ago
|
|
return (withoutSuffix || isFuture) ? 'mesiac' : 'mesiacom';
|
|
case 'MM': // 9 months / in 9 months / 9 months ago
|
|
if (withoutSuffix || isFuture) {
|
|
return result + (plural(number) ? 'mesiace' : 'mesiacov');
|
|
} else {
|
|
return result + 'mesiacmi';
|
|
}
|
|
break;
|
|
case 'y': // a year / in a year / a year ago
|
|
return (withoutSuffix || isFuture) ? 'rok' : 'rokom';
|
|
case 'yy': // 9 years / in 9 years / 9 years ago
|
|
if (withoutSuffix || isFuture) {
|
|
return result + (plural(number) ? 'roky' : 'rokov');
|
|
} else {
|
|
return result + 'rokmi';
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
|
|
var sk = moment.defineLocale('sk', {
|
|
months : months,
|
|
monthsShort : monthsShort,
|
|
weekdays : 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
|
|
weekdaysShort : 'ne_po_ut_st_št_pi_so'.split('_'),
|
|
weekdaysMin : 'ne_po_ut_st_št_pi_so'.split('_'),
|
|
longDateFormat : {
|
|
LT: 'H:mm',
|
|
LTS : 'H:mm:ss',
|
|
L : 'DD.MM.YYYY',
|
|
LL : 'D. MMMM YYYY',
|
|
LLL : 'D. MMMM YYYY H:mm',
|
|
LLLL : 'dddd D. MMMM YYYY H:mm'
|
|
},
|
|
calendar : {
|
|
sameDay: '[dnes o] LT',
|
|
nextDay: '[zajtra o] LT',
|
|
nextWeek: function () {
|
|
switch (this.day()) {
|
|
case 0:
|
|
return '[v nedeľu o] LT';
|
|
case 1:
|
|
case 2:
|
|
return '[v] dddd [o] LT';
|
|
case 3:
|
|
return '[v stredu o] LT';
|
|
case 4:
|
|
return '[vo štvrtok o] LT';
|
|
case 5:
|
|
return '[v piatok o] LT';
|
|
case 6:
|
|
return '[v sobotu o] LT';
|
|
}
|
|
},
|
|
lastDay: '[včera o] LT',
|
|
lastWeek: function () {
|
|
switch (this.day()) {
|
|
case 0:
|
|
return '[minulú nedeľu o] LT';
|
|
case 1:
|
|
case 2:
|
|
return '[minulý] dddd [o] LT';
|
|
case 3:
|
|
return '[minulú stredu o] LT';
|
|
case 4:
|
|
case 5:
|
|
return '[minulý] dddd [o] LT';
|
|
case 6:
|
|
return '[minulú sobotu o] LT';
|
|
}
|
|
},
|
|
sameElse: 'L'
|
|
},
|
|
relativeTime : {
|
|
future : 'za %s',
|
|
past : 'pred %s',
|
|
s : translate,
|
|
m : translate,
|
|
mm : translate,
|
|
h : translate,
|
|
hh : translate,
|
|
d : translate,
|
|
dd : translate,
|
|
M : translate,
|
|
MM : translate,
|
|
y : translate,
|
|
yy : translate
|
|
},
|
|
ordinalParse: /\d{1,2}\./,
|
|
ordinal : '%d.',
|
|
week : {
|
|
dow : 1, // Monday is the first day of the week.
|
|
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
|
}
|
|
});
|
|
|
|
return sk;
|
|
|
|
}));
|