0003320: DateDisplay: incorrect index for short_months and long_months

svn: r13442
This commit is contained in:
Brian Matherly 2009-10-28 12:21:37 +00:00
parent 7a19720b01
commit 77847d37ba
18 changed files with 54 additions and 53 deletions

View File

@ -50,11 +50,11 @@ class DateDisplay(object):
"""
Base date display class.
"""
long_months = ( u"January", u"February", u"March", u"April", u"May",
long_months = ( u"", u"January", u"February", u"March", u"April", u"May",
u"June", u"July", u"August", u"September", u"October",
u"November", u"December" )
short_months = ( u"Jan", u"Feb", u"Mar", u"Apr", u"May", u"Jun", u"Jul",
short_months = ( u"", u"Jan", u"Feb", u"Mar", u"Apr", u"May", u"Jun", u"Jul",
u"Aug", u"Sep", u"Oct", u"Nov", u"Dec" )
_tformat = GrampsLocale.tformat

View File

@ -117,12 +117,12 @@ class DateDisplayCA(DateDisplay):
Catalan language date display class.
"""
# TODO: Translate these month strings:
long_months = ( u"January", u"February", u"March", u"April", u"May",
long_months = ( u"", u"January", u"February", u"March", u"April", u"May",
u"June", u"July", u"August", u"September", u"October",
u"November", u"December" )
short_months = ( u"Jan", u"Feb", u"Mar", u"Apr", u"May", u"Jun", u"Jul",
u"Aug", u"Sep", u"Oct", u"Nov", u"Dec" )
short_months = ( u"", u"Jan", u"Feb", u"Mar", u"Apr", u"May", u"Jun",
u"Jul", u"Aug", u"Sep", u"Oct", u"Nov", u"Dec" )
calendar = (
"", u" (Julià)", u" (Hebreu)",

View File

@ -103,12 +103,12 @@ class DateDisplayCZ(DateDisplay):
Czech language date display class.
"""
# TODO: Translate these month strings:
long_months = ( u"January", u"February", u"March", u"April", u"May",
long_months = ( u"", u"January", u"February", u"March", u"April", u"May",
u"June", u"July", u"August", u"September", u"October",
u"November", u"December" )
short_months = ( u"Jan", u"Feb", u"Mar", u"Apr", u"May", u"Jun", u"Jul",
u"Aug", u"Sep", u"Oct", u"Nov", u"Dec" )
short_months = ( u"", u"Jan", u"Feb", u"Mar", u"Apr", u"May", u"Jun",
u"Jul", u"Aug", u"Sep", u"Oct", u"Nov", u"Dec" )
calendar = (
"", u" (juliánský)", u" (hebrejský)",

View File

@ -138,12 +138,12 @@ class DateDisplayDE(DateDisplay):
German language date display class.
"""
# TODO: Translate these month strings:
long_months = ( u"January", u"February", u"March", u"April", u"May",
long_months = ( u"", u"January", u"February", u"March", u"April", u"May",
u"June", u"July", u"August", u"September", u"October",
u"November", u"December" )
short_months = ( u"Jan", u"Feb", u"Mar", u"Apr", u"May", u"Jun", u"Jul",
u"Aug", u"Sep", u"Oct", u"Nov", u"Dec" )
short_months = ( u"", u"Jan", u"Feb", u"Mar", u"Apr", u"May", u"Jun",
u"Jul", u"Aug", u"Sep", u"Oct", u"Nov", u"Dec" )
calendar = (
"", u" (julianisch)", u" (hebräisch)",

View File

@ -118,12 +118,13 @@ class DateDisplayES(DateDisplay):
Spanish language date display class.
"""
# TODO: Translate these month strings:
long_months = ( u"enero", u"febrero", u"marzo", u"abril", u"mayo",
long_months = ( u"", u"enero", u"febrero", u"marzo", u"abril", u"mayo",
u"junio", u"julio", u"agosto", u"septiembre", u"octubre",
u"noviembre", u"diciembre" )
short_months = ( u"enero", u"feb.", u"marzo", u"abr.", u"mayo", u"jun.",
u"jul.", u"agosto", u"set.", u"oct.", u"nov.", u"dic" )
short_months = ( u"", u"enero", u"feb.", u"marzo", u"abr.", u"mayo",
u"jun.", u"jul.", u"agosto", u"set.", u"oct.", u"nov.",
u"dic" )
calendar = (
"", u" (Juliano)", u" (Hebreo)",

View File

@ -117,12 +117,12 @@ class DateDisplayFI(DateDisplay):
Finnish language date display class.
"""
# TODO: Translate these month strings:
long_months = ( u"January", u"February", u"March", u"April", u"May",
long_months = ( u"", u"January", u"February", u"March", u"April", u"May",
u"June", u"July", u"August", u"September", u"October",
u"November", u"December" )
short_months = ( u"Jan", u"Feb", u"Mar", u"Apr", u"May", u"Jun", u"Jul",
u"Aug", u"Sep", u"Oct", u"Nov", u"Dec" )
short_months = ( u"", u"Jan", u"Feb", u"Mar", u"Apr", u"May", u"Jun",
u"Jul", u"Aug", u"Sep", u"Oct", u"Nov", u"Dec" )
calendar = ("",
u"(juliaaninen)",

View File

@ -241,12 +241,12 @@ class DateDisplayFR(DateDisplay):
French language date display class.
"""
# TODO: Translate these month strings:
long_months = ( u"January", u"February", u"March", u"April", u"May",
long_months = ( u"", u"January", u"February", u"March", u"April", u"May",
u"June", u"July", u"August", u"September", u"October",
u"November", u"December" )
short_months = ( u"Jan", u"Feb", u"Mar", u"Apr", u"May", u"Jun", u"Jul",
u"Aug", u"Sep", u"Oct", u"Nov", u"Dec" )
short_months = ( u"", u"Jan", u"Feb", u"Mar", u"Apr", u"May", u"Jun",
u"Jul", u"Aug", u"Sep", u"Oct", u"Nov", u"Dec" )
calendar = ("", u" (Julien)", u" (Hébreu)", u" (Révolutionnaire)",
u" (Perse)", u" (Islamique)", u" (Suédois)")

View File

@ -204,12 +204,12 @@ class DateDisplayHR(DateDisplay):
Croatian language date display class.
"""
# TODO: Translate these month strings:
long_months = ( u"January", u"February", u"March", u"April", u"May",
long_months = ( u"", u"January", u"February", u"March", u"April", u"May",
u"June", u"July", u"August", u"September", u"October",
u"November", u"December" )
short_months = ( u"Jan", u"Feb", u"Mar", u"Apr", u"May", u"Jun", u"Jul",
u"Aug", u"Sep", u"Oct", u"Nov", u"Dec" )
short_months = ( u"", u"Jan", u"Feb", u"Mar", u"Apr", u"May", u"Jun",
u"Jul", u"Aug", u"Sep", u"Oct", u"Nov", u"Dec" )
calendar = (
"", u" (julijanski)", u" (hebrejski)",

View File

@ -113,12 +113,12 @@ class DateDisplayIT(DateDisplay):
Italian language date display class.
"""
# TODO: Translate these month strings:
long_months = ( u"January", u"February", u"March", u"April", u"May",
long_months = ( u"", u"January", u"February", u"March", u"April", u"May",
u"June", u"July", u"August", u"September", u"October",
u"November", u"December" )
short_months = ( u"Jan", u"Feb", u"Mar", u"Apr", u"May", u"Jun", u"Jul",
u"Aug", u"Sep", u"Oct", u"Nov", u"Dec" )
short_months = ( u"", u"Jan", u"Feb", u"Mar", u"Apr", u"May", u"Jun",
u"Jul", u"Aug", u"Sep", u"Oct", u"Nov", u"Dec" )
calendar = (
"", u" (Giuliano)", u" (Ebraico)",

View File

@ -102,12 +102,12 @@ class DateDisplayLT(DateDisplay):
Lithuanian language date display class.
"""
# TODO: Translate these month strings:
long_months = ( u"January", u"February", u"March", u"April", u"May",
long_months = ( u"", u"January", u"February", u"March", u"April", u"May",
u"June", u"July", u"August", u"September", u"October",
u"November", u"December" )
short_months = ( u"Jan", u"Feb", u"Mar", u"Apr", u"May", u"Jun", u"Jul",
u"Aug", u"Sep", u"Oct", u"Nov", u"Dec" )
short_months = ( u"", u"Jan", u"Feb", u"Mar", u"Apr", u"May", u"Jun",
u"Jul", u"Aug", u"Sep", u"Oct", u"Nov", u"Dec" )
calendar = (
u"", u" (julijaus)",

View File

@ -106,12 +106,12 @@ class DateDisplayNb(DateDisplay):
Norwegian language date display class.
"""
# TODO: Translate these month strings:
long_months = ( u"January", u"February", u"March", u"April", u"May",
long_months = ( u"", u"January", u"February", u"March", u"April", u"May",
u"June", u"July", u"August", u"September", u"October",
u"November", u"December" )
short_months = ( u"Jan", u"Feb", u"Mar", u"Apr", u"May", u"Jun", u"Jul",
u"Aug", u"Sep", u"Oct", u"Nov", u"Dec" )
short_months = ( u"", u"Jan", u"Feb", u"Mar", u"Apr", u"May", u"Jun",
u"Jul", u"Aug", u"Sep", u"Oct", u"Nov", u"Dec" )
formats = (
u"ÅÅÅÅ-MM-DD (ISO)",

View File

@ -139,12 +139,12 @@ class DateDisplayNL(DateDisplay):
Dutch language date display class.
"""
# TODO: Translate these month strings:
long_months = ( u"January", u"February", u"March", u"April", u"May",
long_months = ( u"", u"January", u"February", u"March", u"April", u"May",
u"June", u"July", u"August", u"September", u"October",
u"November", u"December" )
short_months = ( u"Jan", u"Feb", u"Mar", u"Apr", u"May", u"Jun", u"Jul",
u"Aug", u"Sep", u"Oct", u"Nov", u"Dec" )
short_months = ( u"", u"Jan", u"Feb", u"Mar", u"Apr", u"May", u"Jun",
u"Jul", u"Aug", u"Sep", u"Oct", u"Nov", u"Dec" )
calendar = (
"", u" (juliaans)", u" (hebreeuws)",

View File

@ -140,12 +140,12 @@ class DateDisplayPL(DateDisplay):
Polish language date display class.
"""
# TODO: Translate these month strings:
long_months = ( u"January", u"February", u"March", u"April", u"May",
long_months = ( u"", u"January", u"February", u"March", u"April", u"May",
u"June", u"July", u"August", u"September", u"October",
u"November", u"December" )
short_months = ( u"Jan", u"Feb", u"Mar", u"Apr", u"May", u"Jun", u"Jul",
u"Aug", u"Sep", u"Oct", u"Nov", u"Dec" )
short_months = ( u"", u"Jan", u"Feb", u"Mar", u"Apr", u"May", u"Jun",
u"Jul", u"Aug", u"Sep", u"Oct", u"Nov", u"Dec" )
calendar = (
"", u" (juliański)", u" (hebrajski)",

View File

@ -117,12 +117,12 @@ class DateDisplayPT(DateDisplay):
Portuguese language date display class.
"""
# TODO: Translate these month strings:
long_months = ( u"January", u"February", u"March", u"April", u"May",
long_months = ( u"", u"January", u"February", u"March", u"April", u"May",
u"June", u"July", u"August", u"September", u"October",
u"November", u"December" )
short_months = ( u"Jan", u"Feb", u"Mar", u"Apr", u"May", u"Jun", u"Jul",
u"Aug", u"Sep", u"Oct", u"Nov", u"Dec" )
short_months = ( u"", u"Jan", u"Feb", u"Mar", u"Apr", u"May", u"Jun",
u"Jul", u"Aug", u"Sep", u"Oct", u"Nov", u"Dec" )
calendar = (
"", u" (Juliano)", u" (Hebreu)",

View File

@ -188,12 +188,12 @@ class DateDisplayRU(DateDisplay):
Russian language date display class.
"""
# TODO: Translate these month strings:
long_months = ( u"January", u"February", u"March", u"April", u"May",
long_months = ( u"", u"January", u"February", u"March", u"April", u"May",
u"June", u"July", u"August", u"September", u"October",
u"November", u"December" )
short_months = ( u"Jan", u"Feb", u"Mar", u"Apr", u"May", u"Jun", u"Jul",
u"Aug", u"Sep", u"Oct", u"Nov", u"Dec" )
short_months = ( u"", u"Jan", u"Feb", u"Mar", u"Apr", u"May", u"Jun",
u"Jul", u"Aug", u"Sep", u"Oct", u"Nov", u"Dec" )
calendar = (
u"",

View File

@ -105,12 +105,12 @@ class DateDisplaySK(DateDisplay):
Slovak language date display class.
"""
# TODO: Translate these month strings:
long_months = ( u"January", u"February", u"March", u"April", u"May",
long_months = ( u"", u"January", u"February", u"March", u"April", u"May",
u"June", u"July", u"August", u"September", u"October",
u"November", u"December" )
short_months = ( u"Jan", u"Feb", u"Mar", u"Apr", u"May", u"Jun", u"Jul",
u"Aug", u"Sep", u"Oct", u"Nov", u"Dec" )
short_months = ( u"", u"Jan", u"Feb", u"Mar", u"Apr", u"May", u"Jun",
u"Jul", u"Aug", u"Sep", u"Oct", u"Nov", u"Dec" )
calendar = (
"", u" (juliánský)", u" (hebrejský)",

View File

@ -235,12 +235,12 @@ class DateDisplaySR_latin(DateDisplay):
Serbian (latin) date display class
"""
# TODO: Translate these month strings:
long_months = ( u"January", u"February", u"March", u"April", u"May",
long_months = ( u"", u"January", u"February", u"March", u"April", u"May",
u"June", u"July", u"August", u"September", u"October",
u"November", u"December" )
short_months = ( u"Jan", u"Feb", u"Mar", u"Apr", u"May", u"Jun", u"Jul",
u"Aug", u"Sep", u"Oct", u"Nov", u"Dec" )
short_months = ( u"", u"Jan", u"Feb", u"Mar", u"Apr", u"May", u"Jun",
u"Jul", u"Aug", u"Sep", u"Oct", u"Nov", u"Dec" )
calendar = (
"", u" (julijanski)", u" (hebrejski)",

View File

@ -111,12 +111,12 @@ class DateDisplaySv(DateDisplay):
"""
Swedish language date display class.
"""
long_months = ( u"Januari", u"Februari", u"Mars", u"April", u"Maj",
long_months = ( u"", u"Januari", u"Februari", u"Mars", u"April", u"Maj",
u"Juni", u"Juli", u"Augusti", u"September", u"Oktober",
u"November", u"December" )
short_months = ( u"Jan", u"Feb", u"Mar", u"Apr", u"Maj", u"Jun", u"Jul",
u"Aug", u"Sep", u"Okt", u"Nov", u"Dec" )
short_months = ( u"", u"Jan", u"Feb", u"Mar", u"Apr", u"Maj", u"Jun",
u"Jul", u"Aug", u"Sep", u"Okt", u"Nov", u"Dec" )
formats = (
u"YYYY-MM-DD (ISO)",