Fix some gettext warnings
svn: r20646
This commit is contained in:
parent
536d5f4f8b
commit
b4ca613e21
@ -38,6 +38,7 @@ import sys
|
||||
# Gramps Modules
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from gramps.gen.ggettext import gettext as _
|
||||
from gramps.gen.user import User
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
|
@ -26,6 +26,7 @@
|
||||
# GRAMPS modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from gramps.gen.ggettext import gettext as _
|
||||
from . import Rule
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
@ -35,6 +35,7 @@ LOG = logging.getLogger(".Db")
|
||||
# Gramps Modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from gramps.gen.ggettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -71,6 +71,8 @@ def _get_empty_endnote_numbers(obj):
|
||||
"""
|
||||
return ""
|
||||
|
||||
# avoid normal translation!
|
||||
##from gramps.gen.ggettext import gettext as _
|
||||
def _(message): return message
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
""" Unittest for testing POTFILES.in and Makefile contents """
|
||||
|
||||
# PYTHONPATH=/../src python po_test.py
|
||||
# PYTHONPATH=/../gramps python po_test.py
|
||||
|
||||
import unittest
|
||||
import os
|
||||
@ -168,8 +168,8 @@ def suite2():
|
||||
continue
|
||||
if glob.fnmatch.fnmatch(potfile,"*.py"):
|
||||
suite.addTest(TestGetText('test_gettext_py_%04d', potfile,
|
||||
["import gettext",
|
||||
"from gen.ggettext",
|
||||
["import gettext",
|
||||
"from gramps.gen.ggettext",
|
||||
"import sgettext"]))
|
||||
elif glob.fnmatch.fnmatch(potfile,"*.glade"):
|
||||
suite.addTest(TestGetText('test_gettext_glade_%04d', potfile,
|
||||
|
Loading…
Reference in New Issue
Block a user