Fix of first issue in 5194.
svn: r18105
This commit is contained in:
parent
b92831f10f
commit
5c7f6751af
@ -29,6 +29,7 @@ from gen.plug.docgen import FontStyle, ParagraphStyle, FONT_SANS_SERIF
|
|||||||
from gen.lib import NoteType, SourceRef
|
from gen.lib import NoteType, SourceRef
|
||||||
from gen.ggettext import gettext as _
|
from gen.ggettext import gettext as _
|
||||||
from Utils import confidence
|
from Utils import confidence
|
||||||
|
from DateHandler import displayer
|
||||||
|
|
||||||
def add_endnote_styles(style_sheet):
|
def add_endnote_styles(style_sheet):
|
||||||
"""
|
"""
|
||||||
@ -178,9 +179,9 @@ def _format_ref_text(ref, key):
|
|||||||
datepresent = True
|
datepresent = True
|
||||||
if datepresent:
|
if datepresent:
|
||||||
if ref.get_page():
|
if ref.get_page():
|
||||||
ref_txt = "%s - %s" % (ref.get_page(), str(date))
|
ref_txt = "%s - %s" % (ref.get_page(), displayer.display(date))
|
||||||
else:
|
else:
|
||||||
ref_txt = str(date)
|
ref_txt = displayer.display(date)
|
||||||
else:
|
else:
|
||||||
ref_txt = ref.get_page()
|
ref_txt = ref.get_page()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user