Changeset 113:a3c4d9205538


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

Minor internationalization fixes

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • runmlx-hu.sh

    r109 r113  
    33scriptdir=`dirname $0`
    44
    5 exec /usr/bin/env LANGUAGE=hu_HU LANG=hu_HU.UTF-8 LC_MESSAGES=hu_HU.UTF-8 LC_COLLATE=hu_HU.UTF8 LC_CTYPE=hu_HU.UTF8 "${scriptdir}/runmlx.sh" "$@"
     5exec /usr/bin/env LANGUAGE=hu_HU LANG=hu_HU.UTF-8 LC_MESSAGES=hu_HU.UTF-8 LC_COLLATE=hu_HU.UTF-8 LC_CTYPE=hu_HU.UTF-8 "${scriptdir}/runmlx.sh" "$@"
  • 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.