-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathcustom_polish.rb
More file actions
33 lines (33 loc) · 1.14 KB
/
Copy pathcustom_polish.rb
File metadata and controls
33 lines (33 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
:'pl' => {
:date => {
:month_names => lambda { |date_or_time, opts|
if opts[:format] =~ /(%d|%e)(.*)(%B)/
[nil, 'stycznia', 'lutego', 'marca', 'kwietnia', 'maja', 'czerwca',
'lipca', 'sierpnia', 'września', 'października', 'listopada',
'grudnia']
else
[nil, 'Styczeń', 'Luty', 'Marzec', 'Kwiecień', 'Maj', 'Czerwiec',
'Lipiec', 'Sierpień', 'Wrzesień', 'Październik', 'Listopad',
'Grudzień']
end
},
:abbr_month_names => lambda { |date_or_time, opts|
if opts[:format] =~ /(%d|%e)(.*)(%b)/
[nil, 'sty.', 'lut.', 'mar.', 'kwi.', 'maj.', 'cze.', 'lip.', 'sie.',
'wrz.', 'paź.', 'lis.', 'gru.']
else
[nil, 'Sty.', 'Lut.', 'Mar.', 'Kwi.', 'Maj', 'Cze.', 'Lip.', 'Sie.',
'Wrz.', 'Paź.', 'Lis.', 'Gru.']
end
},
:abbr_day_names => lambda { |date_or_time, opts|
if opts[:format] =~ /^%a/
['Niedz.', 'Pon.', 'Wt.', 'Śr.', 'Czw.', 'Pt.', 'Sob.']
else
['niedz.', 'pon.', 'wt.', 'śr.', 'czw.', 'pt.', 'sob.']
end
}
}
}
}