#!/usr/bin/env python2.3 # -*- coding: utf-8 -*- # ----------------------------------------------------------------------- # Copyright (C) 2004 Gustavo Sverzut Barbieri. # # 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; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of MER- # CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General # Public License for more details. # ----------------------------------------------------------------------- # # This code is part of the pytvgrab project: # http://pytvgrab.sourceforge.net # # ----------------------------------------------------------------------- # Subversion Information, do not edit # # $Rev: 246 $ # $LastChangedDate: 2004-10-14 03:16:23 +1000 (Thu, 14 Oct 2004) $ # $LastChangedRevision: 246 $ # $LastChangedBy: gustavo $ # # # $Log:$ import config_locale try: import gettext from gettext import gettext as _ # Install internationalization stuff and define _() gettext.install( "pytvgrab", unicode=True ) except ImportError: import sys print >> sys.stderr, ( "You don't have gettext module, no " \ "internationalization will be used." ) # define _() so program will not fail import __builtin__ __builtin__.__dict__[ "_" ] = lambda x: x