Move gettext, ngettext and sgettext calls into the new ggettext module. All of them return unicode all of the time.

svn: r14091
This commit is contained in:
Brian Matherly
2010-01-18 04:42:17 +00:00
parent 1b8706eaf1
commit f04880ec09
495 changed files with 600 additions and 604 deletions

View File

@@ -28,7 +28,7 @@ Display references for any object
"""
from Simple import SimpleAccess, SimpleDoc, SimpleTable
from gettext import gettext as _
from gen.ggettext import gettext as _
import DateHandler
import gen.lib
import config

View File

@@ -23,7 +23,7 @@
#
from Simple import SimpleAccess, SimpleDoc, SimpleTable
from gettext import gettext as _
from gen.ggettext import gettext as _
def run(database, document, attribute, value=None):
sdb = SimpleAccess(database)

View File

@@ -34,8 +34,8 @@ from gen.lib import Person
import DateHandler
import posixpath
from TransUtils import sgettext as _
from gettext import ngettext
from gen.ggettext import sgettext as _
from gen.ggettext import ngettext
fname_map = {'all people': _('Filtering_on|all people'),
'males': _('Filtering_on|males'),

View File

@@ -27,7 +27,7 @@ Display all events on a particular day.
"""
from Simple import SimpleAccess, SimpleDoc, SimpleTable
from gettext import gettext as _
from gen.ggettext import gettext as _
import gen.lib
def get_ref(db, objclass, handle):

View File

@@ -27,7 +27,7 @@ Display references for any object
"""
from Simple import SimpleAccess, SimpleDoc, SimpleTable
from gettext import gettext as _
from gen.ggettext import gettext as _
def get_ref(db, objclass, handle):
"""

View File

@@ -32,7 +32,7 @@ Display RepoRef for sources related to active repository
"""
from Simple import SimpleAccess, SimpleDoc, SimpleTable
from gettext import gettext as _
from gen.ggettext import gettext as _
def run(database, document, repo):
"""

View File

@@ -28,8 +28,8 @@ Display a people who have a person's same surname or given name.
"""
from Simple import SimpleAccess, SimpleDoc, SimpleTable
from gettext import gettext as _
from gettext import ngettext
from gen.ggettext import gettext as _
from gen.ggettext import ngettext
import gen.lib
from Filters.Rules import Rule
from Filters import GenericFilterFactory

View File

@@ -27,7 +27,7 @@ Display a person's events, both personal and family
"""
from Simple import SimpleAccess, by_date, SimpleDoc, SimpleTable
from gettext import gettext as _
from gen.ggettext import gettext as _
def run(database, document, person):
"""

View File

@@ -32,7 +32,7 @@ Display a person's relations to the home person
#-------------------------------------------------------------------------
from Simple import SimpleAccess, SimpleDoc
from gettext import gettext as _
from gen.ggettext import gettext as _
import Relationship
# define the formatting string once as a constant. Since this is reused

View File

@@ -34,7 +34,7 @@ Display a person's father or mother lineage
import gen.lib
from Simple import SimpleAccess, SimpleDoc, SimpleTable
from gettext import gettext as _
from gen.ggettext import gettext as _
__FMT = "%-30s\t%-12s\t%-12s"
__FMT_REM = " %s: %s"

View File

@@ -28,7 +28,7 @@ Display a person's siblings in a report window
from Simple import SimpleAccess, SimpleDoc, SimpleTable
import Relationship
from gettext import gettext as _
from gen.ggettext import gettext as _
def run(database, document, person):
"""