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
|
|
|
|
|
|
|
try:
|
|
|
|
import gettext
|
2009-08-18 11:35:06 +00:00
|
|
|
gettext.install(APP_NAME)
|
2009-05-07 00:44:42 +00:00
|
|
|
except ImportError:
|
2009-08-18 11:35:06 +00:00
|
|
|
dbg("Using fallback _()")
|
2009-05-07 00:44:42 +00:00
|
|
|
import __builtin__
|
2009-08-18 11:35:06 +00:00
|
|
|
|
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-05-07 00:44:42 +00:00
|
|
|
__builtin__.__dict__['_'] = dummytrans
|
|
|
|
|