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

@@ -29,7 +29,7 @@
# Python modules
#
#-------------------------------------------------------------------------
from gettext import gettext as _
from gen.ggettext import gettext as _
import traceback
import os
import sys

View File

@@ -27,7 +27,7 @@
# standard python modules
#
#-------------------------------------------------------------------------
from gettext import gettext as _
from gen.ggettext import gettext as _
#-------------------------------------------------------------------------
#

View File

@@ -26,7 +26,7 @@
#
#-------------------------------------------------------------------------
import os
from gettext import gettext as _
from gen.ggettext import gettext as _
#-------------------------------------------------------------------------
#

View File

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

View File

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

View File

@@ -25,7 +25,7 @@
# Python modules
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gen.ggettext import sgettext as _
#-------------------------------------------------------------------------
#

View File

@@ -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(".")

View File

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

View File

@@ -20,7 +20,7 @@
# $Id$
from gettext import gettext as _
from gen.ggettext import gettext as _
import gtk
import gobject

View File

@@ -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(".")