* 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:
parent
ecc87ea678
commit
57d6df04c9
@ -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.
|
||||
|
@ -36,7 +36,7 @@ import os
|
||||
# internationalization
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -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 _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -25,7 +25,7 @@
|
||||
# Standard python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
import os
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
@ -30,7 +30,7 @@ __version__ = "$Revision$"
|
||||
# Standard python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
from cStringIO import StringIO
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
@ -29,7 +29,7 @@ import gtk.glade
|
||||
import gc
|
||||
|
||||
import const
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -46,7 +46,7 @@ from Editors import EditEvent, DelEventQuery
|
||||
# internationalization
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
column_names = [
|
||||
_('Description'),
|
||||
|
@ -45,7 +45,7 @@ from QuestionDialog import QuestionDialog, ErrorDialog
|
||||
# internationalization
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
column_names = [
|
||||
_('ID'),
|
||||
|
@ -3,7 +3,7 @@
|
||||
# Python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
import gc
|
||||
import re
|
||||
import cgi
|
||||
|
@ -25,7 +25,7 @@
|
||||
# Python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
import gc
|
||||
import re
|
||||
import logging
|
||||
|
@ -44,7 +44,7 @@ from QuestionDialog import QuestionDialog, ErrorDialog
|
||||
# internationalization
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
column_names = [
|
||||
_('Title'),
|
||||
|
@ -25,7 +25,7 @@
|
||||
# Python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
from cgi import escape
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
@ -27,7 +27,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
import cPickle as pickle
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
@ -46,7 +46,7 @@ from QuestionDialog import QuestionDialog, ErrorDialog
|
||||
# internationalization
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
column_names = [
|
||||
_('Place Name'),
|
||||
|
@ -47,7 +47,7 @@ from QuestionDialog import QuestionDialog, ErrorDialog
|
||||
# internationalization
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
column_names = [
|
||||
_('Name'),
|
||||
|
@ -47,7 +47,7 @@ from QuestionDialog import QuestionDialog, ErrorDialog
|
||||
# internationalization
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
column_names = [
|
||||
_('Title'),
|
||||
|
@ -41,7 +41,7 @@ __version__ = "$Revision$"
|
||||
# Python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
import gc
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
@ -33,7 +33,7 @@ __version__ = "$Revision$"
|
||||
# python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -25,7 +25,7 @@
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import time
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
import locale
|
||||
|
||||
import logging
|
||||
|
@ -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:
|
||||
|
@ -30,7 +30,7 @@ mechanism for the user to edit address information.
|
||||
# Python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -33,7 +33,7 @@ __version__ = "$Revision$"
|
||||
# Python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -25,7 +25,7 @@
|
||||
# Python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
try:
|
||||
set()
|
||||
|
@ -25,7 +25,7 @@
|
||||
# Python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
try:
|
||||
set()
|
||||
|
@ -26,7 +26,7 @@
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import cPickle as pickle
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -33,7 +33,7 @@ __version__ = "$Revision: 6248 $"
|
||||
# Python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -38,7 +38,7 @@ import Utils
|
||||
from _EditSecondary import EditSecondary
|
||||
|
||||
from GrampsWidgets import *
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -25,7 +25,7 @@
|
||||
# Standard python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
import os
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
@ -25,7 +25,7 @@
|
||||
# Standard python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -25,7 +25,7 @@
|
||||
# Standard python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -27,7 +27,7 @@
|
||||
#-------------------------------------------------------------------------
|
||||
import os
|
||||
import locale
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
from cgi import escape
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
@ -26,7 +26,7 @@
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import cPickle as pickle
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
import logging
|
||||
log = logging.getLogger(".")
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
# $Id$
|
||||
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
import ManagedWindow
|
||||
import DateHandler
|
||||
|
@ -25,7 +25,7 @@
|
||||
# Python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
try:
|
||||
set()
|
||||
|
@ -25,7 +25,7 @@
|
||||
# Python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
try:
|
||||
set()
|
||||
|
@ -25,7 +25,7 @@
|
||||
# Python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
# $Id$
|
||||
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
import ManagedWindow
|
||||
import Config
|
||||
|
@ -25,7 +25,7 @@
|
||||
# Python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
import logging
|
||||
log = logging.getLogger(".")
|
||||
|
@ -25,7 +25,7 @@
|
||||
# Python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
try:
|
||||
set()
|
||||
|
@ -25,7 +25,7 @@
|
||||
# python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
from cgi import escape
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
@ -28,7 +28,7 @@
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import os
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -27,7 +27,7 @@
|
||||
#-------------------------------------------------------------------------
|
||||
import os
|
||||
import sets
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -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")
|
||||
|
@ -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")
|
||||
|
||||
|
@ -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:
|
||||
|
@ -29,7 +29,7 @@
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import os
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
import sets
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
@ -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
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
|
@ -36,7 +36,7 @@ try:
|
||||
except:
|
||||
from sets import Set as set
|
||||
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -28,7 +28,7 @@
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import os
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -34,7 +34,7 @@ import time
|
||||
import shutil
|
||||
import os
|
||||
import codecs
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -1,4 +1,4 @@
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
import sys,os
|
||||
import const
|
||||
|
@ -1,4 +1,4 @@
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
import gtk
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
import cgi
|
||||
import locale
|
||||
import os
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -25,7 +25,7 @@
|
||||
# Standard python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -25,7 +25,7 @@
|
||||
# Standard python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
import sets
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
@ -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
|
||||
|
@ -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',
|
||||
|
@ -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
|
||||
|
@ -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")
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
# $Id$
|
||||
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
import gtk
|
||||
import gobject
|
||||
|
@ -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
|
||||
|
@ -25,7 +25,7 @@
|
||||
# python
|
||||
#
|
||||
#----------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
import cPickle as pickle
|
||||
|
||||
#----------------------------------------------------------------
|
||||
|
@ -25,7 +25,7 @@
|
||||
# Standard python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
import time
|
||||
import cgi
|
||||
import sys
|
||||
|
@ -31,7 +31,7 @@ General option handling, including saving and parsing.
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import os
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -25,7 +25,7 @@
|
||||
# Python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -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 _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -46,7 +46,7 @@ import traceback
|
||||
import os
|
||||
import sys
|
||||
import re
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -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 _
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -32,7 +32,7 @@ __version__ = "$Revision$"
|
||||
# Python modules
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
import logging
|
||||
log = logging.getLogger(".")
|
||||
|
||||
|
@ -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(".")
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
# Standard python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -25,7 +25,7 @@
|
||||
__author__ = "Donald N. Allingham"
|
||||
__version__ = "$Revision$"
|
||||
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
from _CalSdn import *
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
@ -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
|
||||
|
@ -25,7 +25,7 @@
|
||||
# internationalization
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -25,7 +25,7 @@
|
||||
# internationalization
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -37,7 +37,7 @@ import gc
|
||||
# internationalization
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -25,7 +25,7 @@
|
||||
# internationalization
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -25,7 +25,7 @@
|
||||
# internationalization
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -29,7 +29,7 @@ present, we default to no spell checking.
|
||||
|
||||
import Config
|
||||
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#-----------------------------------------------------------
|
||||
#
|
||||
|
@ -25,7 +25,7 @@
|
||||
# Standard python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -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
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
import cgi
|
||||
|
||||
import gtk
|
||||
|
@ -31,7 +31,7 @@ import locale
|
||||
import random
|
||||
import time
|
||||
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
try:
|
||||
set()
|
||||
|
@ -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
|
||||
|
@ -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 _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -26,7 +26,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
import os
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -28,7 +28,7 @@
|
||||
import os
|
||||
import re
|
||||
import time
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -29,7 +29,7 @@ import time
|
||||
import cStringIO
|
||||
import gzip
|
||||
import os
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -34,7 +34,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from string import punctuation
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -33,7 +33,7 @@
|
||||
# python modules
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -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'
|
||||
|
@ -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
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
@ -28,7 +28,7 @@
|
||||
import os
|
||||
import tempfile
|
||||
import zipfile
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -26,7 +26,7 @@
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from math import pi, cos, sin
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -25,7 +25,7 @@
|
||||
# Python modules
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -26,7 +26,7 @@
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
import os
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -26,7 +26,7 @@
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from math import pi, cos, sin, fabs
|
||||
from TransUtils import sgettext as _
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -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
Loading…
Reference in New Issue
Block a user