-
Notifications
You must be signed in to change notification settings - Fork 0
/
date.py
1845 lines (1683 loc) · 117 KB
/
date.py
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# -*- coding: utf-8 -*-
"""
This file is not runnable, but it only consists of various
lists which are required by some other programs.
"""
#
# © Rob W.W. Hooft, 2003
# © Daniel Herding, 2004
# © Ævar Arnfjörð Bjarmason, 2004
# © Andre Engels, 2004-2005
# © Yuri Astrakhan, 2005-2006 [email protected]
# (years/decades/centuries/millenniums str <=> int conversions)
# © Pywikipedia bot team, 2004-2012
#
# Distributed under the terms of the MIT license.
#
__version__='$Id$'
# used for date recognition
import types
import re
import wikipedia as pywikibot
#
# Different collections of well known formats
#
enMonthNames = [u'January', u'February', u'March', u'April', u'May', u'June',
u'July', u'August', u'September', u'October', u'November',
u'December']
dayMnthFmts = ['Day_' + str(s) for s in enMonthNames] # e.g. 'Day_January'
yrMnthFmts = ['Year_' + str(s) for s in enMonthNames] # e.g. 'Year_January'
# the order of these lists is important
adDateFormats = ['YearAD', 'DecadeAD', 'CenturyAD', 'MillenniumAD']
bcDateFormats = ['YearBC', 'DecadeBC', 'CenturyBC', 'MillenniumBC']
dateFormats = bcDateFormats + adDateFormats
decadeFormats = ['DecadeAD', 'DecadeBC']
centuryFormats = ['CenturyAD', 'CenturyBC']
yearFormats = ['YearAD', 'YearBC']
millFormats = ['MillenniumAD', 'MillenniumBC']
snglValsFormats = ['CurrEvents']
def multi( value, tuplst ):
"""This method is used when more than one pattern is used for the same
entry. Example: 1st century, 2nd century, etc.
The tuplst is a list of tupples. Each tupple must contain two functions:
first to encode/decode a single value (e.g. simpleInt), second is a
predicate function with an integer parameter that returns true or false.
When the 2nd function evaluates to true, the 1st function is used.
"""
if type(value) in _stringTypes:
# Try all functions, and test result against predicates
for func, pred in tuplst:
try:
res = func(value)
if pred(res):
return res
except:
pass
else:
# Find a predicate that gives true for this int value, and run a
# function
for func, pred in tuplst:
if pred(value):
return func(value)
raise ValueError("could not find a matching function")
#
# Helper functions that aid with single value no corrections encoding/decoding.
# Various filters are item dependent.
#
def dh_noConv(value, pattern, limit):
"""decoding helper for a single integer value, no conversion, no rounding"""
return dh( value, pattern, encNoConv, decSinglVal, limit )
def dh_dayOfMnth(value, pattern):
"""decoding helper for a single integer value <=31, no conversion,
no rounding (used in days of month)
"""
# For now use January because it has all 31 days
return dh_noConv(value, pattern, formatLimits[dayMnthFmts[0]][0])
def dh_mnthOfYear(value, pattern):
"""decoding helper for a single integer value >=1000, no conversion,
no rounding (used in month of the year)
"""
return dh_noConv(value, pattern, _formatLimit_MonthOfYear[0])
def dh_decAD(value, pattern):
"""decoding helper for a single integer value, no conversion,
round to decimals (used in decades)
"""
return dh(value, pattern, encDec0, decSinglVal, formatLimits['DecadeAD'][0])
def dh_decBC(value, pattern):
"""decoding helper for a single integer value, no conversion,
round to decimals (used in decades)
"""
return dh(value, pattern, encDec0, decSinglVal, formatLimits['DecadeBC'][0])
def dh_yearBC(value, pattern):
"""decoding helper for a year value, no conversion, no rounding,
limits to 3000
"""
return dh_noConv(value, pattern, formatLimits['YearBC'][0])
def dh_yearAD(value, pattern):
"""decoding helper for a year value, no conversion, no rounding,
limits to 3000
"""
return dh_noConv(value, pattern, formatLimits['YearAD'][0])
def dh_simpleYearAD(value):
"""decoding helper for a single integer value representing a year with
no extra symbols
"""
return dh_yearAD(value, u'%d')
def dh_number(value, pattern):
return dh_noConv(value, pattern, formatLimits['Number'][0])
def dh_centuryAD(value, pattern):
return dh_noConv(value, pattern, formatLimits['CenturyAD'][0])
def dh_centuryBC(value, pattern):
return dh_noConv(value, pattern, formatLimits['CenturyBC'][0])
def dh_millenniumAD(value, pattern):
return dh_noConv(value, pattern, formatLimits['MillenniumAD'][0])
def dh_millenniumBC(value, pattern):
return dh_noConv(value, pattern, formatLimits['MillenniumBC'][0])
def decSinglVal(v):
return v[0]
def encNoConv(i):
return i
def encDec0(i):
# round to the nearest decade, decade starts with a '0'-ending year
return (i/10)*10
def encDec1(i):
# round to the nearest decade, decade starts with a '1'-ending year
return encDec0(i)+1
def slh( value, lst ):
"""This function helps in simple list value matching.
!!!!! The index starts at 1, so 1st element has index 1, not 0 !!!!!
Usually it will be used as a lambda call in a map:
lambda v: slh( v, [u'January',u'February',...] )
Usage scenarios:
formats['MonthName']['en'](1) => u'January'
formats['MonthName']['en'](u'January') => 1
formats['MonthName']['en'](u'anything else') => raise ValueError
"""
if type(value) in _stringTypes:
return lst.index(value)+1
else:
return lst[value-1]
def dh_singVal( value, match ):
return dh_constVal( value, 0, match )
def dh_constVal( value, ind, match ):
"""This function helps with matching a single value to a constant.
formats['CurrEvents']['en'](ind) => u'Current Events'
formats['CurrEvents']['en'](u'Current Events') => ind
"""
if type(value) in _stringTypes:
if value == match:
return ind
else:
raise ValueError()
else:
if value == ind:
return match
else:
raise ValueError("unknown value %d" % value)
def alwaysTrue( x ):
"""This function always returns True - its used for multiple value selection function
to accept all other values
"""
return True
def monthName(lang, ind):
return formats['MonthName'][lang](ind)
# Helper for KN: digits representation
_knDigits = u'೦೧೨೩೪೫೬೭೮೯'
_knDigitsToLocal = dict([(ord(unicode(i)), _knDigits[i]) for i in xrange(10)])
_knLocalToDigits = dict([(ord(_knDigits[i]), unicode(i)) for i in xrange(10)])
# Helper for Urdu/Persian languages
_faDigits = u'۰۱۲۳۴۵۶۷۸۹'
_faDigitsToLocal = dict([(ord(unicode(i)), _faDigits[i]) for i in xrange(10)])
_faLocalToDigits = dict([(ord(_faDigits[i]), unicode(i)) for i in xrange(10)])
# Helper for HI:, MR:
_hiDigits = u'०१२३४५६७८९'
_hiDigitsToLocal = dict([(ord(unicode(i)), _hiDigits[i]) for i in xrange(10)])
_hiLocalToDigits = dict([(ord(_hiDigits[i]), unicode(i)) for i in xrange(10)])
# Helper for BN:
_bnDigits = u'০১২৩৪৫৬৭৮৯'
_bnDigitsToLocal = dict([(ord(unicode(i)), _bnDigits[i]) for i in xrange(10)])
_bnLocalToDigits = dict([(ord(_bnDigits[i]), unicode(i)) for i in xrange(10)])
# Helper for GU:
_guDigits = u'૦૧૨૩૪૫૬૭૮૯'
_guDigitsToLocal = dict([(ord(unicode(i)), _guDigits[i]) for i in xrange(10)])
_guLocalToDigits = dict([(ord(_guDigits[i]), unicode(i)) for i in xrange(10)])
def intToLocalDigitsStr( value, digitsToLocalDict ):
# Encode an integer value into a textual form.
return unicode(value).translate(digitsToLocalDict)
def localDigitsStrToInt( value, digitsToLocalDict, localToDigitsDict ):
# First make sure there are no real digits in the string
tmp = value.translate(digitsToLocalDict) # Test
if tmp == value:
return int(value.translate(localToDigitsDict)) # Convert
else:
raise ValueError("string contains regular digits")
# Decimal digits used for various matchings
_decimalDigits = '0123456789'
# Helper for roman numerals number representation
_romanNumbers = ['-', 'I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX',
'X', 'XI', 'XII', 'XIII', 'XIV', 'XV', 'XVI', 'XVII', 'XVIII',
'XIX', 'XX', 'XXI', 'XXII', 'XXIII', 'XXIV', 'XXV', 'XXVI',
'XXVII', 'XXVIII', 'XXIX', 'XXX']
def intToRomanNum(i):
if i >= len(_romanNumbers):
raise IndexError(u'Roman value %i is not defined' % i)
return _romanNumbers[i]
def romanNumToInt(v):
return _romanNumbers.index(v)
# Each tuple must 3 parts: a list of all possible digits (symbols), encoder
# (from int to a u-string) and decoder (from u-string to an int)
_digitDecoders = {
# %% is a %
'%' : u'%',
# %d is a decimal
'd' : ( _decimalDigits, unicode, int ),
# %R is a roman numeral. This allows for only the simpliest linear
# conversions based on a list of numbers
'R' : ( u'IVX', intToRomanNum, romanNumToInt ),
# %K is a number in KN::
'K' : ( _knDigits, lambda v: intToLocalDigitsStr(v, _knDigitsToLocal), lambda v: localDigitsStrToInt(v, _knDigitsToLocal, _knLocalToDigits) ),
# %F is a number in FA:
'F' : ( _faDigits, lambda v: intToLocalDigitsStr(v, _faDigitsToLocal), lambda v: localDigitsStrToInt(v, _faDigitsToLocal, _faLocalToDigits) ),
# %H is a number in HI:
'H' : ( _hiDigits, lambda v: intToLocalDigitsStr(v, _hiDigitsToLocal), lambda v: localDigitsStrToInt(v, _hiDigitsToLocal, _hiLocalToDigits) ),
# %B is a number in BN:
'B' : ( _bnDigits, lambda v: intToLocalDigitsStr(v, _bnDigitsToLocal), lambda v: localDigitsStrToInt(v, _bnDigitsToLocal, _bnLocalToDigits) ),
# %G is a number in GU:
'G' : ( _guDigits, lambda v: intToLocalDigitsStr(v, _guDigitsToLocal), lambda v: localDigitsStrToInt(v, _guDigitsToLocal, _guLocalToDigits) ),
# %T is a year in TH: -- all years are shifted: 2005 => 'พ.ศ. 2548'
'T' : ( _decimalDigits, lambda v: unicode(v+543), lambda v: int(v)-543 ),
}
# Allows to search for '(%%)|(%d)|(%R)|...", and allows one digit 1-9 to set
# the size of zero-padding for numbers
_reParameters = re.compile(u'|'.join([ u'(%%[1-9]?%s)' % s for s in _digitDecoders.keys() ]))
# A map of sitecode+pattern to (re matching object and corresponding
# decoders)
_escPtrnCache2 = {}
# Allow both unicode and single-byte strings
_stringTypes = [unicode, str]
_listTypes = [tuple, list]
def escapePattern2( pattern ):
"""Converts a string pattern into a regex expression and cache.
Allows matching of any _digitDecoders inside the string.
Returns a compiled regex object and a list of digit decoders
"""
if pattern not in _escPtrnCache2:
newPattern = u'^' # begining of the string
strPattern = u''
decoders = []
for s in _reParameters.split(pattern):
if s is None:
pass
elif len(s) in [2, 3] and s[0] == '%' and s[-1] in _digitDecoders and (len(s) == 2 or s[1] in _decimalDigits):
# Must match a "%2d" or "%d" style
dec = _digitDecoders[s[-1]]
if type(dec) in _stringTypes:
# Special case for strings that are replaced instead of decoded
if len(s) == 3: raise AssertionError("Invalid pattern %s: Cannot use zero padding size in %s!" % (pattern, s))
newPattern += re.escape( dec )
strPattern += s # Keep the original text
else:
if len(s) == 3:
# enforce mandatory field size
newPattern += u'([%s]{%s})' % (dec[0], s[1])
# add the number of required digits as the last (4th) part of the tuple
dec += (int(s[1]),)
else:
newPattern += u'([%s]+)' % dec[0]
decoders.append( dec )
# All encoders produce a string
# this causes problem with the zero padding.
# Need to rethink
strPattern += u'%s'
else:
newPattern += re.escape( s )
strPattern += s
newPattern += u'$' # end of the string
compiledPattern = re.compile( newPattern )
_escPtrnCache2[pattern] = (compiledPattern, strPattern, decoders)
return _escPtrnCache2[pattern]
def dh( value, pattern, encf, decf, filter = None ):
"""This function helps in year parsing.
Usually it will be used as a lambda call in a map:
lambda v: dh( v, u'pattern string', encodingFunc, decodingFunc )
encodingFunc:
Converts from an integer parameter to another integer or a tuple of
integers. Depending on the pattern, each integer will be converted to a
proper string representation, and will be passed as a format argument
to the pattern:
pattern % encodingFunc(value)
This function is a complement of decodingFunc.
decodingFunc:
Converts a tuple/list of non-negative integers found in the original
value string
into a normalized value. The normalized value can be passed right back
into dh() to produce the original string. This function is a complement
of encodingFunc. dh() interprets %d as a decimal and %s as a roman
numeral number.
"""
compPattern, strPattern, decoders = escapePattern2(pattern)
if type(value) in _stringTypes:
m = compPattern.match(value)
if m:
# decode each found value using provided decoder
values = [ decoders[i][2](m.group(i+1)) for i in xrange(len(decoders))]
decValue = decf( values )
if decValue in _stringTypes:
raise AssertionError("Decoder must not return a string!")
# recursive call to re-encode and see if we get the original (may through filter exception)
if value == dh(decValue, pattern, encf, decf, filter):
return decValue
raise ValueError("reverse encoding didn't match")
else:
# Encode an integer value into a textual form.
# This will be called from outside as well as recursivelly to verify parsed value
if filter and not filter(value):
raise ValueError("value %i is not allowed" % value)
params = encf(value)
if type(params) in _listTypes:
if len(params) != len(decoders):
raise AssertionError("parameter count (%d) does not match decoder count (%d)" % (len(params), len(decoders)))
# convert integer parameters into their textual representation
params = [ MakeParameter(decoders[i], params[i]) for i in xrange(len(params)) ]
return strPattern % tuple(params)
else:
if 1 != len(decoders):
raise AssertionError("A single parameter does not match %d decoders." % len(decoders))
# convert integer parameter into its textual representation
return strPattern % MakeParameter(decoders[0], params)
def MakeParameter(decoder, param):
newValue = decoder[1](param)
if len(decoder) == 4 and len(newValue) < decoder[3]:
# force parameter length by taking the first digit in the list and repeating it required number of times
# This converts "205" into "0205" for "%4d"
newValue = decoder[0][0] * (decoder[3]-len(newValue)) + newValue
return newValue
#
# All years/decades/centuries/millenniums are designed in such a way
# as to allow for easy date to string and string to date conversion.
# For example, using any map with either an integer or a string will produce its oposite value:
# Usage scenarios:
# formats['DecadeAD']['en'](1980) => u'1980s'
# formats['DecadeAD']['en'](u'1980s') => 1980
# formats['DecadeAD']['en'](u'anything else') => raise ValueError (or some other exception?)
# This is useful when trying to decide if a certain article is a localized date or not, or generating dates.
# See dh() for additional information.
#
#
# *********** ATTENTION! ***********
#
# You must test this table before submitting it to CVS by calling date.test() method
#
formats = {
'MonthName': {
'af' : lambda v: slh( v, [u"Januarie", u"Februarie", u"Maart", u"April", u"Mei", u"Junie", u"Julie", u"Augustus", u"September", u"Oktober", u"November", u"Desember"] ),
'als': lambda v: slh( v, [u"Januar", u"Februar", u"März", u"April", u"Mai", u"Juni", u"Juli", u"August", u"September", u"Oktober", u"November", u"Dezember"] ),
'an' : lambda v: slh( v, [u"chinero", u"frebero", u"marzo", u"abril", u"mayo", u"chunio", u"chulio", u"agosto", u"setiembre", u"otubre", u"nobiembre", u"abiento"] ),
'ang': lambda v: slh( v, [u"Æfterra Gēola", u"Solmōnaþ", u"Hrēþmōnaþ", u"Ēastermōnaþ", u"Þrimilcemōnaþ", u"Sēremōnaþ", u"Mǣdmōnaþ", u"Wēodmōnaþ", u"Hāligmōnaþ", u"Winterfylleþ", u"Blōtmōnaþ", u"Gēolmōnaþ"] ),
'ar' : lambda v: slh( v, [u"يناير", u"فبراير", u"مارس", u"أبريل", u"مايو", u"يونيو", u"يوليو", u"أغسطس", u"سبتمبر", u"أكتوبر", u"نوفمبر", u"ديسمبر"] ),
'ast': lambda v: slh( v, [u"xineru", u"febreru", u"marzu", u"abril", u"mayu", u"xunu", u"xunetu", u"agostu", u"setiembre", u"ochobre", u"payares", u"avientu"] ),
'be' : lambda v: slh( v, [u"студзень", u"люты", u"сакавік", u"красавік", u"травень", u"чэрвень", u"ліпень", u"жнівень", u"верасень", u"кастрычнік", u"лістапад", u"сьнежань"] ),
'bg' : lambda v: slh( v, [u"януари", u"февруари", u"март", u"април", u"май", u"юни", u"юли", u"август", u"септември", u"октомври", u"ноември", u"декември"] ),
'bn' : lambda v: slh( v, [u"জানুয়ারি", u"ফেব্রুয়ারি", u"মার্চ", u"এপ্রিল", u"মে", u"জুন", u"জুলাই", u"আগস্ট", u"সেপ্টেম্বর", u"অক্টোবর", u"নভেম্বর", u"ডিসেম্বর"] ),
'br' : lambda v: slh( v, [u"Genver", u"C'hwevrer", u"Meurzh", u"Ebrel", u"Mae", u"Mezheven", u"Gouere", u"Eost", u"Gwengolo", u"Here", u"Du", u"Kerzu"] ),
'bs' : lambda v: slh( v, [u"januar", u"februar", u"mart", u"april", u"maj", u"juni", u"juli", u"august", u"septembar", u"oktobar", u"novembar", u"decembar"] ),
'ca' : lambda v: slh( v, [u"gener", u"febrer", u"març", u"abril", u"maig", u"juny", u"juliol", u"agost", u"setembre", u"octubre", u"novembre", u"desembre"] ),
'ceb': lambda v: slh( v, [u"Enero", u"Pebrero", u"Marso", u"Abril", u"Mayo", u"Hunyo", u"Hulyo", u"Agosto", u"Septiyembre", u"Oktubre", u"Nobiyembre", u"Disyembre"] ),
'co' : lambda v: slh( v, [u"ghjennaghju", u"frivaghju", u"marzu", u"aprile", u"maghju", u"ghjugnu", u"lugliu", u"aostu", u"settembre", u"uttrovi", u"nuvembri", u"decembre"] ),
'cs' : lambda v: slh( v, [u"leden", u"únor", u"březen", u"duben", u"květen", u"červen", u"červenec", u"srpen", u"září", u"říjen", u"listopad", u"prosinec"] ),
'csb': lambda v: slh( v, [u"stëcznik", u"gromicznik", u"strumiannik", u"łżëkwiôt", u"môj", u"czerwińc", u"lëpinc", u"zélnik", u"séwnik", u"rujan", u"lëstopadnik", u"gòdnik"] ),
'cv' : lambda v: slh( v, [u"кăрлач", u"нарăс", u"Пуш", u"Ака", u"çу", u"çĕртме", u"утă", u"çурла", u"авăн", u"юпа", u"чӳк", u"раштав"] ),
'cy' : lambda v: slh( v, [u"Ionawr", u"Chwefror", u"Mawrth", u"Ebrill", u"Mai", u"Mehefin", u"Gorffennaf", u"Awst", u"Medi", u"Hydref", u"Tachwedd", u"Rhagfyr"] ),
'da' : lambda v: slh( v, [u"januar", u"februar", u"marts", u"april", u"maj", u"juni", u"juli", u"august", u"september", u"oktober", u"november", u"december"] ),
'de' : lambda v: slh( v, [u"Januar", u"Februar", u"März", u"April", u"Mai", u"Juni", u"Juli", u"August", u"September", u"Oktober", u"November", u"Dezember"] ),
'el' : lambda v: slh( v, [u"Ιανουάριος", u"Φεβρουάριος", u"Μάρτιος", u"Απρίλιος", u"Μάιος", u"Ιούνιος", u"Ιούλιος", u"Αύγουστος", u"Σεπτέμβριος", u"Οκτώβριος", u"Νοέμβριος", u"Δεκέμβριος"] ),
'en' : lambda v: slh( v, enMonthNames ),
'eo' : lambda v: slh( v, [u"Januaro", u"Februaro", u"Marto", u"Aprilo", u"Majo", u"Junio", u"Julio", u"Aŭgusto", u"Septembro", u"Oktobro", u"Novembro", u"Decembro"] ),
'es' : lambda v: slh( v, [u"enero", u"febrero", u"marzo", u"abril", u"mayo", u"junio", u"julio", u"agosto", u"septiembre", u"octubre", u"noviembre", u"diciembre"] ),
'et' : lambda v: slh( v, [u"jaanuar", u"veebruar", u"märts", u"aprill", u"mai", u"juuni", u"juuli", u"august", u"september", u"oktoober", u"november", u"detsember"] ),
'eu' : lambda v: slh( v, [u"Urtarril", u"Otsail", u"Martxo", u"Apiril", u"Maiatz", u"Ekain", u"Uztail", u"Abuztu", u"Irail", u"Urri", u"Azaro", u"Abendu"] ),
'fa' : lambda v: slh( v, [u"ژانویه", u"فوریه", u"مارس", u"آوریل", u"مه", u"ژوئن", u"ژوئیه", u"اوت", u"سپتامبر", u"اکتبر", u"نوامبر", u"دسامبر"] ),
'fi' : lambda v: slh( v, [u"tammikuu", u"helmikuu", u"maaliskuu", u"huhtikuu", u"toukokuu", u"kesäkuu", u"heinäkuu", u"elokuu", u"syyskuu", u"lokakuu", u"marraskuu", u"joulukuu"] ),
'fo' : lambda v: slh( v, [u"januar", u"februar", u"mars", u"apríl", u"mai", u"juni", u"juli", u"august", u"september", u"oktober", u"november", u"desember"] ),
'fr' : lambda v: slh( v, [u"janvier", u"février", u"mars (mois)", u"avril", u"mai", u"juin", u"juillet", u"août", u"septembre", u"octobre", u"novembre", u"décembre"] ),
'fur': lambda v: slh( v, [u"Zenâr", u"Fevrâr", u"Març", u"Avrîl", u"Mai", u"Jugn", u"Lui", u"Avost", u"Setembar", u"Otubar", u"Novembar", u"Dicembar"] ),
'fy' : lambda v: slh( v, [u"jannewaris", u"febrewaris", u"maart", u"april", u"maaie", u"juny", u"july", u"augustus", u"septimber", u"oktober", u"novimber", u"desimber"] ),
'ga' : lambda v: slh( v, [u"Eanáir", u"Feabhra", u"Márta", u"Aibreán", u"Bealtaine", u"Meitheamh", u"Iúil", u"Lúnasa", u"Meán Fómhair", u"Deireadh Fómhair", u"Samhain", u"Nollaig"] ),
'gl' : lambda v: slh( v, [u"xaneiro", u"febreiro", u"marzo", u"abril", u"maio", u"xuño", u"xullo", u"agosto", u"setembro", u"outubro", u"novembro", u"decembro"] ),
'he' : lambda v: slh( v, [u"ינואר", u"פברואר", u"מרץ", u"אפריל", u"מאי", u"יוני", u"יולי", u"אוגוסט", u"ספטמבר", u"אוקטובר", u"נובמבר", u"דצמבר"] ),
'hi' : lambda v: slh( v, [u"जनवरी", u"फ़रवरी", u"मार्च", u"अप्रैल", u"मई", u"जून", u"जुलाई", u"अगस्त", u"सितम्बर", u"अक्टूबर", u"नवम्बर", u"दिसम्बर"] ),
'hr' : lambda v: slh( v, [u"siječanj", u"veljača", u"ožujak", u"travanj", u"svibanj", u"lipanj", u"srpanj", u"kolovoz", u"rujan", u"listopad", u"studeni", u"prosinac"] ),
'hu' : lambda v: slh( v, [u"január", u"február", u"március", u"április", u"május", u"június", u"július", u"augusztus", u"szeptember", u"október", u"november", u"december"] ),
'ia' : lambda v: slh( v, [u"januario", u"februario", u"martio", u"april", u"maio", u"junio", u"julio", u"augusto", u"septembre", u"octobre", u"novembre", u"decembre"] ),
'id' : lambda v: slh( v, [u"Januari", u"Februari", u"Maret", u"April", u"Mei", u"Juni", u"Juli", u"Agustus", u"September", u"Oktober", u"November", u"Desember"] ),
'ie' : lambda v: slh( v, [u"januar", u"februar", u"marte", u"april", u"may", u"junio", u"juli", u"august", u"septembre", u"octobre", u"novembre", u"decembre"] ),
'io' : lambda v: slh( v, [u"januaro", u"februaro", u"Marto", u"aprilo", u"mayo", u"junio", u"julio", u"agosto", u"septembro", u"oktobro", u"novembro", u"decembro"] ),
'is' : lambda v: slh( v, [u"janúar", u"febrúar", u"mars (mánuður)", u"apríl", u"maí", u"júní", u"júlí", u"ágúst", u"september", u"október", u"nóvember", u"desember"] ),
'it' : lambda v: slh( v, [u"gennaio", u"febbraio", u"marzo", u"aprile", u"maggio", u"giugno", u"luglio", u"agosto", u"settembre", u"ottobre", u"novembre", u"dicembre"] ),
'ja' : lambda v: slh( v, makeMonthList( u"%d月" )),
'jv' : lambda v: slh( v, [u"Januari", u"Februari", u"Maret", u"April", u"Mei", u"Juni", u"Juli", u"Agustus", u"September", u"Oktober", u"November", u"Desember"] ),
'ka' : lambda v: slh( v, [u"იანვარი", u"თებერვალი", u"მარტი", u"აპრილი", u"მაისი", u"ივნისი", u"ივლისი", u"აგვისტო", u"სექტემბერი", u"ოქტომბერი", u"ნოემბერი", u"დეკემბერი"] ),
'kn' : lambda v: slh( v, [u"ಜನವರಿ", u"ಫೆಬ್ರವರಿ", u"ಮಾರ್ಚಿ", u"ಎಪ್ರಿಲ್", u"ಮೇ", u"ಜೂನ", u"ಜುಲೈ", u"ಆಗಸ್ಟ್", u"ಸೆಪ್ಟೆಂಬರ್", u"ಅಕ್ಟೋಬರ್", u"ನವೆಂಬರ್", u"ಡಿಸೆಂಬರ್"] ),
'ko' : lambda v: slh( v, makeMonthList( u"%d월" )),
'ksh': lambda v: slh( v, [u'Jannowaa', u'Febrowaa', u'Mä', u'Apprill', u'Meij', u'Juuni', u'Juuli', u'Aujuß', u'Sepptäber', u'Oktoober', u'Novemmber', u'Dezemmber'] ),
'ku' : lambda v: slh( v, [u"rêbendan", u"reşemî", u"adar", u"avrêl", u"gulan", u"pûşper", u"tîrmeh", u"gelawêj (meh)", u"rezber", u"kewçêr", u"sermawez", u"berfanbar"] ),
'kw' : lambda v: slh( v, [u"Mys Genver", u"Mys Whevrer", u"Mys Merth", u"Mys Ebrel", u"Mys Me", u"Mys Metheven", u"Mys Gortheren", u"Mys Est", u"Mys Gwyngala", u"Mys Hedra", u"Mys Du", u"Mys Kevardhu"] ),
'la' : lambda v: slh( v, [u"Ianuarius", u"Februarius", u"Martius", u"Aprilis", u"Maius", u"Iunius", u"Iulius", u"Augustus (mensis)", u"September", u"October", u"November", u"December"] ),
'lb' : lambda v: slh( v, [u"Januar", u"Februar", u"Mäerz", u"Abrëll", u"Mee", u"Juni", u"Juli", u"August", u"September", u"Oktober", u"November", u"Dezember"] ),
'li' : lambda v: slh( v, [u"jannewarie", u"fibberwarie", u"miert", u"april", u"mei", u"juni", u"juli", u"augustus (maond)", u"september", u"oktober", u"november", u"december"] ),
'lt' : lambda v: slh( v, [u"Sausis", u"Vasaris", u"Kovas", u"Balandis", u"Gegužė", u"Birželis", u"Liepa", u"Rugpjūtis", u"Rugsėjis", u"Spalis", u"Lapkritis", u"Gruodis"] ),
'lv' : lambda v: slh( v, [u"Janvāris", u"Februāris", u"Marts", u"Aprīlis", u"Maijs", u"Jūnijs", u"Jūlijs", u"Augusts", u"Septembris", u"Oktobris", u"Novembris", u"Decembris"] ),
'mhr': lambda v: slh( v, [ u"шорыкйол", u"пургыж", u"ӱярня", u"вӱдшор", u"ага", u"пеледыш", u"сӱрем", u"сорла", u"идым", u"шыжа", u"кылме", u"декабрь"] ),
'mi' : lambda v: slh( v, [u"Kohi-tātea", u"Hui-tanguru", u"Poutū-te-rangi", u"Paenga-whāwhā", u"Haratua", u"Pipiri", u"Hōngongoi", u"Here-turi-kōkā", u"Mahuru", u"Whiringa-ā-nuku", u"Whiringa-ā-rangi", u"Hakihea"] ),
'ml' : lambda v: slh( v, [u"ജനുവരി", u"ഫെബ്രുവരി", u"മാര്ച്", u"ഏപ്രില്", u"മേയ്", u"ജൂണ്", u"ജൂലൈ", u"ആഗസ്റ്റ്", u"സപ്തന്പര്", u"ഒക്ടോബര്", u"നവന്പര്", u"ഡിസന്പര്"] ),
'mr' : lambda v: slh( v, [u"जानेवारी", u"फेब्रुवारी", u"मार्च", u"एप्रिल", u"मे", u"जून", u"जुलै", u"ऑगस्ट", u"सप्टेंबर", u"ऑक्टोबर", u"नोव्हेंबर", u"डिसेंबर"] ),
'ms' : lambda v: slh( v, [u"Januari", u"Februari", u"Mac", u"April", u"Mei", u"Jun", u"Julai", u"Ogos", u"September", u"Oktober", u"November", u"Disember"] ),
'nap': lambda v: slh( v, [u"Jennaro", u"Frevaro", u"Màrzo", u"Abbrile", u"Maggio", u"Giùgno", u"Luglio", u"Aùsto", u"Settembre", u"Ottovre", u"Nuvembre", u"Dicembre"] ),
'nds': lambda v: slh( v, [u"Januar", u"Februar", u"März", u"April", u"Mai", u"Juni", u"Juli", u"August", u"September", u"Oktober", u"November", u"Dezember"] ),
'nl' : lambda v: slh( v, [u"januari", u"februari", u"maart", u"april", u"mei", u"juni", u"juli", u"augustus (maand)", u"september", u"oktober", u"november", u"december"] ),
'nn' : lambda v: slh( v, [u"januar", u"februar", u"månaden mars", u"april", u"mai", u"juni", u"juli", u"august", u"september", u"oktober", u"november", u"desember"] ),
'no' : lambda v: slh( v, [u"januar", u"februar", u"mars", u"april", u"mai", u"juni", u"juli", u"august", u"september", u"oktober", u"november", u"desember"] ),
'oc' : lambda v: slh( v, [u"genièr", u"febrièr", u"març", u"abril", u"mai", u"junh", u"julhet", u"agost", u"setembre", u"octobre", u"novembre", u"decembre"] ),
'os' : lambda v: slh( v, [u"январь", u"февраль", u"мартъи", u"апрель", u"май", u"июнь", u"июль", u"август", u"сентябрь", u"октябрь", u"ноябрь", u"декабрь"] ),
'pdc' : lambda v: slh( v, [u'Yenner', u'Hanning', u'Matz', u'Abril', u'Moi', u'Yuni', u'Yuli', u'Aagscht', u'September', u'Oktower', u'Nowember', u'Disember'] ),
'pl' : lambda v: slh( v, [u"styczeń", u"luty", u"marzec", u"kwiecień", u"maj", u"czerwiec", u"lipiec", u"sierpień", u"wrzesień", u"październik", u"listopad", u"grudzień"] ),
'pt' : lambda v: slh( v, [u"Janeiro", u"Fevereiro", u"Março", u"Abril", u"Maio", u"Junho", u"Julho", u"Agosto", u"Setembro", u"Outubro", u"Novembro", u"Dezembro"] ),
'ro' : lambda v: slh( v, [u"ianuarie", u"februarie", u"martie", u"aprilie", u"mai", u"iunie", u"iulie", u"august", u"septembrie", u"octombrie", u"noiembrie", u"decembrie"] ),
'ru' : lambda v: slh( v, [u"январь", u"февраль", u"март", u"апрель", u"май", u"июнь", u"июль", u"август", u"сентябрь", u"октябрь", u"ноябрь", u"декабрь"] ),
'sc' : lambda v: slh( v, [u"Ghennarzu", u"Frearzu", u"Martzu", u"Abrile", u"Maju", u"Làmpadas", u"Triulas", u"Aùstu", u"Cabudanni", u"Santugaìne", u"Santadria", u"Nadale"] ),
'scn': lambda v: slh( v, [u"jinnaru", u"frivaru", u"marzu", u"aprili", u"maiu", u"giugnu", u"giugnettu", u"austu", u"sittèmmiru", u"uttùviru", u"nuvèmmiru", u"dicèmmiru"] ),
'sco': lambda v: slh( v, [u"Januar", u"Februar", u"Mairch", u"Aprile", u"Mey", u"Juin", u"Julie", u"August", u"September", u"October", u"November", u"December"] ),
'se' : lambda v: slh( v, [u"ođđajagimánnu", u"guovvamánnu", u"njukčamánnu", u"cuoŋománnu", u"miessemánnu", u"geassemánnu", u"suoidnemánnu", u"borgemánnu", u"čakčamánnu", u"golggotmánnu", u"skábmamánnu", u"juovlamánnu"] ),
'simple': lambda v: slh( v, [u"January", u"February", u"March", u"April", u"May", u"June", u"July", u"August", u"September", u"October", u"November", u"December"] ),
'sk' : lambda v: slh( v, [u"január", u"február", u"marec", u"apríl", u"máj", u"jún", u"júl", u"august", u"september", u"október", u"november", u"december"] ),
'sl' : lambda v: slh( v, [u"januar", u"februar", u"marec", u"april", u"maj", u"junij", u"julij", u"avgust", u"september", u"oktober", u"november", u"december"] ),
'sq' : lambda v: slh( v, [u"Janari", u"Shkurti", u"Marsi (muaj)", u"Prilli", u"Maji", u"Qershori", u"Korriku", u"Gushti", u"Shtatori", u"Tetori", u"Nëntori", u"Dhjetori"] ),
'sr' : lambda v: slh( v, [u"јануар", u"фебруар", u"март", u"април", u"мај", u"јун", u"јул", u"август", u"септембар", u"октобар", u"новембар", u"децембар"] ),
'su' : lambda v: slh( v, [u"Januari", u"Pébruari", u"Maret", u"April", u"Méi", u"Juni", u"Juli", u"Agustus", u"Séptémber", u"Oktober", u"Nopémber", u"Désémber"] ),
'sv' : lambda v: slh( v, [u"januari", u"februari", u"mars", u"april", u"maj", u"juni", u"juli", u"augusti", u"september", u"oktober", u"november", u"december"] ),
'ta' : lambda v: slh( v, [u"ஜனவரி", u"பிப்ரவரி", u"மார்ச்", u"ஏப்ரல்", u"மே", u"ஜூன்", u"ஜூலை", u"ஆகஸ்டு", u"செப்டம்பர்", u"அக்டோபர்", u"நவம்பர்", u"டிசம்பர்"] ),
'te' : lambda v: slh( v, [u"జనవరి", u"ఫిబ్రవరి", u"మార్చి", u"ఏప్రిల్", u"మే", u"జూన్", u"జూలై", u"ఆగష్టు", u"సెప్టెంబర్", u"అక్టోబర్", u"నవంబర్", u"డిసెంబర్"] ),
'th' : lambda v: slh( v, [u"มกราคม", u"กุมภาพันธ์", u"มีนาคม", u"เมษายน", u"พฤษภาคม", u"มิถุนายน", u"กรกฎาคม", u"สิงหาคม", u"กันยายน", u"ตุลาคม", u"พฤศจิกายน", u"ธันวาคม"] ),
'tl' : lambda v: slh( v, [u"Enero", u"Pebrero", u"Marso", u"Abril", u"Mayo", u"Hunyo", u"Hulyo", u"Agosto", u"Setyembre", u"Oktubre", u"Nobyembre", u"Disyembre"] ),
'tpi': lambda v: slh( v, [u"Janueri", u"Februeri", u"Mas", u"Epril", u"Me", u"Jun", u"Julai", u"Ogas", u"Septemba", u"Oktoba", u"Novemba", u"Disemba"] ),
'tr' : lambda v: slh( v, [u"Ocak", u"Şubat", u"Mart", u"Nisan", u"Mayıs", u"Haziran", u"Temmuz", u"Ağustos", u"Eylül", u"Ekim", u"Kasım", u"Aralık"] ),
'tt' : lambda v: slh( v, [u"Ğínwar", u"Febräl", u"Mart", u"Äpril", u"May", u"Yün", u"Yül", u"August", u"Sentäber", u"Öktäber", u"Nöyäber", u"Dekäber"] ),
'uk' : lambda v: slh( v, [u"січень", u"лютий", u"березень", u"квітень", u"травень", u"червень", u"липень", u"серпень", u"вересень", u"жовтень", u"листопад", u"грудень"] ),
'ur' : lambda v: slh( v, [u"جنوری", u"فروری", u"مارچ", u"اپريل", u"مئ", u"جون", u"جولائ", u"اگست", u"ستمبر", u"اکتوبر", u"نومبر", u"دسمبر"] ),
'vec': lambda v: slh( v, [u"genaro", u"febraro", u"marzso", u"apriłe", u"majo", u"giugno", u"lujo", u"agosto", u"setenbre", u"otobre", u"novenbre", u"diçenbre"] ),
'vi' : lambda v: slh( v, [u"tháng một", u"tháng hai", u"tháng ba", u"tháng tư", u"tháng năm", u"tháng sáu", u"tháng bảy", u"tháng tám", u"tháng chín", u"tháng mười", u"tháng mười một", u"tháng 12"] ),
'vo' : lambda v: slh( v, [u"Yanul", u"Febul", u"Mäzul", u"Prilul", u"Mayul", u"Yunul", u"Yulul", u"Gustul", u"Setul", u"Tobul", u"Novul", u"Dekul"] ),
'wa' : lambda v: slh( v, [u"djanvî", u"fevrî", u"Måss (moes)", u"avri", u"may", u"djun", u"djulete", u"awousse", u"setimbe", u"octôbe", u"nôvimbe", u"decimbe"] ),
'zh' : lambda v: slh( v, makeMonthList( u"%d月" )),
'zh-min-nan': lambda v: slh( v, [u"It-goe̍h", u"Jī-goe̍h", u"Saⁿ-goe̍h", u"Sì-goe̍h", u"Gō·-goe̍h", u"La̍k-goe̍h", u"Chhit-goe̍h", u"Peh-goe̍h", u"Káu-goe̍h", u"Cha̍p-goe̍h", u"Cha̍p-it-goe̍h", u"Cha̍p-jī-goe̍h"] ),
},
'Number': {
'ar' : lambda v: dh_number( v, u'%d (عدد)' ),
'be' : lambda v: dh_number( v, u'%d (лік)' ),
'bg' : lambda v: dh_number( v, u'%d (число)' ),
'bs' : lambda v: dh_number( v, u'%d (broj)' ),
'cs' : lambda v: dh_number( v, u'%d (číslo)' ),
'da' : lambda v: dh_number( v, u'%d (tal)' ),
'en' : lambda v: dh_number( v, u'%d (number)' ),
'fa' : lambda v: dh_number( v, u'%d (عدد)' ),
'fi' : lambda v: dh_number( v, u'%d (luku)' ),
'fr' : lambda v: dh_number( v, u'%d (nombre)' ),
'he' : lambda v: dh_number( v, u'%d (מספר)' ),
'hu' : lambda v: dh_number( v, u'%d (szám)' ),
'ia' : lambda v: dh_number( v, u'%d (numero)' ),
'ja' : lambda v: dh_number( v, u'%d' ),
'ko' : lambda v: dh_number( v, u'%d' ),
'ksh': lambda v: dh_number( v, u'%d (Zahl)' ),
'la' : lambda v: dh_number( v, u'%d' ),
'lt' : lambda v: dh_number( v, u'%d (skaičius)' ),
'nds': lambda v: dh_number( v, u'%d (Tall)' ),
'nl' : lambda v: dh_number( v, u'%d (getal)' ),
'nn' : lambda v: dh_number( v, u'Talet %d' ),
'no' : lambda v: dh_number( v, u'%d (tall)' ),
'nso' : lambda v: dh_number( v, u'%d (nomoro)' ),
'pl' : lambda v: dh_number( v, u'%d (liczba)' ),
'ro' : lambda v: dh_number( v, u'%d (cifră)' ),
'ru' : lambda v: dh_number( v, u'%d (число)' ),
'sk' : lambda v: dh_number( v, u'%d (číslo)' ),
'sl' : lambda v: dh_number( v, u'%d (število)' ),
'sr' : lambda v: dh_number( v, u'%d (број)' ),
'sv' : lambda v: dh_number( v, u'%d (tal)' ),
'th' : lambda v: dh_number( v, u'%d' ), # was %d (จำนวน)
'tl' : lambda v: dh_number( v, u'%d (bilang)' ),
'tr' : lambda v: dh_number( v, u'%d (sayı)' ),
'zh' : lambda v: dh_number( v, u'%d' ),
},
'YearAD': {
'af' : dh_simpleYearAD,
'als': dh_simpleYearAD,
'an' : dh_simpleYearAD,
'ang': dh_simpleYearAD,
'ar' : dh_simpleYearAD,
'ast': dh_simpleYearAD,
'az' : dh_simpleYearAD,
'be' : dh_simpleYearAD,
'bg' : dh_simpleYearAD,
'bn' : lambda v: dh_yearAD( v, u'%B' ),
'br' : dh_simpleYearAD,
'bs' : dh_simpleYearAD,
'ca' : dh_simpleYearAD,
'ceb': dh_simpleYearAD,
'cs' : dh_simpleYearAD,
'csb': dh_simpleYearAD,
'cv' : dh_simpleYearAD,
'cy' : dh_simpleYearAD,
'da' : dh_simpleYearAD,
'de' : dh_simpleYearAD,
'el' : dh_simpleYearAD,
'en' : dh_simpleYearAD,
'eo' : dh_simpleYearAD,
'es' : dh_simpleYearAD,
'et' : dh_simpleYearAD,
'eu' : dh_simpleYearAD,
'fa' : lambda v: dh_yearAD( v, u'%F (میلادی)' ),
'fi' : dh_simpleYearAD,
'fo' : dh_simpleYearAD,
'fr' : dh_simpleYearAD,
'fur': dh_simpleYearAD,
'fy' : dh_simpleYearAD,
'ga' : dh_simpleYearAD,
'gan' : lambda v: dh_yearAD( v, u'%d年' ),
'gd' : dh_simpleYearAD,
'gl' : dh_simpleYearAD,
'gu' : lambda v: dh_yearAD( v, u'%G' ),
'he' : dh_simpleYearAD,
'hi' : lambda v: dh_yearAD( v, u'%H' ),
'hr' : lambda v: dh_yearAD( v, u'%d.' ),
'hu' : dh_simpleYearAD,
'hy' : dh_simpleYearAD,
'ia' : dh_simpleYearAD,
'id' : dh_simpleYearAD,
'ie' : dh_simpleYearAD,
'ilo': dh_simpleYearAD,
'io' : dh_simpleYearAD,
'is' : dh_simpleYearAD,
'it' : dh_simpleYearAD,
'ja' : lambda v: dh_yearAD( v, u'%d年' ),
'jbo': lambda v: dh_yearAD( v, u'%dmoi nanca' ),
'ka' : dh_simpleYearAD,
'kn' : lambda v: dh_yearAD( v, u'%K' ),
'ko' : lambda v: dh_yearAD( v, u'%d년' ),
'ksh': lambda v: dh_yearAD( v, u'Joohr %d' ),
'ku' : dh_simpleYearAD,
'kw' : dh_simpleYearAD,
'la' : dh_simpleYearAD,
'lb' : dh_simpleYearAD,
'li' : dh_simpleYearAD,
'lt' : dh_simpleYearAD,
'lv' : dh_simpleYearAD,
'mi' : dh_simpleYearAD,
'mhr': dh_simpleYearAD,
'mk' : dh_simpleYearAD,
'ml' : dh_simpleYearAD,
'mo' : dh_simpleYearAD,
'mr' : lambda v: dh_yearAD( v, u'ई.स. %H' ),
'ms' : dh_simpleYearAD,
'na' : dh_simpleYearAD,
'nap': dh_simpleYearAD,
'nds': dh_simpleYearAD,
'nl' : dh_simpleYearAD,
'nn' : dh_simpleYearAD,
'no' : dh_simpleYearAD,
'nso' : dh_simpleYearAD,
'oc' : dh_simpleYearAD,
'os' : dh_simpleYearAD,
'pdc' : dh_simpleYearAD,
'pl' : dh_simpleYearAD,
'pt' : dh_simpleYearAD,
'rm' : dh_simpleYearAD,
'ro' : dh_simpleYearAD,
'roa-rup' : dh_simpleYearAD,
'ru' : lambda v: dh_yearAD( v, u'%d год' ),
'sco': dh_simpleYearAD,
'scn': dh_simpleYearAD,
'se' : dh_simpleYearAD,
'sh' : dh_simpleYearAD,
'simple' : dh_simpleYearAD,
'sk' : dh_simpleYearAD,
'sl' : dh_simpleYearAD,
'sm' : dh_simpleYearAD,
'sq' : dh_simpleYearAD,
'sr' : dh_simpleYearAD,
'sv' : dh_simpleYearAD,
'su' : dh_simpleYearAD,
'ta' : dh_simpleYearAD,
'te' : dh_simpleYearAD,
#2005 => 'พ.ศ. 2548'
'th' : lambda v: dh_yearAD( v, u'พ.ศ. %T' ),
'tl' : dh_simpleYearAD,
'tpi': dh_simpleYearAD,
'tr' : dh_simpleYearAD,
'tt' : dh_simpleYearAD,
'uk' : dh_simpleYearAD,
'ur' : lambda v: dh_yearAD( v, u'%dسبم' ),
'uz' : dh_simpleYearAD,
'vec': dh_simpleYearAD,
'vi' : dh_simpleYearAD,
'vo' : dh_simpleYearAD,
'wa' : dh_simpleYearAD,
'zh' : lambda v: dh_yearAD( v, u'%d年' ),
'zh-min-nan' : lambda v: dh_yearAD( v, u'%d nî' ),
},
'YearBC': {
'af' : lambda v: dh_yearBC( v, u'%d v.C.' ),
'ast': lambda v: dh_yearBC( v, u'%d edC' ),
'be' : lambda v: dh_yearBC( v, u'%d да н.э.' ),
'bg' : lambda v: dh_yearBC( v, u'%d г. пр.н.е.' ),
'bs' : lambda v: dh_yearBC( v, u'%d p.n.e.' ),
'ca' : lambda v: dh_yearBC( v, u'%d aC' ),
'cs' : lambda v: dh_yearBC( v, u'%d př. n. l.' ),
'cy' : lambda v: dh_yearBC( v, u'%d CC' ),
'da' : lambda v: dh_yearBC( v, u'%d f.Kr.' ),
'de' : lambda v: dh_yearBC( v, u'%d v. Chr.' ),
'el' : lambda v: dh_yearBC( v, u'%d π.Χ.' ),
'en' : lambda v: dh_yearBC( v, u'%d BC' ),
'eo' : lambda v: dh_yearBC( v, u'-%d' ),
'es' : lambda v: dh_yearBC( v, u'%d a. C.' ),
'et' : lambda v: dh_yearBC( v, u'%d eKr' ),
'eu' : lambda v: dh_yearBC( v, u'K. a. %d' ),
'fa' : lambda v: dh_yearBC( v, u'%d (پیش از میلاد)' ),
'fi' : lambda v: dh_yearBC( v, u'%d eaa.' ),
'fo' : lambda v: dh_yearBC( v, u'%d f. Kr.' ),
'fr' : lambda v: dh_yearBC( v, u'%d av. J.-C.'),
'gl' : lambda v: dh_yearBC( v, u'-%d' ),
'he' : lambda v: dh_yearBC( v, u'%d לפני הספירה' ),
'hr' : lambda v: dh_yearBC( v, u'%d. pr. Kr.' ),
'hu' : lambda v: dh_yearBC( v, u'I. e. %d' ),
'id' : lambda v: dh_yearBC( v, u'%d SM' ),
'io' : lambda v: dh_yearBC( v, u'%d aK' ),
'is' : lambda v: dh_yearBC( v, u'%d f. Kr.' ),
'it' : lambda v: dh_yearBC( v, u'%d a.C.' ),
'ka' : lambda v: dh_yearBC( v, u'ძვ. წ. %d' ),
'ko' : lambda v: dh_yearBC( v, u'기원전 %d년' ),
'ksh': lambda v: dh_yearBC( v, u'Joohr %d füür Krėßtůß'),
'la' : lambda v: dh_yearBC( v, u'%d a.C.n.' ),
'lb' : lambda v: dh_yearBC( v, u'-%d' ),
'lt' : lambda v: dh_yearBC( v, u'%d m. pr. m. e.'),
'lv' : lambda v: dh_yearBC( v, u'%d p.m.ē.'),
'mk' : lambda v: dh_yearBC( v, u'%d п.н.е.'),
'ms' : lambda v: dh_yearBC( v, u'%d SM' ),
'nap': lambda v: dh_yearBC( v, u'%d AC' ),
'nds': lambda v: dh_yearBC( v, u'%d v. Chr.' ),
'nl' : lambda v: dh_yearBC( v, u'%d v.Chr.' ),
'nn' : lambda v: dh_yearBC( v, u'-%d' ),
'no' : lambda v: dh_yearBC( v, u'%d f.Kr.' ),
'oc' : lambda v: dh_yearBC( v, u'-%d' ),
'pl' : lambda v: dh_yearBC( v, u'%d p.n.e.' ),
'pt' : lambda v: dh_yearBC( v, u'%d a.C.' ),
'ro' : lambda v: dh_yearBC( v, u'%d î.Hr.' ),
'ru' : lambda v: dh_yearBC( v, u'%d год до н. э.' ),
'scn': lambda v: dh_yearBC( v, u'%d a.C.' ),
'simple' : lambda v: dh_yearBC( v, u'%d BC' ),
'sk' : lambda v: dh_yearBC( v, u'%d pred Kr.' ),
'sl' : lambda v: dh_yearBC( v, u'%d pr. n. št.' ),
'sq' : lambda v: dh_yearBC( v, u'%d p.e.s.' ),
'sr' : lambda v: dh_yearBC( v, u'%d. п. н. е.' ),
'sv' : lambda v: dh_yearBC( v, u'%d f.Kr.' ),
'sw' : lambda v: dh_yearBC( v, u'%d KK' ),
'ta' : lambda v: dh_yearBC( v, u'கி.மு %d' ),
'tr' : lambda v: dh_yearBC( v, u'M.Ö. %d' ),
'tt' : lambda v: dh_yearBC( v, u'MA %d' ),
'uk' : lambda v: dh_yearBC( v, u'%d до н. е.' ),
'uz' : lambda v: dh_yearBC( v, u'Mil. av. %d' ),
'vec': lambda v: dh_yearBC( v, u'%d a.C.' ),
'vo' : lambda v: dh_yearBC( v, u'%d b.K.' ),
'zh' : lambda v: dh_yearBC( v, u'前%d年' ),
},
'DecadeAD': {
'als': lambda v: dh_decAD( v, u'%der' ),
'ar' : lambda v: dh_decAD( v, u'%d عقد' ),
'ast': lambda v: dh_decAD( v, u'Años %d' ),
'ang': lambda v: dh_decAD( v, u'%de' ),
'ast': lambda v: dh_decAD( v, u'Años %d' ),
'bg' : lambda v: dh_decAD( v, u'%d-те' ),
'br' : lambda v: dh_decAD( v, u'Bloavezhioù %d' ),
'bs' : lambda v: dh_decAD( v, u'%dte' ),
# Unknown what the pattern is, but 1970 is different
'ca' : lambda m: multi( m, [
(lambda v: dh_decAD( v, u'Dècada de %d' ), lambda p: p == 1970),
(lambda v: dh_decAD( v, u'Dècada del %d' ), alwaysTrue)]),
#1970s => '1970-1979'
'cs' : lambda m: multi( m, [
(lambda v: dh_constVal( v, 1, u'1-9'), lambda p: p == 1),
(lambda v: dh( v, u'%d-%d', lambda i: (encDec0(i),encDec0(i)+9), decSinglVal ), alwaysTrue)]),
'cy' : lambda v: dh_decAD( v, u'%dau' ),
'da' : lambda v: dh_decAD( v, u"%d'erne" ),
'de' : lambda v: dh_decAD( v, u'%der' ),
'el' : lambda v: dh_decAD( v, u'Δεκαετία %d' ),
'en' : lambda v: dh_decAD( v, u'%ds' ),
'eo' : lambda v: dh_decAD( v, u'%d-aj jaroj' ),
'es' : lambda v: dh_decAD( v, u'Años %d' ),
'et' : lambda v: dh_decAD( v, u'%d. aastad' ),
'fa' : lambda v: dh_decAD( v, u'دهه %d (میلادی)' ),
# decades ending in 00 are spelled differently
'fi' : lambda m: multi( m, [
(lambda v: dh_constVal( v, 0, u'Ensimmäinen vuosikymmen'), lambda p: p == 0),
(lambda v: dh_decAD( v, u'%d-luku' ), lambda p: (p % 100 != 0)),
(lambda v: dh_decAD( v, u'%d-vuosikymmen' ), alwaysTrue)]),
'fo' : lambda v: dh_decAD( v, u'%d-árini' ),
'fr' : lambda v: dh_decAD( v, u'Années %d' ),
'ga' : lambda v: dh_decAD( v, u'%didí' ),
'gan': lambda v: dh_decAD( v, u'%d年代' ),
'he' : lambda m: multi( m, [
(lambda v: dh( v, u'שנות ה־%d', lambda i: encDec0(i)%100, lambda ii: 1900 + ii[0] ), lambda p: p >= 1900 and p < 2000),
# This is a dummy value, just to avoid validation testing.
(lambda v: dh_decAD( v, u'%dth decade' ), alwaysTrue)]), # ********** ERROR!!!
'hi' : lambda v: dh_decAD( v, u'%H का दशक' ),
#1970s => 1970-1979
'hr' : lambda m: multi( m, [
(lambda v: dh_constVal( v, 1, u'1-9'), lambda p: p == 1),
(lambda v: dh( v, u'%d-%d', lambda i: (encDec0(i),encDec0(i)+9), lambda ii: ii[0] ), alwaysTrue)]),
'hu' : lambda m: multi( m, [
(lambda v: dh_constVal( v, 1, u'0-s évek'), lambda p: p == 1),
(lambda v: dh_decAD( v, u'%d-as évek' ), lambda p: (p % 100 / 10) in [0,2,3,6,8]),
(lambda v: dh_decAD( v, u'%d-es évek' ), alwaysTrue)]),
'io' : lambda v: dh_decAD( v, u'%da yari' ),
#1970s => '1971–1980'
'is' : lambda v: dh( v, u'%d–%d', lambda i: (encDec1(i),encDec1(i)+9), lambda ii: ii[0]-1 ),
'it' : lambda v: dh_decAD( v, u'Anni %d' ),
'ja' : lambda v: dh_decAD( v, u'%d年代' ),
'ka' : lambda v: dh_decAD( v, u'%d-ები' ),
'ko' : lambda v: dh_decAD( v, u'%d년대' ),
'ksh': lambda v: dh_decAD( v, u'%d-er Joohre' ),
#1970s => 'Decennium 198' (1971-1980)
'la' : lambda v: dh( v, u'Decennium %d', lambda i: encDec1(i)/10+1, lambda ii: (ii[0]-1)*10 ),
#1970s => 'XX amžiaus 8-as dešimtmetis' (1971-1980)
'lt' : lambda v: dh( v, u'%R amžiaus %d-as dešimtmetis',
lambda i: (encDec1(i)/100+1, encDec1(i)%100/10+1),
lambda v: (v[0]-1)*100 + (v[1]-1)*10 ),
#1970s => 'Ngahurutanga 198' (1971-1980)
'mi' : lambda v: dh( v, u'Ngahurutanga %d', lambda i: encDec0(i)/10+1, lambda ii: (ii[0]-1)*10 ),
'mhr': lambda v: dh_decAD( v, u'%d ийла' ),
#1970s => '1970-1979'
'nl' : lambda m: multi( m, [
(lambda v: dh_constVal( v, 1, u'1-9'), lambda p: p == 1),
(lambda v: dh( v, u'%d-%d', lambda i: (encDec0(i),encDec0(i)+9), decSinglVal ), alwaysTrue)]),
'nn' : lambda v: dh_decAD( v, u'%d0-åra' ), # FIXME: not sure of this one
'no' : lambda v: dh_decAD( v, u'%d-årene' ),
'os' : lambda v: dh_decAD( v, u'%d-тæ' ),
#1970s => 'Lata 70. XX wieku' for anything except 1900-1919, 2000-2019, etc, in which case its 'Lata 1900-1909'
'pl' : lambda m: multi( m, [
(lambda v: dh( v, u'Lata %d-%d', lambda i: (encDec0(i),encDec0(i)+9), decSinglVal ),
lambda p: p%100 >= 0 and p%100 < 20 ),
(lambda v: dh( v, u'Lata %d. %R wieku', lambda i: (encDec0(i)%100, encDec0(i)/100+1 ), lambda ii: (ii[1]-1)*100 + ii[0] ),
alwaysTrue)]),
'pt' : lambda v: dh_decAD( v, u'Década de %d' ),
'ro' : lambda v: dh_decAD( v, u'Anii %d' ),
'ro' : lambda m: multi( m, [
(lambda v: dh_constVal( v, 0, u'Primul deceniu d.Hr.'), lambda p: p == 0),
(lambda v: dh_decAD( v, u'Anii %d' ), alwaysTrue)]),
'ru' : lambda v: dh_decAD( v, u'%d-е' ),
'scn': lambda v: dh_decAD( v, u'%dini' ),
'simple' : lambda v: dh_decAD( v, u'%ds' ),
# 1970 => '70. roky 20. storočia'
'sk' : lambda v: dh( v, u'%d. roky %d. storočia',
lambda i: (encDec0(i)%100, encDec0(i)/100+1),
lambda ii: (ii[1]-1)*100 + ii[0] ),
'sl' : lambda v: dh_decAD( v, u'%d.' ),
'sq' : lambda v: dh_decAD( v, u'Vitet %d' ),
'sr' : lambda v: dh_decAD( v, u'%dе' ),
'sv' : lambda m: multi( m, [
(lambda v: dh_decAD( v, u'%d-talet (decennium)' ), lambda p: (p % 100 == 0)),
(lambda v: dh_decAD( v, u'%d-talet' ), alwaysTrue)]),
'tt' : lambda v: dh_decAD( v, u'%d. yıllar' ),
'uk' : lambda m: multi( m, [
(lambda v: dh_decAD( v, u'%d-ві' ), lambda p: p == 0 or (p % 100 == 40)),
(lambda v: dh_decAD( v, u'%d-ні' ), lambda p: p % 1000 == 0),
(lambda v: dh_decAD( v, u'%d-ті' ), alwaysTrue)]),
'ur' : lambda v: dh_decAD( v, u'%dدبم' ),
'wa' : lambda v: dh_decAD( v, u'Anêyes %d' ),
'zh' : lambda v: dh_decAD( v, u'%d年代' ),
'zh-min-nan' : lambda v: dh_decAD( v, u'%d nî-tāi' ),
},
'DecadeBC': {
'de' : lambda v: dh_decBC( v, u'%der v. Chr.' ),
'da' : lambda v: dh_decBC( v, u"%d'erne f.Kr." ),
'en' : lambda v: dh_decBC( v, u'%ds BC' ),
'es' : lambda v: dh_decBC( v, u'Años %d adC' ),
'et' : lambda v: dh_decBC( v, u'%d. aastad eKr' ),
'eu' : lambda v: dh_decBC( v, u'K. a. %dko hamarkada' ),
# decades ending in 00 are spelled differently
'fi' : lambda m: multi( m, [
(lambda v: dh_constVal( v, 0, u'Ensimmäinen vuosikymmen eaa.'), lambda p: p == 0),
(lambda v: dh_decBC( v, u'%d-luku eaa.' ), lambda p: (p % 100 != 0)),
(lambda v: dh_decBC( v, u'%d-vuosikymmen eaa.' ), alwaysTrue)]),
'fr' : lambda v: dh_decBC( v, u'Années -%d' ),
'he' : lambda v: dh_decBC( v, u'שנות ה־%d לפני הספירה' ),
'hr' : lambda v: dh_decBC( v, u'%dih p.n.e.' ),
'hu' : lambda m: multi(m, [
(lambda v: dh_constVal(v, 0, u'i. e. 0-s évek'),
lambda p: p == 0),
(lambda v: dh_decBC(v, u'i. e. %d-as évek' ),
lambda p: (p % 100 / 10) in [0,2,3,6,8]),
(lambda v: dh_decBC(v, u'i. e. %d-es évek'), alwaysTrue)]),
'it' : lambda v: dh_decBC( v, u'Anni %d a.C.' ),
'ka' : lambda v: dh_decBC( v, u'ძვ. წ. %d-ები' ),
'ksh': lambda v: dh_decBC( v, u'%d-er Joohre füür Krėßtůß'), # uncertain if that's right. might go to redirect.
# '19-10 v. Chr.'
'nl' : lambda m: multi( m, [
(lambda v: dh_constVal( v, 1, u'9-1 v.Chr.'), lambda p: p == 1),
(lambda v: dh( v, u'%d-%d v.Chr.', lambda i: (encDec0(i)+9,encDec0(i)), lambda ii: ii[1] ), alwaysTrue)]),
'pt' : lambda v: dh_decBC( v, u'Década de %d a.C.' ),
'ro' : lambda m: multi( m, [
(lambda v: dh_constVal( v, 0, u'Primul deceniu î.Hr.'), lambda p: p == 0),
(lambda v: dh_decBC( v, u'Anii %d î.Hr.' ), alwaysTrue)]),
'ru' : lambda v: dh_decBC( v, u'%d-е до н. э.' ),
'sl' : lambda v: dh_decBC( v, u'%d. pr. n. št.' ),
'sv' : lambda m: multi( m, [
(lambda v: dh_decBC( v, u'%d-talet f.Kr. (decennium)' ), lambda p: (p % 100 == 0)),
(lambda v: dh_decBC( v, u'%d-talet f.Kr.' ), alwaysTrue)]),
'tt' : lambda v: dh_decBC( v, u'MA %d. yıllar' ),
'uk' : lambda m: multi( m, [
(lambda v: dh_decBC( v, u'%d-ві до Р.Х.' ), lambda p: p == 0 or (p % 100 == 40)),
(lambda v: dh_decBC( v, u'%d-ті до Р.Х.' ), alwaysTrue)]),
'zh' : lambda v: dh_decBC( v, u'前%d年代' ),
},
'CenturyAD': {
'af' : lambda m: multi( m, [
(lambda v: dh_centuryAD( v, u'%dste eeu' ), lambda p: p in [1,8] or (p >= 20)),
(lambda v: dh_centuryAD( v, u'%dde eeu' ), alwaysTrue)]),
'als': lambda v: dh_centuryAD( v, u'%d. Jahrhundert' ),
'ang': lambda v: dh_centuryAD( v, u'%de gēarhundred' ),
'ar' : lambda v: dh_centuryAD( v, u'قرن %d' ),
'ast': lambda v: dh_centuryAD( v, u'Sieglu %R' ),
'be' : lambda v: dh_centuryAD( v, u'%d стагодзьдзе' ),
'bg' : lambda v: dh_centuryAD( v, u'%d век' ),
'br' : lambda m: multi( m, [
(lambda v: dh_constVal( v, 1, u'Iañ kantved'), lambda p: p == 1),
(lambda v: dh_constVal( v, 2, u'Eil kantved'), lambda p: p == 2),
(lambda v: dh_centuryAD( v, u'%Re kantved' ), lambda p: p in [2,3]),
(lambda v: dh_centuryAD( v, u'%Rvet kantved' ), alwaysTrue)]),
'bs' : lambda v: dh_centuryAD( v, u'%d. vijek' ),
'ca' : lambda v: dh_centuryAD( v, u'Segle %R' ),
'cs' : lambda v: dh_centuryAD( v, u'%d. století' ),
'cv' : lambda v: dh_centuryAD( v, u'%R ĕмĕр' ),
'cy' : lambda m: multi( m, [
(lambda v: dh_centuryAD( v, u'%deg ganrif' ), lambda p: p in [17,19]),
(lambda v: dh_centuryAD( v, u'%dain ganrif' ), lambda p: p == 21),
(lambda v: dh_centuryAD( v, u'%dfed ganrif' ), alwaysTrue)]),
'da' : lambda v: dh_centuryAD( v, u'%d00-tallet' ),
'de' : lambda v: dh_centuryAD( v, u'%d. Jahrhundert' ),
'el' : lambda m: multi( m, [
(lambda v: dh_centuryAD( v, u'%dός αιώνας' ), lambda p: p == 20),
(lambda v: dh_centuryAD( v, u'%dος αιώνας' ), alwaysTrue)]),
'en' : lambda m: multi( m, [
(lambda v: dh_centuryAD( v, u'%dst century' ), lambda p: p == 1 or (p > 20 and p%10 == 1)),
(lambda v: dh_centuryAD( v, u'%dnd century' ), lambda p: p == 2 or (p > 20 and p%10 == 2)),
(lambda v: dh_centuryAD( v, u'%drd century' ), lambda p: p == 3 or (p > 20 and p%10 == 3)),
(lambda v: dh_centuryAD( v, u'%dth century' ), alwaysTrue)]),
'eo' : lambda v: dh_centuryAD( v, u'%d-a jarcento' ),
'es' : lambda v: dh_centuryAD( v, u'Siglo %R' ),
'et' : lambda v: dh_centuryAD( v, u'%d. sajand' ),
'eu' : lambda v: dh_centuryAD( v, u'%R. mendea' ), # %R. mende
'fa' : lambda m: multi( m, [
(lambda v: dh_constVal( v, 20, u'سده ۲۰ (میلادی)'), lambda p: p == 20),
# This is a dummy value, just to avoid validation testing. Later, it should be replaced with a proper 'fa' titles
(lambda v: dh_centuryAD( v, u'سده %d (میلادی)' ), alwaysTrue)]), # ********** ERROR!!!
'fi' : lambda m: multi( m, [
(lambda v: dh_constVal( v, 1, u'Ensimmäinen vuosisata'), lambda p: p == 1),
(lambda v: dh( v, u'%d00-luku', lambda i: i-1, lambda ii: ii[0]+1 ), alwaysTrue)]),
'fo' : lambda v: dh_centuryAD( v, u'%d. øld' ),
'fr' : lambda m: multi( m, [
(lambda v: dh_centuryAD( v, u'%Rer siècle' ), lambda p: p == 1),
(lambda v: dh_centuryAD( v, u'%Re siècle' ), alwaysTrue)]),
'fy' : lambda v: dh_centuryAD( v, u'%de ieu' ),
'ga' : lambda v: dh_centuryAD( v, u'%dú haois' ),
'gl' : lambda v: dh_centuryAD( v, u'Século %R' ),
'he' : lambda v: dh_centuryAD( v, u'המאה ה־%d' ),
'hi' : lambda m: multi( m, [
(lambda v: dh_constVal( v, 20, u'बीसवी शताब्दी'), lambda p: p == 20),
# This is a dummy value, just to avoid validation testing. Later, it should be replaced with a proper 'fa' titles
(lambda v: dh_centuryAD( v, u'%dth century' ), alwaysTrue)]), # ********** ERROR!!!
'hr' : lambda v: dh_centuryAD( v, u'%d. stoljeće' ),
'hu' : lambda v: dh_centuryAD( v, u'%d. század' ),
'id' : lambda v: dh_centuryAD( v, u'Abad ke-%d' ),
'io' : lambda v: dh_centuryAD( v, u'%dma yar-cento' ),
'it' : lambda v: dh_centuryAD( v, u'%R secolo' ),
'is' : lambda v: dh_centuryAD( v, u'%d. öldin' ),
'ja' : lambda v: dh_centuryAD( v, u'%d世紀' ),
'jv' : lambda v: dh_centuryAD( v, u'Abad kaping %d' ),
'ka' : lambda v: dh_centuryAD( v, u'%R საუკუნე' ),
'ko' : lambda v: dh_centuryAD( v, u'%d세기' ),