[Inteproxy-commits] r91 - in trunk: . inteproxy

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu May 10 20:24:00 CEST 2007


Author: bh
Date: 2007-05-10 20:24:00 +0200 (Thu, 10 May 2007)
New Revision: 91

Modified:
   trunk/ChangeLog
   trunk/inteproxy/resources.py
Log:
* inteproxy/resources.py (gettext): Handle case where the
translation cannot be loaded.


Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2007-05-08 14:11:15 UTC (rev 90)
+++ trunk/ChangeLog	2007-05-10 18:24:00 UTC (rev 91)
@@ -1,3 +1,8 @@
+2007-05-10  Bernhard Herzog  <bh at intevation.de>
+
+	* inteproxy/resources.py (gettext): Handle case where the
+	translation cannot be loaded.
+
 2007-05-08  Bernhard Herzog  <bh at intevation.de>
 
 	* inteproxy/InteProxy-icon.png, inteproxy/InteProxy-logo.png,

Modified: trunk/inteproxy/resources.py
===================================================================
--- trunk/inteproxy/resources.py	2007-05-08 14:11:15 UTC (rev 90)
+++ trunk/inteproxy/resources.py	2007-05-10 18:24:00 UTC (rev 91)
@@ -19,7 +19,7 @@
     otherwise the message is returned unchanged.
     """
     modir = os.path.join(share_dir, "locale")
-    t = py_gettext.translation("inteproxy", modir)
+    t = py_gettext.translation("inteproxy", modir, fallback=True)
 
     return t.ugettext(message)
 



More information about the Inteproxy-commits mailing list