2009-05-07 00:44:42 +00:00
|
|
|
#!/usr/bin/python
|
|
|
|
# Terminator - multiple gnome terminals in one window
|
|
|
|
# Copyright (C) 2006-2008 cmsj@tenshu.net
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, version 2 only.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
|
|
|
|
"""Terminator by Chris Jones <cmsj@tenshu.net>"""
|
|
|
|
|
2009-08-18 11:35:06 +00:00
|
|
|
from version import APP_NAME
|
|
|
|
from util import dbg
|
2009-05-07 00:44:42 +00:00
|
|
|
|
2009-08-18 12:43:39 +00:00
|
|
|
_ = None
|
|
|
|
|
2009-11-30 09:52:38 +00:00
|
|
|
# pylint: disable-msg=W0702
|
2009-05-07 00:44:42 +00:00
|
|
|
try:
|
|
|
|
import gettext
|
2009-08-18 12:43:39 +00:00
|
|
|
gettext.textdomain(APP_NAME)
|
|
|
|
_ = gettext.gettext
|
2009-11-30 09:51:34 +00:00
|
|
|
except:
|
2009-08-18 11:35:06 +00:00
|
|
|
dbg("Using fallback _()")
|
|
|
|
|
2009-05-07 00:44:42 +00:00
|
|
|
def dummytrans (text):
|
2009-08-18 11:35:06 +00:00
|
|
|
"""A _ function for systems without gettext. Effectively a NOOP"""
|
|
|
|
return(text)
|
|
|
|
|
2009-08-18 12:43:39 +00:00
|
|
|
_ = dummytrans
|
2009-05-07 00:44:42 +00:00
|
|
|
|