r18n-core 0.4.10 → 0.4.11
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +5 -0
- data/Gemfile.lock +1 -1
- data/README.rdoc +25 -25
- data/Rakefile +0 -1
- data/lib/r18n-core.rb +5 -5
- data/lib/r18n-core/filters.rb +45 -45
- data/lib/r18n-core/helpers.rb +4 -4
- data/lib/r18n-core/i18n.rb +30 -30
- data/lib/r18n-core/locale.rb +26 -26
- data/lib/r18n-core/translated.rb +23 -23
- data/lib/r18n-core/translated_string.rb +4 -4
- data/lib/r18n-core/translation.rb +10 -10
- data/lib/r18n-core/unsupported_locale.rb +6 -6
- data/lib/r18n-core/untranslated.rb +13 -13
- data/lib/r18n-core/utils.rb +4 -4
- data/lib/r18n-core/version.rb +1 -1
- data/lib/r18n-core/yaml_loader.rb +13 -11
- data/locales/bg.rb +3 -3
- data/locales/ca.rb +6 -5
- data/locales/cs.rb +5 -5
- data/locales/da.rb +4 -4
- data/locales/de.rb +4 -4
- data/locales/en-us.rb +1 -1
- data/locales/en.rb +6 -6
- data/locales/eo.rb +4 -4
- data/locales/es.rb +4 -4
- data/locales/fi.rb +5 -5
- data/locales/fr.rb +6 -6
- data/locales/hu.rb +1 -1
- data/locales/it.rb +5 -5
- data/locales/ja.rb +5 -4
- data/locales/kk.rb +4 -4
- data/locales/lv.rb +5 -5
- data/locales/nl.rb +5 -5
- data/locales/pl.rb +5 -5
- data/locales/pt.rb +4 -4
- data/locales/ru.rb +5 -5
- data/locales/sk.rb +5 -5
- data/locales/sv-se.rb +4 -4
- data/locales/th.rb +7 -4
- data/locales/zh.rb +6 -5
- data/r18n-core.gemspec +0 -1
- data/spec/filters_spec.rb +48 -48
- data/spec/i18n_spec.rb +32 -32
- data/spec/locale_spec.rb +20 -20
- data/spec/locales/cs_spec.rb +2 -2
- data/spec/locales/hu_spec.rb +1 -1
- data/spec/locales/it_spec.rb +1 -1
- data/spec/locales/pl_spec.rb +2 -2
- data/spec/locales/ru_spec.rb +3 -3
- data/spec/locales/sk_spec.rb +2 -2
- data/spec/r18n_spec.rb +21 -21
- data/spec/spec_helper.rb +3 -3
- data/spec/translated_spec.rb +24 -24
- data/spec/translation_spec.rb +10 -10
- data/spec/yaml_loader_spec.rb +10 -10
- metadata +24 -26
data/locales/en-us.rb
CHANGED
data/locales/en.rb
CHANGED
@@ -2,23 +2,23 @@ module R18n
|
|
2
2
|
class Locales::En < Locale
|
3
3
|
set :title => 'English',
|
4
4
|
:sublocales => [],
|
5
|
-
|
5
|
+
|
6
6
|
:week_start => :sunday,
|
7
7
|
:wday_names => %w{Sunday Monday Tuesday Wednesday Thursday Friday
|
8
8
|
Saturday},
|
9
9
|
:wday_abbrs => %w{Sun Mon Tue Wed Thu Fri Sat},
|
10
|
-
|
10
|
+
|
11
11
|
:month_names => %w{January February March April May June July August
|
12
12
|
September October November December},
|
13
13
|
:month_abbrs => %w{Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec},
|
14
|
-
|
14
|
+
|
15
15
|
:date_format => '%d/%m/%Y',
|
16
16
|
:full_format => '%e of %B',
|
17
17
|
:year_format => '_, %Y',
|
18
|
-
|
18
|
+
|
19
19
|
:number_decimal => ".",
|
20
20
|
:number_group => ","
|
21
|
-
|
21
|
+
|
22
22
|
def ordinalize(n)
|
23
23
|
if (11..13).include?(n % 100)
|
24
24
|
"#{n}th"
|
@@ -31,7 +31,7 @@ module R18n
|
|
31
31
|
end
|
32
32
|
end
|
33
33
|
end
|
34
|
-
|
34
|
+
|
35
35
|
def format_date_full(date, year = true, *params)
|
36
36
|
format = full_format
|
37
37
|
format = year_format.sub('_', format) if year
|
data/locales/eo.rb
CHANGED
@@ -2,18 +2,18 @@
|
|
2
2
|
module R18n
|
3
3
|
class Locales::Eo < Locale
|
4
4
|
set :title => 'Esperanto',
|
5
|
-
|
5
|
+
|
6
6
|
:wday_names => %w{dimanĉo lundo mardo merkredo ĵaŭdo vendredo sabato},
|
7
7
|
:wday_abbrs => %w{dim lun mar mer ĵaŭ ven sab},
|
8
|
-
|
8
|
+
|
9
9
|
:month_names => %w{januaro februaro marto aprilo majo junio julio
|
10
10
|
aŭgusto septembro oktobro novembro decembro},
|
11
11
|
:month_abbrs => %w{jan feb mar apr maj jun jul aŭg sep okt nov dec},
|
12
|
-
|
12
|
+
|
13
13
|
:date_format => '%Y-%m-%d',
|
14
14
|
:full_format => 'la %e-a de %B',
|
15
15
|
:year_format => '_ de %Y',
|
16
|
-
|
16
|
+
|
17
17
|
:number_decimal => ".",
|
18
18
|
:number_group => " "
|
19
19
|
end
|
data/locales/es.rb
CHANGED
@@ -2,18 +2,18 @@
|
|
2
2
|
module R18n
|
3
3
|
class Locales::Es < Locale
|
4
4
|
set :title => 'Español',
|
5
|
-
|
5
|
+
|
6
6
|
:wday_names => %w{domingo lunes martes miércoles jueves viernes sábado},
|
7
7
|
:wday_abbrs => %w{dom lun mar mie jue vie sab},
|
8
|
-
|
8
|
+
|
9
9
|
:month_names => %w{Enero Febrero Marzo Abril Mayo Junio Julio Agosto
|
10
10
|
Septiembre Octubre Noviembre Diciembre},
|
11
11
|
:month_abbrs => %w{ene feb mar abr may jun jul ago sep oct nov dic},
|
12
|
-
|
12
|
+
|
13
13
|
:date_format => '%d/%m/%Y',
|
14
14
|
:full_format => '%d de %B',
|
15
15
|
:year_format => '_ de %Y',
|
16
|
-
|
16
|
+
|
17
17
|
:number_decimal => ",",
|
18
18
|
:number_group => "."
|
19
19
|
end
|
data/locales/fi.rb
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
module R18n
|
3
3
|
class Locales::Fi < Locale
|
4
4
|
set :title => 'Suomi',
|
5
|
-
|
5
|
+
|
6
6
|
:wday_names => %w{sunnuntai maanantai tiistai keskiviikko torstai
|
7
7
|
terjantai lauantai},
|
8
8
|
:wday_abbrs => %w{su ma ti ke to te la},
|
9
|
-
|
9
|
+
|
10
10
|
:month_names => %w{tammikuuta helmikuuta maaliskuuta huhtikuuta
|
11
11
|
toukokuuta kesäkuuta heinäkuuta elokuuta syyskuuta
|
12
12
|
lokakuuta marraskuuta joulukuuta},
|
@@ -14,14 +14,14 @@ module R18n
|
|
14
14
|
:month_standalone => %w{tammikuu helmikuu maaliskuu huhtikuu toukokuu
|
15
15
|
kesäkuu heinäkuu elokuu syyskuu lokakuu
|
16
16
|
marraskuu joulukuu},
|
17
|
-
|
17
|
+
|
18
18
|
:date_format => '%d.%m.%Y',
|
19
19
|
:time_format => ' %H.%M',
|
20
20
|
:full_format => '%e. %B',
|
21
|
-
|
21
|
+
|
22
22
|
:number_decimal => ",",
|
23
23
|
:number_group => " "
|
24
|
-
|
24
|
+
|
25
25
|
def format_time_full(time, *params)
|
26
26
|
format_date_full(time) + ' kello' + format_time(time)
|
27
27
|
end
|
data/locales/fr.rb
CHANGED
@@ -2,21 +2,21 @@
|
|
2
2
|
module R18n
|
3
3
|
class Locales::Fr < Locale
|
4
4
|
set :title => 'Français',
|
5
|
-
|
5
|
+
|
6
6
|
:wday_names => %w{dimanche lundi mardi mercredi jeudi vendredi samedi},
|
7
7
|
:wday_abbrs => %w{dim lun mar mer jeu ven sam},
|
8
|
-
|
8
|
+
|
9
9
|
:month_names => %w{janvier février mars avril mai juin juillet août
|
10
|
-
septembre octobre novembre décembre},
|
10
|
+
septembre octobre novembre décembre},
|
11
11
|
:month_abbrs => %w{jan fév mar avr mai jun jui aoû sep oct nov déc},
|
12
12
|
:month_standalone => %w{Janvier Février Mars Avril Mai Juin Juillet Août
|
13
13
|
Septembre Octobre Novembre Décembre},
|
14
|
-
|
14
|
+
|
15
15
|
:date_format => '%d/%m/%Y',
|
16
|
-
|
16
|
+
|
17
17
|
:number_decimal => ",",
|
18
18
|
:number_group => " "
|
19
|
-
|
19
|
+
|
20
20
|
def format_date_full(date, year = true, *params)
|
21
21
|
full = super(date, year)
|
22
22
|
if ' 1' == full[0..1]
|
data/locales/hu.rb
CHANGED
data/locales/it.rb
CHANGED
@@ -2,20 +2,20 @@
|
|
2
2
|
module R18n
|
3
3
|
class Locales::It < Locale
|
4
4
|
set :title => 'Italiano',
|
5
|
-
|
5
|
+
|
6
6
|
:wday_names => %w{domenica lunedì martedì mercoledì giovedì venerdì
|
7
7
|
sabato},
|
8
8
|
:wday_abbrs => %w{dom lun mar mer gio ven sab},
|
9
|
-
|
9
|
+
|
10
10
|
:month_names => %w{gennaio febbraio marzo aprile maggio giugno
|
11
11
|
luglio agosto settembre ottobre novembre dicembre},
|
12
12
|
:month_abbrs => %w{gen feb mar apr mag giu lug ago set ott nov dic},
|
13
|
-
|
13
|
+
|
14
14
|
:date_format => '%d/%m/%Y',
|
15
|
-
|
15
|
+
|
16
16
|
:number_decimal => ",",
|
17
17
|
:number_group => " "
|
18
|
-
|
18
|
+
|
19
19
|
def format_date_full(date, year = true, *params)
|
20
20
|
full = super(date, year)
|
21
21
|
if ' 1' == full[0..1]
|
data/locales/ja.rb
CHANGED
@@ -2,13 +2,14 @@
|
|
2
2
|
module R18n
|
3
3
|
class Locales::Ja < Locale
|
4
4
|
set :title => '日本語',
|
5
|
-
|
5
|
+
|
6
6
|
:week_start => :sunday,
|
7
7
|
:wday_names => %w{日曜日 月曜日 火曜日 水曜日 木曜日 金曜日 土曜日},
|
8
8
|
:wday_abbrs => %w{日 月 火 水 木 金 土},
|
9
|
-
|
10
|
-
:month_names => %w{一月 二月 三月 四月 五月 六月 七月 八月 九月 十月
|
11
|
-
|
9
|
+
|
10
|
+
:month_names => %w{一月 二月 三月 四月 五月 六月 七月 八月 九月 十月
|
11
|
+
十一月 十二月},
|
12
|
+
|
12
13
|
:date_format => '%Y年%m月%d日',
|
13
14
|
:full_format => '%m月%d日',
|
14
15
|
:year_format => '%Y年_',
|
data/locales/kk.rb
CHANGED
@@ -3,23 +3,23 @@ module R18n
|
|
3
3
|
class Locales::Kk < Locale
|
4
4
|
set :title => 'Қазақша',
|
5
5
|
:sublocales => %w{ru en},
|
6
|
-
|
6
|
+
|
7
7
|
:wday_names => %w{Жексенбі Дүйсенбі Сейсенбі Сәрсенбі Бейсенбі Жұма
|
8
8
|
Сенбі},
|
9
9
|
:wday_abbrs => %w{Жк Дс Сс Ср Бс Жм Сн},
|
10
|
-
|
10
|
+
|
11
11
|
:month_names => %w{қаңтар ақпан наурыз сәуір мамыр маусым шілде тамыз
|
12
12
|
қырқүйек қазан қараша желтоқсан},
|
13
13
|
:month_abbrs => %w{қаң ақп нау сәу мам мау шіл там қыр қаз қар жел},
|
14
14
|
:month_standalone => %w{Қаңтар Ақпан Наурыз Сәуір Мамыр Маусым Шілде
|
15
15
|
Тамыз Қыркүйек Қазан Қараша Желтоқсан},
|
16
|
-
|
16
|
+
|
17
17
|
:time_am => ' ертеңің',
|
18
18
|
:time_pm => ' кештің',
|
19
19
|
:date_format => '%Y-%m-%d',
|
20
20
|
:full_format => '%B %e-і',
|
21
21
|
:year_format => '%Y жылы _',
|
22
|
-
|
22
|
+
|
23
23
|
:number_decimal => ",",
|
24
24
|
:number_group => " "
|
25
25
|
end
|
data/locales/lv.rb
CHANGED
@@ -2,24 +2,24 @@
|
|
2
2
|
module R18n
|
3
3
|
class Locales::Lv < Locale
|
4
4
|
set :title => 'Latviešu',
|
5
|
-
|
5
|
+
|
6
6
|
:wday_names => %w{Svētdiena Pirmdiena Otrdiena Trešdiena Ceturtdiena
|
7
7
|
Piektiena Sestdiena},
|
8
8
|
:wday_abbrs => %w{Sv P O T C P S},
|
9
|
-
|
9
|
+
|
10
10
|
:month_names => %w{janvāris februāris marts aprīlis maijs jūnijs jūlijs
|
11
11
|
augusts septembris oktobris novembris decembris},
|
12
12
|
:month_abbrs => %w{jan feb mar apr mai jūn jūl aug sep okt nov dec},
|
13
13
|
:month_standalone => %w{Janvāris Februāris Marts Aprīlis Maijs Jūnijs
|
14
14
|
Jūlijs Augusts Septembris Oktobris Novembris
|
15
15
|
Decembris},
|
16
|
-
|
16
|
+
|
17
17
|
:date_format => '%d.%m.%Y',
|
18
18
|
:year_format => '_, %Y',
|
19
|
-
|
19
|
+
|
20
20
|
:number_decimal => ",",
|
21
21
|
:number_group => " "
|
22
|
-
|
22
|
+
|
23
23
|
def pluralize(n)
|
24
24
|
if 0 == n
|
25
25
|
0
|
data/locales/nl.rb
CHANGED
@@ -2,19 +2,19 @@
|
|
2
2
|
module R18n
|
3
3
|
class Locales::Nl < Locale
|
4
4
|
set :title => 'Nederlands',
|
5
|
-
|
5
|
+
|
6
6
|
:wday_names => %w{zondag maandag dinsdag woensdag donderdag vrijdag zaterdag},
|
7
7
|
:wday_abbrs => %w{zo ma di wo do vr za},
|
8
|
-
|
8
|
+
|
9
9
|
:month_names => %w{januari februari maart april mei juni juli augustus september oktober november december},
|
10
10
|
:month_abbrs => %w{jan feb mrt apr mei jun jul aug sep okt nov dec},
|
11
|
-
|
11
|
+
|
12
12
|
:time_am => '\'s ochtends',
|
13
13
|
:time_pm => '\'s middags',
|
14
14
|
:date_format => '%d-%m-%Y',
|
15
15
|
:full_format => '%e %B',
|
16
|
-
|
16
|
+
|
17
17
|
:number_decimal => ",",
|
18
18
|
:number_group => "."
|
19
19
|
end
|
20
|
-
end
|
20
|
+
end
|
data/locales/pl.rb
CHANGED
@@ -2,23 +2,23 @@
|
|
2
2
|
module R18n
|
3
3
|
class Locales::Pl < R18n::Locale
|
4
4
|
set :title => 'Polski',
|
5
|
-
|
5
|
+
|
6
6
|
:wday_names => %w{niedziela poniedziałek wtorek środa czwartek piątek
|
7
7
|
sobota},
|
8
8
|
:wday_abbrs => %w{nd pn wt śr czw pt sob},
|
9
|
-
|
9
|
+
|
10
10
|
:month_names => %w{stycznia lutego marca kwietnia maja czerwca lipca
|
11
11
|
sierpnia września października listopada grudnia},
|
12
12
|
:month_abbrs => %w{I II III IV V VI VII VIII IX X XI XII},
|
13
13
|
:month_standalone => %w{styczeń luty marzec kwiecień maj czerwiec lipiec
|
14
14
|
sierpień wrzesień październik listopad
|
15
15
|
grudzień},
|
16
|
-
|
16
|
+
|
17
17
|
:date_format => '%d.%m.%Y',
|
18
|
-
|
18
|
+
|
19
19
|
:number_decimal => ",",
|
20
20
|
:number_group => " "
|
21
|
-
|
21
|
+
|
22
22
|
def pluralize(n)
|
23
23
|
return 0 if n == 0
|
24
24
|
case n % 10
|
data/locales/pt.rb
CHANGED
@@ -3,21 +3,21 @@ module R18n
|
|
3
3
|
class Locales::Pt < R18n::Locale
|
4
4
|
set :title => 'Português',
|
5
5
|
:code => 'pt',
|
6
|
-
|
6
|
+
|
7
7
|
:wday_names => %w{domingo segunda-feira terça-feira quarta-feira
|
8
8
|
quinta-feira sexta-feira sábado},
|
9
9
|
:wday_abbrs => %w{dom seg ter qua qui sex sab},
|
10
|
-
|
10
|
+
|
11
11
|
:month_names => %w{janeiro fevereiro março abril maio junho julho agosto
|
12
12
|
setembro outubro novembro dezembro},
|
13
13
|
:month_abbrs => %w{jan fev mar abr mai jun jul ago set out nov dez},
|
14
14
|
:month_standalone => %w{Janeiro Fevereiro Março Abril Maio Junho Julho
|
15
15
|
Agosto Setembro Outubro Novembro Dezembro},
|
16
|
-
|
16
|
+
|
17
17
|
:date_format => '%d/%m/%Y',
|
18
18
|
:full_format => '%d de %B',
|
19
19
|
:year_format => '_ de %Y',
|
20
|
-
|
20
|
+
|
21
21
|
:number_decimal => ",",
|
22
22
|
:number_group => "."
|
23
23
|
end
|
data/locales/ru.rb
CHANGED
@@ -2,24 +2,24 @@
|
|
2
2
|
module R18n
|
3
3
|
class Locales::Ru < Locale
|
4
4
|
set :title => 'Русский',
|
5
|
-
|
5
|
+
|
6
6
|
:wday_names => %w{Воскресенье Понедельник Вторник Среда Четверг Пятница
|
7
7
|
Суббота},
|
8
8
|
:wday_abbrs => %w{Вск Пнд Втр Срд Чтв Птн Сбт},
|
9
|
-
|
9
|
+
|
10
10
|
:month_names => %w{января февраля марта апреля мая июня июля августа
|
11
11
|
сентября октября ноября декабря},
|
12
12
|
:month_abbrs => %w{янв фев мар апр май июн июл авг сен окт ноя дек},
|
13
13
|
:month_standalone => %w{Январь Февраль Март Апрель Май Июнь Июль Август
|
14
14
|
Сентябрь Октябрь Ноябрь Декабрь},
|
15
|
-
|
15
|
+
|
16
16
|
:time_am => ' утра',
|
17
17
|
:time_pm => ' вечера',
|
18
18
|
:date_format => '%d.%m.%Y',
|
19
|
-
|
19
|
+
|
20
20
|
:number_decimal => ",",
|
21
21
|
:number_group => " "
|
22
|
-
|
22
|
+
|
23
23
|
def pluralize(n)
|
24
24
|
if 0 == n
|
25
25
|
0
|
data/locales/sk.rb
CHANGED
@@ -3,24 +3,24 @@ module R18n
|
|
3
3
|
class Locales::Sk < Locale
|
4
4
|
set :title => 'Slovenský',
|
5
5
|
:sublocales => %w{cs cz en},
|
6
|
-
|
6
|
+
|
7
7
|
:wday_names => %w{Nedeľa Pondelok Utorok Streda Štvrtok Piatok Sobota},
|
8
8
|
:wday_abbrs => %w{Ne Po Ut St Št Pi So},
|
9
|
-
|
9
|
+
|
10
10
|
:month_names => %w{januára februára marca apríla mája júna júla augusta
|
11
11
|
septembra októbra novembra decembra},
|
12
12
|
:month_abbrs => %w{jan feb mar apr máj jún júl aug sep okt nov dec},
|
13
13
|
:month_standalone => %w{Január Február Marec Apríl Máj Jún Júl August
|
14
14
|
September Október November December},
|
15
|
-
|
15
|
+
|
16
16
|
:time_am => 'dop.',
|
17
17
|
:time_pm => 'odp.',
|
18
18
|
:date_format => '%d.%m.%Y',
|
19
19
|
:full_format => '%e. %B',
|
20
|
-
|
20
|
+
|
21
21
|
:number_decimal => ",",
|
22
22
|
:number_group => " "
|
23
|
-
|
23
|
+
|
24
24
|
def pluralize(n)
|
25
25
|
case n
|
26
26
|
when 0
|
data/locales/sv-se.rb
CHANGED
@@ -4,18 +4,18 @@ module R18n
|
|
4
4
|
set :title => 'Svenska',
|
5
5
|
:code => 'sv-SE',
|
6
6
|
:sublocales => %w{sv},
|
7
|
-
|
7
|
+
|
8
8
|
:wday_names => %w{söndag måndag tisdag onsdag torsdag fredag
|
9
9
|
lördag},
|
10
10
|
:wday_abbrs => %w{sön mån tis ons tor fre lör},
|
11
|
-
|
11
|
+
|
12
12
|
:month_names => %w{januari februari mars april maj juni juli augusti
|
13
13
|
september october november december},
|
14
14
|
:month_abbrs => %w{jan feb mar apr maj jun jul aug okt nov dec},
|
15
|
-
|
15
|
+
|
16
16
|
:date_format => '%Y-%m-%d',
|
17
17
|
:full_format => '%e %B %Y',
|
18
|
-
|
18
|
+
|
19
19
|
:number_decimal => ",",
|
20
20
|
:number_group => "."
|
21
21
|
end
|
data/locales/th.rb
CHANGED
@@ -3,11 +3,14 @@ module R18n
|
|
3
3
|
class Locales::Th < R18n::Locale
|
4
4
|
set :title => 'ภาษาไทย',
|
5
5
|
|
6
|
-
:wday_names => %w{วันอาทิตย์ วันจันทร์ วันอังคาร วันพุธ วันพฤหัสบดี วันศุกร์ วันวัน
|
6
|
+
:wday_names => %w{วันอาทิตย์ วันจันทร์ วันอังคาร วันพุธ วันพฤหัสบดี วันศุกร์ วันวัน
|
7
|
+
วันเสาร์},
|
7
8
|
:wday_abbrs => %w{อาทิตย์ จันทร์ อังคาร พุธ พฤหัสบดี ศุกร์ เสาร์},
|
8
9
|
|
9
|
-
:month_names => %w{มกราคม กุมภาพันธ์ มีนาคม เมษายน พฤษภาคม มิถุนายน
|
10
|
-
|
10
|
+
:month_names => %w{มกราคม กุมภาพันธ์ มีนาคม เมษายน พฤษภาคม มิถุนายน
|
11
|
+
กรกฎาคม สิงหาคม กันยายน ตุลาคม พฤศจิกายน},
|
12
|
+
:month_abbrs => %w{ม.ค. ก.พ. มี.ค. เม.ย. พ.ค. มิ.ย. ก.ค. ส.ค. ก.ย. ต.ค.
|
13
|
+
พ.ย. ธ.ค.},
|
11
14
|
|
12
15
|
:date_format => '%d/%m/%Y',
|
13
16
|
:full_format => '%e %B',
|
@@ -15,7 +18,7 @@ module R18n
|
|
15
18
|
|
16
19
|
:number_decimal => ".",
|
17
20
|
:number_group => ","
|
18
|
-
|
21
|
+
|
19
22
|
def strftime(time, format)
|
20
23
|
year = (time.year + 543).to_s
|
21
24
|
super(time, format.gsub('%Y', year).gsub('%y', year[-2..-1]))
|