From 39bcfa8d329975a72123105a732c7c029f47ce2c Mon Sep 17 00:00:00 2001 From: Thomas Hurst Date: Wed, 9 Apr 2008 08:11:51 +0100 Subject: [PATCH] Make gettext optional; if it fails to load, define our own _() method that just returns the string. --- terminator | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/terminator b/terminator index 44e7a1c2..8bd6da69 100755 --- a/terminator +++ b/terminator @@ -25,8 +25,12 @@ APP_VERSION = '0.9' import os, platform, sys, string, time, math from optparse import OptionParser -import gettext -gettext.install (APP_NAME) +try: + import gettext + gettext.install (APP_NAME) +except: + def _ (text): + return text # import unix-lib import pwd