* src/DateHandler.py: Fallback to "C" locale instead of the ISO format. This currently basically falls back to en, but this could be enhanced by a translated fallback parser later.
svn: r4551
This commit is contained in:
parent
04ab8c1462
commit
1c8ab2cf56
@ -1,3 +1,8 @@
|
|||||||
|
2005-05-11 Martin Hawlisch <Martin.Hawlisch@gmx.de>
|
||||||
|
* src/DateHandler.py: Fallback to "C" locale instead of the ISO
|
||||||
|
format. This currently basically falls back to en, but this could
|
||||||
|
be enhanced by a translated fallback parser later.
|
||||||
|
|
||||||
2005-05-10 Don Allingham <don@gramps-project.org>
|
2005-05-10 Don Allingham <don@gramps-project.org>
|
||||||
* src/DbPrompter.py: add callback for progressbar
|
* src/DbPrompter.py: add callback for progressbar
|
||||||
* src/GrampsXMLDB.py: pass callback task
|
* src/GrampsXMLDB.py: pass callback task
|
||||||
|
@ -80,7 +80,7 @@ def get_date_formats():
|
|||||||
try:
|
try:
|
||||||
return _lang_to_display[_lang].formats
|
return _lang_to_display[_lang].formats
|
||||||
except:
|
except:
|
||||||
return DateDisplay.DateDisplay.formats
|
return _lang_to_display["C"].formats
|
||||||
|
|
||||||
def set_format(value):
|
def set_format(value):
|
||||||
try:
|
try:
|
||||||
@ -126,17 +126,19 @@ try:
|
|||||||
parser = _lang_to_parser[_lang]()
|
parser = _lang_to_parser[_lang]()
|
||||||
except:
|
except:
|
||||||
print "Date parser for",_lang,"not available, using default"
|
print "Date parser for",_lang,"not available, using default"
|
||||||
parser = DateParser.DateParser()
|
parser = _lang_to_parser["C"]()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import GrampsKeys
|
import GrampsKeys
|
||||||
val = GrampsKeys.get_date_format(_lang_to_display[_lang].formats)
|
val = GrampsKeys.get_date_format(_lang_to_display[_lang].formats)
|
||||||
except:
|
except:
|
||||||
|
try:
|
||||||
|
val = GrampsKeys.get_date_format(_lang_to_display["C"].formats)
|
||||||
|
except:
|
||||||
val = 0
|
val = 0
|
||||||
|
|
||||||
try:
|
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(val)
|
displayer = _lang_to_display["C"](val)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user