terminator/terminatorlib/translation.py

39 lines
1.1 KiB
Python
Raw Normal View History

#!/usr/bin/python
# Terminator - multiple gnome terminals in one window
2010-01-04 23:56:28 +00:00
# Copyright (C) 2006-2010 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>"""
from version import APP_NAME
from util import dbg
_ = None
2009-11-30 09:52:38 +00:00
# pylint: disable-msg=W0702
try:
import gettext
gettext.textdomain(APP_NAME)
_ = gettext.gettext
2009-11-30 09:51:34 +00:00
except:
dbg("Using fallback _()")
def dummytrans (text):
"""A _ function for systems without gettext. Effectively a NOOP"""
return(text)
_ = dummytrans