7678: some fixes around gettext and messages handling
This commit is contained in:
@@ -46,6 +46,8 @@ import tempfile
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
from ..constfunc import conv_to_unicode
|
from ..constfunc import conv_to_unicode
|
||||||
|
from ..const import GRAMPS_LOCALE as glocale
|
||||||
|
_ = glocale.translation.gettext
|
||||||
|
|
||||||
def crop_percentage_to_subpixel(width, height, crop):
|
def crop_percentage_to_subpixel(width, height, crop):
|
||||||
"""
|
"""
|
||||||
|
@@ -46,6 +46,9 @@ from gramps.gen.plug.docbackend import DocBackend
|
|||||||
from gramps.plugins.lib.libhtml import Html, xml_lang
|
from gramps.plugins.lib.libhtml import Html, xml_lang
|
||||||
from gramps.gen.errors import ReportError
|
from gramps.gen.errors import ReportError
|
||||||
|
|
||||||
|
from gramps.const import GRAMPS_LOCALE as glocale
|
||||||
|
_ = glocale.translation.gettext
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
Reference in New Issue
Block a user