mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
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/)
This commit is contained in:
parent
51fc3d7642
commit
a63b834c8c
1 changed files with 12 additions and 12 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue