[meld] conf: Better defaults for gettext imports



commit 3e8049fea134fd749759a195d4c60121b9c2d4b8
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Mon May 26 05:48:48 2014 +1000

    conf: Better defaults for gettext imports
    
    These aren't really used, but premit some testing of other modules that
    import _ or ngettext from here without going through the gettext
    install in the main script.

 meld/conf.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/meld/conf.py b/meld/conf.py
index 089e01d..e30089f 100644
--- a/meld/conf.py
+++ b/meld/conf.py
@@ -10,8 +10,8 @@ LOCALEDIR = os.path.join(sys.prefix, "share", "locale")
 UNINSTALLED = False
 
 # Installed from main script
-_ = None
-ngettext = None
+_ = lambda x: x
+ngettext = lambda x, *args: x
 
 
 def frozen():


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