Update datetemplate.py to add spanish month names

In order to correctly detect the spanish months it's mandatory to add their names in the dictionary table, as should be done with the rest of the supported languages (http://lh.2xlibre.net/values/abmon/)
pull/1172/head
David 2015-08-28 08:26:24 +02:00
parent 51fc3d7642
commit a63b834c8c
1 changed files with 12 additions and 12 deletions

View File

@ -97,18 +97,18 @@ class DateEpoch(DateTemplate):
class DateStrptime(DateTemplate): class DateStrptime(DateTemplate):
TABLE = dict() TABLE = dict()
TABLE["Jan"] = ["Sty"] TABLE["Jan"] = ["Sty", "ene"]
TABLE["Feb"] = [u"Fév", "Lut"] TABLE["Feb"] = [u"Fév", "Lut", "feb"]
TABLE["Mar"] = [u"Mär", "Mar"] TABLE["Mar"] = [u"Mär", "Mar", "mar"]
TABLE["Apr"] = ["Avr", "Kwi"] TABLE["Apr"] = ["Avr", "Kwi", "abr"]
TABLE["May"] = ["Mai", "Maj"] TABLE["May"] = ["Mai", "Maj", "may"]
TABLE["Jun"] = ["Lip"] TABLE["Jun"] = ["Lip", "jun"]
TABLE["Jul"] = ["Sie"] TABLE["Jul"] = ["Sie", "jul"]
TABLE["Aug"] = ["Aou", "Wrz"] TABLE["Aug"] = ["Aou", "Wrz", "ago"]
TABLE["Sep"] = ["Sie"] TABLE["Sep"] = ["Sie", "sep"]
TABLE["Oct"] = [u"Paź"] TABLE["Oct"] = [u"Paź", "oct"]
TABLE["Nov"] = ["Lis"] TABLE["Nov"] = ["Lis", "nov"]
TABLE["Dec"] = [u"Déc", "Dez", "Gru"] TABLE["Dec"] = [u"Déc", "Dez", "Gru", "dic"]
def __init__(self): def __init__(self):
DateTemplate.__init__(self) DateTemplate.__init__(self)