From 125d542706b771877b65109de71b871576c24f15 Mon Sep 17 00:00:00 2001 From: James Vega Date: Wed, 28 Jan 2009 21:22:34 +0000 Subject: [PATCH] Google: Fix Language.normalize to not prepend the empty string with 'lang_' --- plugins/Google/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Google/config.py b/plugins/Google/config.py index 01ca4022a..2ab8b225a 100644 --- a/plugins/Google/config.py +++ b/plugins/Google/config.py @@ -54,7 +54,7 @@ class Language(registry.OnlySomeStrings): 'tr'.split()] validStrings.append('') def normalize(self, s): - if not s.startswith('lang_'): + if s and not s.startswith('lang_'): s = 'lang_' + s if not s.endswith('CN') or s.endswith('TW'): s = s.lower()