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:
@@ -29,7 +29,7 @@
|
||||
# Python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from gettext import gettext as _
|
||||
from gen.ggettext import gettext as _
|
||||
import traceback
|
||||
import os
|
||||
import sys
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
# standard python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from gettext import gettext as _
|
||||
from gen.ggettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import os
|
||||
from gettext import gettext as _
|
||||
from gen.ggettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
Provide utilities for printing endnotes in text reports.
|
||||
"""
|
||||
from gen.plug.docgen import FontStyle, ParagraphStyle, FONT_SANS_SERIF
|
||||
from gettext import gettext as _
|
||||
from gen.ggettext import gettext as _
|
||||
|
||||
def add_endnote_styles(style_sheet):
|
||||
"""
|
||||
|
||||
@@ -33,7 +33,7 @@ import tempfile
|
||||
import threading
|
||||
import time
|
||||
from types import ClassType, InstanceType
|
||||
from gettext import gettext as _
|
||||
from gen.ggettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
#
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
# Python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gen.ggettext import sgettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#-------------------------------------------------------------------------
|
||||
import os
|
||||
from types import ClassType
|
||||
from gettext import gettext as _
|
||||
from gen.ggettext import gettext as _
|
||||
|
||||
import logging
|
||||
LOG = logging.getLogger(".")
|
||||
|
||||
@@ -33,7 +33,7 @@ A collection of utilities to aid in the generation of reports.
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import os
|
||||
from gettext import gettext as _
|
||||
from gen.ggettext import gettext as _
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
# $Id$
|
||||
|
||||
from gettext import gettext as _
|
||||
from gen.ggettext import gettext as _
|
||||
|
||||
import gtk
|
||||
import gobject
|
||||
|
||||
@@ -31,7 +31,7 @@ Paragraph/Font style editor
|
||||
# Python modules
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gen.ggettext import sgettext as _
|
||||
import logging
|
||||
log = logging.getLogger(".")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user