* various: Revert back to using gettext except for the modules that need context -- those will use TransUtils.sgettext

svn: r6282
This commit is contained in:
Alex Roitman 2006-04-06 22:02:46 +00:00
parent ecc87ea678
commit 57d6df04c9
159 changed files with 160 additions and 158 deletions

View File

@ -1,4 +1,6 @@
2006-04-06 Alex Roitman <shura@gramps-project.org>
* various: Revert back to using gettext except for the modules
that need context -- those will use TransUtils.sgettext
* src/Makefile.am (gdir_PYTHON): Add new files to the list.
* src/Editors/_EditLdsOrd.py (EditLdsOrd): Formatting.
* src/GrampsWidgets.py (MonitoredMenu): Factor out commong code.

View File

@ -36,7 +36,7 @@ import os
# internationalization
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
#-------------------------------------------------------------------------
#

View File

@ -33,7 +33,7 @@ Module responsible for handling the command line arguments for GRAMPS.
#-------------------------------------------------------------------------
import os
import getopt
from TransUtils import sgettext as _
from gettext import gettext as _
#-------------------------------------------------------------------------
#

View File

@ -25,7 +25,7 @@
# Standard python modules
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
import os
#-------------------------------------------------------------------------

View File

@ -30,7 +30,7 @@ __version__ = "$Revision$"
# Standard python modules
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
from cStringIO import StringIO
#-------------------------------------------------------------------------

View File

@ -29,7 +29,7 @@ import gtk.glade
import gc
import const
from TransUtils import sgettext as _
from gettext import gettext as _
#-------------------------------------------------------------------------
#

View File

