[Bug 6553] Get Datehandler base language from GRAMPS_LOCALE.calendar
svn: r21831
This commit is contained in:
@ -49,16 +49,13 @@ log = logging.getLogger(".gen.datehandler")
|
|||||||
from ._dateparser import DateParser
|
from ._dateparser import DateParser
|
||||||
from ._datedisplay import DateDisplay, DateDisplayEn
|
from ._datedisplay import DateDisplay, DateDisplayEn
|
||||||
from ..constfunc import win, cuni
|
from ..constfunc import win, cuni
|
||||||
|
from ..const import GRAMPS_LOCALE as glocale
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# Constants
|
# Constants
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
if not win():
|
LANG = glocale.calendar
|
||||||
LANG = locale.getlocale(locale.LC_TIME)[0]
|
|
||||||
else:
|
|
||||||
LANG = locale.getdefaultlocale(locale.LC_TIME)[0]
|
|
||||||
|
|
||||||
# If LANG contains ".UTF-8" use only the part to the left of "."
|
# If LANG contains ".UTF-8" use only the part to the left of "."
|
||||||
# Otherwise some date handler will not load.
|
# Otherwise some date handler will not load.
|
||||||
|
Reference in New Issue
Block a user