Changeset 788

Show
Ignore:
Timestamp:
02/10/03 12:28:45 (22 years ago)
Author:
jalet
Message:

Localization

Files:
1 modified

Legend:

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

    r782 r788  
    1515# 
    1616# $Log$ 
     17# Revision 1.19  2003/02/10 11:28:45  jalet 
     18# Localization 
     19# 
    1720# Revision 1.18  2003/02/10 01:02:17  jalet 
    1821# External requester is about to work, but I must sleep 
     
    100103        """Initializes the command line tool.""" 
    101104        # locale stuff 
    102         try : 
     105        try : 
    103106            locale.setlocale(locale.LC_ALL, "") 
    104         except locale.Error : 
    105             pass 
    106         gettext.install("pykota") 
     107            gettext.install("pykota") 
     108        except (locale.Error, IOError) : 
     109            gettext.NullTranslations().install() 
    107110     
    108111        # pykota specific stuff