[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r7134 - trunk/gnue-common/src/apps
From: |
reinhard |
Subject: |
[gnue] r7134 - trunk/gnue-common/src/apps |
Date: |
Tue, 8 Mar 2005 14:57:01 -0600 (CST) |
Author: reinhard
Date: 2005-03-08 14:57:01 -0600 (Tue, 08 Mar 2005)
New Revision: 7134
Modified:
trunk/gnue-common/src/apps/i18n.py
Log:
Updated a few comments.
Modified: trunk/gnue-common/src/apps/i18n.py
===================================================================
--- trunk/gnue-common/src/apps/i18n.py 2005-03-08 20:50:53 UTC (rev 7133)
+++ trunk/gnue-common/src/apps/i18n.py 2005-03-08 20:57:01 UTC (rev 7134)
@@ -34,6 +34,7 @@
from gnue import paths
+
# -----------------------------------------------------------------------------
# Global variables
# -----------------------------------------------------------------------------
@@ -64,6 +65,7 @@
__modules [filename] = mod
return mod
+
# -----------------------------------------------------------------------------
# Find the correct translation catalog
# -----------------------------------------------------------------------------
@@ -100,6 +102,7 @@
return catalog
+
# -----------------------------------------------------------------------------
# Translate a message and return unicode
# -----------------------------------------------------------------------------
@@ -116,6 +119,7 @@
return catalog.ugettext (message)
+
# -----------------------------------------------------------------------------
# Translate a message and return local encoding
# -----------------------------------------------------------------------------
@@ -133,6 +137,7 @@
return (catalog.ugettext (message)).encode (encoding, enc_policy)
+
# -----------------------------------------------------------------------------
# Convert Unicode to String, let everything else untouched. This is o().
# -----------------------------------------------------------------------------
@@ -154,7 +159,8 @@
def getencoding ():
"""
- This function returns the encoding of the currently active locale
+ This function returns the encoding of the currently active locale. This can
+ be changed with setcurrentlocale.
@returns: encoding of the current locale
"""
# For Windows, getlocale () is broken - it returns e.g. ('Hungarian_Hungary',
@@ -173,7 +179,8 @@
def getlanguage ():
"""
- This function return the language of the currently acitve locale
+ This function return the language of the currently acitve locale. This can be
+ changed with setcurrentlocale.
@returns: language of the current locale
"""
return __userlanguage or 'C'
@@ -185,7 +192,9 @@
def getuserlocale ():
"""
- This function tries to find out which locale the user is using.
+ This function tries to find out which locale the user is using. This is
+ always the locale of the user running the program and is not touched by
+ setcurrentlocale.
@returns: localestring of the user's locale, i.e. address@hidden
"""
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r7134 - trunk/gnue-common/src/apps,
reinhard <=