Changeset 113:a3c4d9205538 for src


Ignore:
Timestamp:
04/26/12 17:21:04 (13 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Minor internationalization fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/config.py

    r107 r113  
    11# Configuration and related stuff
     2# -*- encoding: utf-8 -*-
    23
    34#-------------------------------------------------------------------------------
     
    157158    def getLanguage(self):
    158159        """Get the language to be used."""
     160        import locale
    159161        if self._language:
     162            locale.setlocale(locale.LC_ALL, (self._language,
     163                                             locale.getpreferredencoding()))
    160164            return self._language
    161165        else:
    162             import locale
     166            locale.setlocale(locale.LC_ALL, "")
    163167            return locale.getdefaultlocale()[0]
    164168
Note: See TracChangeset for help on using the changeset viewer.