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

@ -172,7 +172,7 @@ def suite2():
if glob.fnmatch.fnmatch(potfile,"*.py"):
suite.addTest(TestGetText('test_gettext_py_%04d', potfile,
["import gettext",
"from gettext",
"from gen.ggettext",
"import sgettext"]))
elif glob.fnmatch.fnmatch(potfile,"*.glade"):
suite.addTest(TestGetText('test_gettext_glade_%04d', potfile,

View File

@ -25,7 +25,7 @@
# Standard python modules
#
#-------------------------------------------------------------------------
from gettext import gettext as _
from gen.ggettext import gettext as _
import os
#-------------------------------------------------------------------------

View File

@ -54,7 +54,7 @@ import GrampsDisplay
import ListModel
import Utils
import const
from TransUtils import sgettext as _
from gen.ggettext import sgettext as _
#-------------------------------------------------------------------------
#

View File

@ -27,7 +27,7 @@ Handle the column ordering
# python modules
#
#-------------------------------------------------------------------------
from gettext import gettext as _
from gen.ggettext import gettext as _
import logging
#-------------------------------------------------------------------------

View File

@ -61,7 +61,7 @@ import gtk
# gramps modules
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gen.ggettext import sgettext as _
from gen.lib import Date
import DateHandler
import const

View File

@ -28,7 +28,7 @@
#
#-------------------------------------------------------------------------
from cStringIO import StringIO
from gettext import gettext as _
from gen.ggettext import gettext as _
import os
#-------------------------------------------------------------------------

View File

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

View File

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

View File

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

View File

@ -3,7 +3,7 @@
# Standard Python modules
#
#-------------------------------------------------------------------------
from gettext import gettext as _
from gen.ggettext import gettext as _
#-------------------------------------------------------------------------
#

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -28,7 +28,7 @@
# Standard Python modules
#
#-------------------------------------------------------------------------
from gettext import gettext as _
from gen.ggettext import gettext as _
#-------------------------------------------------------------------------
#

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -3,7 +3,7 @@
# Standard Python modules
#
#-------------------------------------------------------------------------
from gettext import gettext as _
from gen.ggettext import gettext as _
#-------------------------------------------------------------------------
#

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -28,7 +28,7 @@
# Standard Python modules
#
#-------------------------------------------------------------------------
from gettext import gettext as _
from gen.ggettext import gettext as _
#-------------------------------------------------------------------------
#

View File

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

View File

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

View File

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

View File

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

View File

@ -28,7 +28,7 @@
# Standard Python modules
#
#-------------------------------------------------------------------------
from gettext import gettext as _
from gen.ggettext import gettext as _
#-------------------------------------------------------------------------
#

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -3,7 +3,7 @@
# Standard Python modules
#
#-------------------------------------------------------------------------
from gettext import gettext as _
from gen.ggettext import gettext as _
#-------------------------------------------------------------------------
#

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -3,7 +3,7 @@
# Standard Python modules
#
#-------------------------------------------------------------------------
from gettext import gettext as _
from gen.ggettext import gettext as _
#-------------------------------------------------------------------------
#

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -27,7 +27,7 @@
#
#-------------------------------------------------------------------------
import re
from gettext import gettext as _
from gen.ggettext import gettext as _
#-------------------------------------------------------------------------
#

View File

@ -26,7 +26,7 @@
# Standard Python modules
#
#-------------------------------------------------------------------------
from gettext import gettext as _
from gen.ggettext import gettext as _
#-------------------------------------------------------------------------
#

View File

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

View File

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

View File

@ -3,7 +3,7 @@
# Standard Python modules
#
#-------------------------------------------------------------------------
from gettext import gettext as _
from gen.ggettext import gettext as _
#-------------------------------------------------------------------------
#

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -28,7 +28,7 @@
# Standard Python modules
#
#-------------------------------------------------------------------------
from gettext import gettext as _
from gen.ggettext import gettext as _
#-------------------------------------------------------------------------
#

Some files were not shown because too many files have changed in this diff Show More