Changeset 1898 for pykota

Show
Ignore:
Timestamp:
11/01/04 17:21:17 (20 years ago)
Author:
jalet
Message:

Little change for locale+gettext

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/tool.py

    r1872 r1898  
    2222# 
    2323# $Log$ 
     24# Revision 1.137  2004/11/01 16:21:17  jalet 
     25# Little change for locale+gettext 
     26# 
    2427# Revision 1.136  2004/10/24 09:06:46  jalet 
    2528# Added debug messages for LPRng support possible problem ??? 
     
    544547        try : 
    545548            locale.setlocale(locale.LC_ALL, lang) 
    546             gettext.install("pykota") 
    547549        except (locale.Error, IOError) : 
    548550            locale.setlocale(locale.LC_ALL, "C") 
    549551            defaultToCLocale = 1 
     552        try : 
     553            gettext.install("pykota") 
     554        except : 
    550555            gettext.NullTranslations().install() 
    551556