7678: some fixes around gettext and messages handling
This commit is contained in:
parent
090721408b
commit
6e25dd83f5
@ -44,6 +44,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):
|
||||||
"""
|
"""
|
||||||
|
@ -44,6 +44,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
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
@ -631,9 +631,7 @@ gramps/plugins/quickview/samesurnames.py
|
|||||||
gramps/plugins/quickview/siblings.py
|
gramps/plugins/quickview/siblings.py
|
||||||
gramps/plugins/rel/relplugins.gpr.py
|
gramps/plugins/rel/relplugins.gpr.py
|
||||||
gramps/plugins/sidebar/sidebar.gpr.py
|
gramps/plugins/sidebar/sidebar.gpr.py
|
||||||
gramps/plugins/sidebar/categorysidebar.py
|
|
||||||
gramps/plugins/sidebar/dropdownsidebar.py
|
gramps/plugins/sidebar/dropdownsidebar.py
|
||||||
gramps/plugins/sidebar/expandersidebar.py
|
|
||||||
gramps/plugins/textreport/alphabeticalindex.py
|
gramps/plugins/textreport/alphabeticalindex.py
|
||||||
gramps/plugins/textreport/ancestorreport.py
|
gramps/plugins/textreport/ancestorreport.py
|
||||||
gramps/plugins/textreport/birthdayreport.py
|
gramps/plugins/textreport/birthdayreport.py
|
||||||
|
@ -494,6 +494,7 @@ gramps/plugins/rel/rel_sv.py
|
|||||||
# plugins/sidebar directory
|
# plugins/sidebar directory
|
||||||
#
|
#
|
||||||
gramps/plugins/sidebar/categorysidebar.py
|
gramps/plugins/sidebar/categorysidebar.py
|
||||||
|
gramps/plugins/sidebar/expandersidebar.py
|
||||||
gramps/plugins/sidebar/__init__.py
|
gramps/plugins/sidebar/__init__.py
|
||||||
#
|
#
|
||||||
# Development tools
|
# Development tools
|
||||||
|
Loading…
Reference in New Issue
Block a user