From b85d289bbb4eba9df59cce646563046c40692f06 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sat, 30 Oct 2010 12:14:54 +0200 Subject: [PATCH] Fix wrong method name --- src/i18n.py | 4 ++-- src/utils/str.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/i18n.py b/src/i18n.py index 51db7ba3c..1d3864c73 100644 --- a/src/i18n.py +++ b/src/i18n.py @@ -200,13 +200,13 @@ class PluginInternationalization: pass return ordinal - def getBeAndHave(self, be, have): + def getBeAndHas(self, be, has): # This should be used only by src/utils/str.py try: execfile(self._getL10nCode()) except IOError: pass - return (be, have) + return (be, has) def internationalizeDocstring(obj): # FIXME: check if the plugin has an _ object diff --git a/src/utils/str.py b/src/utils/str.py index 741b870b2..91f71f3e6 100644 --- a/src/utils/str.py +++ b/src/utils/str.py @@ -366,7 +366,7 @@ def has(i): else: return 'have' -be, have = _.getVerbs(be, have) +be, has = _.getBeAndHas(be, has) def toBool(s): s = s.strip().lower()