7678: some fixes around gettext and messages handling

This commit is contained in:
Jérôme Rapinat
2014-06-07 13:06:00 +02:00
parent fa338e85a4
commit 6982d37427
2 changed files with 5 additions and 0 deletions

View File

@@ -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):
""" """

View File

@@ -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
#------------------------------------------------------------------------ #------------------------------------------------------------------------
# #