commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

r6259 - trunk/gnue-common/src/apps


From: reinhard
Subject: r6259 - trunk/gnue-common/src/apps
Date: Mon, 6 Sep 2004 09:58:48 -0500 (CDT)

Author: reinhard
Date: 2004-09-06 09:58:47 -0500 (Mon, 06 Sep 2004)
New Revision: 6259

Modified:
   trunk/gnue-common/src/apps/i18n.py
Log:
Avoid setting the locale to None, set it to '' instead.


Modified: trunk/gnue-common/src/apps/i18n.py
===================================================================
--- trunk/gnue-common/src/apps/i18n.py  2004-09-06 10:45:42 UTC (rev 6258)
+++ trunk/gnue-common/src/apps/i18n.py  2004-09-06 14:58:47 UTC (rev 6259)
@@ -205,6 +205,9 @@
   @param newLocale: string of the locale to be set, e.g. address@hidden
       (full blown) or 'de_AT' or 'en_AU'
   """
+  if newLocale is None:
+    newLocale = ''
+
   normal = locale.normalize (newLocale)
   next   = normal.split ('@') [0]
   noenc  = next.split ('.') [0]





reply via email to

[Prev in Thread] Current Thread [Next in Thread]