7678: some fixes around gettext and messages handling

This commit is contained in:
Jérôme Rapinat 2014-06-07 13:02:27 +02:00
parent 090721408b
commit 6e25dd83f5
4 changed files with 6 additions and 2 deletions

View File

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

View File

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

View File

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

View File

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