* src/DateHandler.py: Don't force English parser if problem with
config value, but LANG is set properly svn: r3863
This commit is contained in:
parent
66d77d7700
commit
a161a842eb
@ -2,6 +2,8 @@
|
|||||||
* src/GrampsDbBase.py: move all thumbnail creation here to have
|
* src/GrampsDbBase.py: move all thumbnail creation here to have
|
||||||
a common thumbnail scheme.
|
a common thumbnail scheme.
|
||||||
* src/GrampsInMemDB.py: remove thumbnail handling, use base class
|
* src/GrampsInMemDB.py: remove thumbnail handling, use base class
|
||||||
|
* src/DateHandler.py: Don't force English parser if problem with
|
||||||
|
config value, but LANG is set properly
|
||||||
|
|
||||||
2005-01-02 Alex Roitman <shura@alex.neuro.umn.edu>
|
2005-01-02 Alex Roitman <shura@alex.neuro.umn.edu>
|
||||||
* src/Report.py: Add support for a semi-common 'dispf'.
|
* src/Report.py: Add support for a semi-common 'dispf'.
|
||||||
|
@ -37,7 +37,6 @@ import locale
|
|||||||
# GRAMPS modules
|
# GRAMPS modules
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import GrampsGconfKeys
|
|
||||||
import DateParser
|
import DateParser
|
||||||
import DateDisplay
|
import DateDisplay
|
||||||
|
|
||||||
@ -124,9 +123,14 @@ except:
|
|||||||
parser = DateParser.DateParser()
|
parser = DateParser.DateParser()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
import GrampsGconfKeys
|
||||||
val = GrampsGconfKeys.get_date_format(_lang_to_display[_lang].formats)
|
val = GrampsGconfKeys.get_date_format(_lang_to_display[_lang].formats)
|
||||||
|
except:
|
||||||
|
val = 0
|
||||||
|
|
||||||
|
try:
|
||||||
displayer = _lang_to_display[_lang](val)
|
displayer = _lang_to_display[_lang](val)
|
||||||
except:
|
except:
|
||||||
print "Date displayer for",_lang,"not available, using default"
|
print "Date displayer for",_lang,"not available, using default"
|
||||||
displayer = DateDisplay.DateDisplay(3)
|
displayer = DateDisplay.DateDisplay(val)
|
||||||
|
|
||||||
|
@ -96,17 +96,6 @@ _relcalc_class = Relationship.RelationshipCalculator
|
|||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
_unavailable = _("No description was provided"),
|
_unavailable = _("No description was provided"),
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Constants
|
|
||||||
#
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
DOCSTRING = "d"
|
|
||||||
IMAGE = "i"
|
|
||||||
TASK = "f"
|
|
||||||
TITLE = "t"
|
|
||||||
STATUS = "s"
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# PluginDialog interface class
|
# PluginDialog interface class
|
||||||
|
Loading…
Reference in New Issue
Block a user