@ -46,7 +46,7 @@ from Editors import EditEvent, DelEventQuery
# internationalization
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
column_names = [
_('Description'),

View File

@ -45,7 +45,7 @@ from QuestionDialog import QuestionDialog, ErrorDialog
# internationalization
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
column_names = [
_('ID'),

View File

@ -3,7 +3,7 @@
# Python modules
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
import gc
import re
import cgi

View File

@ -25,7 +25,7 @@
# Python modules
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
import gc
import re
import logging

View File

@ -44,7 +44,7 @@ from QuestionDialog import QuestionDialog, ErrorDialog
# internationalization
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
column_names = [
_('Title'),

View File

@ -25,7 +25,7 @@
# Python modules
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
from cgi import escape
#-------------------------------------------------------------------------

View File

@ -27,7 +27,7 @@
#
#------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
import cPickle as pickle
#-------------------------------------------------------------------------

View File

@ -46,7 +46,7 @@ from QuestionDialog import QuestionDialog, ErrorDialog
# internationalization
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
column_names = [
_('Place Name'),

View File

@ -47,7 +47,7 @@ from QuestionDialog import QuestionDialog, ErrorDialog
# internationalization
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
column_names = [
_('Name'),

View File

@ -47,7 +47,7 @@ from QuestionDialog import QuestionDialog, ErrorDialog
# internationalization
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
column_names = [
_('Title'),

View File

@ -41,7 +41,7 @@ __version__ = "$Revision$"
# Python modules
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
import gc
#-------------------------------------------------------------------------

View File

@ -33,7 +33,7 @@ __version__ = "$Revision$"
# python modules
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
#-------------------------------------------------------------------------
#

View File

@ -25,7 +25,7 @@
#
#-------------------------------------------------------------------------
import time
from TransUtils import sgettext as _
from gettext import gettext as _
import locale
import logging

View File

@ -34,7 +34,7 @@ from gtk.gdk import ACTION_COPY, BUTTON1_MASK
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
import pickle
try:

View File

@ -30,7 +30,7 @@ mechanism for the user to edit address information.
# Python modules
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
#-------------------------------------------------------------------------
#

View File

@ -33,7 +33,7 @@ __version__ = "$Revision$"
# Python modules
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
#-------------------------------------------------------------------------
#

View File

@ -25,7 +25,7 @@
# Python modules
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
try:
set()

View File

@ -25,7 +25,7 @@
# Python modules
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
try:
set()

View File

@ -26,7 +26,7 @@
#
#-------------------------------------------------------------------------
import cPickle as pickle
from TransUtils import sgettext as _
from gettext import gettext as _
#-------------------------------------------------------------------------
#

View File

@ -33,7 +33,7 @@ __version__ = "$Revision: 6248 $"
# Python modules
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
#-------------------------------------------------------------------------
#

View File

@ -38,7 +38,7 @@ import Utils
from _EditSecondary import EditSecondary
from GrampsWidgets import *
from TransUtils import sgettext as _
from gettext import gettext as _
#-------------------------------------------------------------------------
#

View File

@ -25,7 +25,7 @@
# Standard python modules
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
import os
#-------------------------------------------------------------------------

View File

@ -25,7 +25,7 @@
# Standard python modules
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
#-------------------------------------------------------------------------
#

View File

@ -25,7 +25,7 @@
# Standard python modules
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
#-------------------------------------------------------------------------
#

View File

@ -27,7 +27,7 @@
#-------------------------------------------------------------------------
import os
import locale
from TransUtils import sgettext as _
from gettext import gettext as _
from cgi import escape
#-------------------------------------------------------------------------

View File

@ -26,7 +26,7 @@
#
#-------------------------------------------------------------------------
import cPickle as pickle
from TransUtils import sgettext as _
from gettext import gettext as _
import logging
log = logging.getLogger(".")

View File

@ -20,7 +20,7 @@
# $Id$
from TransUtils import sgettext as _
from gettext import gettext as _
import ManagedWindow
import DateHandler

View File

@ -25,7 +25,7 @@
# Python modules
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
try:
set()

View File

@ -25,7 +25,7 @@
# Python modules
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
try:
set()

View File

@ -25,7 +25,7 @@
# Python modules
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
#-------------------------------------------------------------------------
#

View File

@ -20,7 +20,7 @@
# $Id$
from TransUtils import sgettext as _
from gettext import gettext as _
import ManagedWindow
import Config

View File

@ -25,7 +25,7 @@
# Python modules
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
import logging
log = logging.getLogger(".")

View File

@ -25,7 +25,7 @@
# Python modules
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
try:
set()

View File

@ -25,7 +25,7 @@
# python modules
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
from cgi import escape
#-------------------------------------------------------------------------

View File

@ -28,7 +28,7 @@
#
#-------------------------------------------------------------------------
import os
from TransUtils import sgettext as _
from gettext import gettext as _
#-------------------------------------------------------------------------
#

View File

@ -27,7 +27,7 @@
#-------------------------------------------------------------------------
import os
import sets
from TransUtils import sgettext as _
from gettext import gettext as _
#-------------------------------------------------------------------------
#

View File

@ -34,7 +34,7 @@ import os
import time
import locale
import sets
from TransUtils import sgettext as _
from gettext import gettext as _
from bsddb import dbshelve, db
import logging
log = logging.getLogger(".GrampsDb")

View File

@ -37,7 +37,7 @@ import locale
import re
from sys import maxint
import sets
from TransUtils import sgettext as _
from gettext import gettext as _
import logging
log = logging.getLogger(".GrampsDb")

View File

@ -34,7 +34,7 @@ import const
import lds
import time
from TransUtils import sgettext as _
from gettext import gettext as _
# and module sets for earlier pythons
try:

View File

@ -29,7 +29,7 @@
#
#-------------------------------------------------------------------------
import os
from TransUtils import sgettext as _
from gettext import gettext as _
import sets
#-------------------------------------------------------------------------

View File

@ -29,7 +29,7 @@ import os
import sets
import shutil
from xml.parsers.expat import ExpatError, ParserCreate
from TransUtils import sgettext as _
from gettext import gettext as _
import re
#------------------------------------------------------------------------

View File

@ -36,7 +36,7 @@ try:
except:
from sets import Set as set
from TransUtils import sgettext as _
from gettext import gettext as _
#------------------------------------------------------------------------
#

View File

@ -28,7 +28,7 @@
#
#-------------------------------------------------------------------------
import os
from TransUtils import sgettext as _
from gettext import gettext as _
#-------------------------------------------------------------------------
#

View File

@ -34,7 +34,7 @@ import time
import shutil
import os
import codecs
from TransUtils import sgettext as _
from gettext import gettext as _
#------------------------------------------------------------------------
#

View File

@ -1,4 +1,4 @@
from TransUtils import sgettext as _
from gettext import gettext as _
import sys,os
import const

View File

@ -1,4 +1,4 @@
from TransUtils import sgettext as _
from gettext import gettext as _
import gtk

View File

@ -23,7 +23,7 @@
import cgi
import locale
import os
from TransUtils import sgettext as _
from gettext import gettext as _
#-------------------------------------------------------------------------
#

View File

@ -25,7 +25,7 @@
# Standard python modules
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
#-------------------------------------------------------------------------
#

View File

@ -25,7 +25,7 @@
# Standard python modules
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
import sets
#-------------------------------------------------------------------------

View File

@ -30,7 +30,7 @@ except:
from gnome.vfs import mime_get_short_list_applications, \
mime_get_description, get_mime_type, mime_get_default_application
from TransUtils import sgettext as _
from gettext import gettext as _
def get_application(type):
"""Returns the application command and application name of the

View File

@ -21,7 +21,7 @@
import mimetypes
import const
import gtk
from TransUtils import sgettext as _
from gettext import gettext as _
_type_map = {
'application/x-gramps' : 'GRAMPS database',

View File

@ -29,7 +29,7 @@ sys.path.append("ObjectSelector")
import os.path
import gtk
import gobject
from TransUtils import sgettext as _
from gettext import gettext as _
import _Factories
from _Constants import ObjectTypes

View File

@ -22,7 +22,7 @@
import gtk
import gobject
from TransUtils import sgettext as _
from gettext import gettext as _
from logging import getLogger
log = getLogger(".ObjectSelector")

View File

@ -20,7 +20,7 @@
# $Id$
from TransUtils import sgettext as _
from gettext import gettext as _
import gtk
import gobject

View File

@ -93,7 +93,7 @@ At runtime Object selector is constructed from these widgets in the following st
-------------------------------------------------------------------------------
"""
from TransUtils import sgettext as _
from gettext import gettext as _
from _ObjectSelectorWindow import ObjectSelectorWindow
from _Constants import ObjectTypes

View File

@ -25,7 +25,7 @@
# python
#
#----------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
import cPickle as pickle
#----------------------------------------------------------------

View File

@ -25,7 +25,7 @@
# Standard python modules
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
import time
import cgi
import sys

View File

@ -31,7 +31,7 @@ General option handling, including saving and parsing.
#
#-------------------------------------------------------------------------
import os
from TransUtils import sgettext as _
from gettext import gettext as _
#-------------------------------------------------------------------------
#

View File

@ -25,7 +25,7 @@
# Python modules
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
#-------------------------------------------------------------------------
#

View File

@ -36,7 +36,7 @@ importers, exporters, and document generators.
import os
import sys
import re
from TransUtils import sgettext as _
from gettext import gettext as _
#-------------------------------------------------------------------------
#

View File

@ -46,7 +46,7 @@ import traceback
import os
import sys
import re
from TransUtils import sgettext as _
from gettext import gettext as _
#-------------------------------------------------------------------------
#

View File

@ -32,7 +32,7 @@ __version__ = "$Revision$"
#
#-------------------------------------------------------------------------
import os
from TransUtils import sgettext as _
from gettext import gettext as _
from types import ClassType, InstanceType
import logging

View File

@ -30,7 +30,7 @@ Report option handling, including saving and parsing.
# Standard Python modules
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
import os
#-------------------------------------------------------------------------
#

View File

@ -32,7 +32,7 @@ A collection of utilities to aid in the generation of reports.
#-------------------------------------------------------------------------
import time
import os
from TransUtils import sgettext as _
from gettext import gettext as _
#------------------------------------------------------------------------
#

View File

@ -32,7 +32,7 @@ __version__ = "$Revision$"
# Python modules
#
#------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
import logging
log = logging.getLogger(".")

View File

@ -31,7 +31,7 @@ __version__ = "$Revision$"
#
#-------------------------------------------------------------------------
from types import ClassType, InstanceType
from TransUtils import sgettext as _
from gettext import gettext as _
import logging
log = logging.getLogger(".")

View File

@ -25,7 +25,7 @@
# Standard python modules
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
#-------------------------------------------------------------------------
#

View File

@ -25,7 +25,7 @@
__author__ = "Donald N. Allingham"
__version__ = "$Revision$"
from TransUtils import sgettext as _
from gettext import gettext as _
from _CalSdn import *
#-------------------------------------------------------------------------

View File

@ -28,7 +28,7 @@
import cPickle as pickle
import os
from xml.sax.saxutils import escape
from TransUtils import sgettext as _
from gettext import gettext as _
import Utils
import RelLib
from time import strftime as strftime

View File

@ -25,7 +25,7 @@
# internationalization
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
#-------------------------------------------------------------------------
#

View File

@ -25,7 +25,7 @@
# internationalization
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
#-------------------------------------------------------------------------
#

View File

@ -37,7 +37,7 @@ import gc
# internationalization
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
#-------------------------------------------------------------------------
#

View File

@ -25,7 +25,7 @@
# internationalization
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
#-------------------------------------------------------------------------
#

View File

@ -25,7 +25,7 @@
# internationalization
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
#-------------------------------------------------------------------------
#

View File

@ -29,7 +29,7 @@ present, we default to no spell checking.
import Config
from TransUtils import sgettext as _
from gettext import gettext as _
#-----------------------------------------------------------
#

View File

@ -25,7 +25,7 @@
# Standard python modules
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
#-------------------------------------------------------------------------
#

View File

@ -27,7 +27,7 @@
#-------------------------------------------------------------------------
from xml.parsers.expat import ParserCreate
from random import Random
from TransUtils import sgettext as _
from gettext import gettext as _
import os
#-------------------------------------------------------------------------

View File

@ -1,5 +1,5 @@
from TransUtils import sgettext as _
from gettext import gettext as _
import cgi
import gtk

View File

@ -31,7 +31,7 @@ import locale
import random
import time
from TransUtils import sgettext as _
from gettext import gettext as _
try:
set()

View File

@ -25,7 +25,7 @@
# Standard python modules
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
from bsddb import db
import os
from cStringIO import StringIO

View File

@ -31,7 +31,7 @@ Provides a BaseDoc based interface to the AbiWord document format.
#-------------------------------------------------------------------------
import base64
import os
from TransUtils import sgettext as _
from gettext import gettext as _
#-------------------------------------------------------------------------
#

View File

@ -26,7 +26,7 @@
#
#------------------------------------------------------------------------
import os
from TransUtils import sgettext as _
from gettext import gettext as _
#------------------------------------------------------------------------
#

View File

@ -28,7 +28,7 @@
import os
import re
import time
from TransUtils import sgettext as _
from gettext import gettext as _
#------------------------------------------------------------------------
#

View File

@ -29,7 +29,7 @@ import time
import cStringIO
import gzip
import os
from TransUtils import sgettext as _
from gettext import gettext as _
#------------------------------------------------------------------------
#

View File

@ -34,7 +34,7 @@
#
#------------------------------------------------------------------------
from string import punctuation
from TransUtils import sgettext as _
from gettext import gettext as _
#------------------------------------------------------------------------
#

View File

@ -33,7 +33,7 @@
# python modules
#
#------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
#------------------------------------------------------------------------
#

View File

@ -53,7 +53,7 @@ import Mime
# internationalization
#
#-------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
from xml.sax.saxutils import escape
_apptype = 'application/vnd.oasis.opendocument.text'

View File

@ -31,7 +31,7 @@ import time
import locale
from cStringIO import StringIO
from math import pi, cos, sin, fabs
from TransUtils import sgettext as _
from gettext import gettext as _
from xml.sax.saxutils import escape
#-------------------------------------------------------------------------

View File

@ -28,7 +28,7 @@
import os
import tempfile
import zipfile
from TransUtils import sgettext as _
from gettext import gettext as _
#-------------------------------------------------------------------------
#

View File

@ -26,7 +26,7 @@
#
#-------------------------------------------------------------------------
from math import pi, cos, sin
from TransUtils import sgettext as _
from gettext import gettext as _
#-------------------------------------------------------------------------
#

View File

@ -25,7 +25,7 @@
# Python modules
#
#------------------------------------------------------------------------
from TransUtils import sgettext as _
from gettext import gettext as _
#------------------------------------------------------------------------
#

View File

@ -26,7 +26,7 @@
#
#------------------------------------------------------------------------
import os
from TransUtils import sgettext as _
from gettext import gettext as _
#------------------------------------------------------------------------
#

View File

@ -26,7 +26,7 @@
#
#-------------------------------------------------------------------------
from math import pi, cos, sin, fabs
from TransUtils import sgettext as _
from gettext import gettext as _
#-------------------------------------------------------------------------
#

View File

@ -46,7 +46,7 @@ import TipOfDay
import DataViews
from Mime import mime_type_is_defined
from QuestionDialog import ErrorDialog
from TransUtils import sgettext as _
from gettext import gettext as _
iconpaths = [const.image_dir,"."]

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