From a63b834c8c66ff3aa8844a2a9e5c5f361383ec58 Mon Sep 17 00:00:00 2001 From: David Date: Fri, 28 Aug 2015 08:26:24 +0200 Subject: [PATCH] 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/) --- server/datetemplate.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/server/datetemplate.py b/server/datetemplate.py index 33c69703..a461aac7 100644 --- a/server/datetemplate.py +++ b/server/datetemplate.py @@ -97,18 +97,18 @@ class DateEpoch(DateTemplate): class DateStrptime(DateTemplate): TABLE = dict() - TABLE["Jan"] = ["Sty"] - TABLE["Feb"] = [u"Fév", "Lut"] - TABLE["Mar"] = [u"Mär", "Mar"] - TABLE["Apr"] = ["Avr", "Kwi"] - TABLE["May"] = ["Mai", "Maj"] - TABLE["Jun"] = ["Lip"] - TABLE["Jul"] = ["Sie"] - TABLE["Aug"] = ["Aou", "Wrz"] - TABLE["Sep"] = ["Sie"] - TABLE["Oct"] = [u"Paź"] - TABLE["Nov"] = ["Lis"] - TABLE["Dec"] = [u"Déc", "Dez", "Gru"] + TABLE["Jan"] = ["Sty", "ene"] + TABLE["Feb"] = [u"Fév", "Lut", "feb"] + TABLE["Mar"] = [u"Mär", "Mar", "mar"] + TABLE["Apr"] = ["Avr", "Kwi", "abr"] + TABLE["May"] = ["Mai", "Maj", "may"] + TABLE["Jun"] = ["Lip", "jun"] + TABLE["Jul"] = ["Sie", "jul"] + TABLE["Aug"] = ["Aou", "Wrz", "ago"] + TABLE["Sep"] = ["Sie", "sep"] + TABLE["Oct"] = [u"Paź", "oct"] + TABLE["Nov"] = ["Lis", "nov"] + TABLE["Dec"] = [u"Déc", "Dez", "Gru", "dic"] def __init__(self): DateTemplate.__init__(self)