diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2006-04-07 15:20:02 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2006-04-07 15:20:02 +0000 |
| commit | 334e49f88bb558bb2f07d47c77c7900074d5b7b8 (patch) | |
| tree | 1e74fc7d9b3c38465396e61d5a94c3f9f2f6c048 /lib/python/Components | |
| parent | bf492efcd5686e1e8472f327300b352cbd47497d (diff) | |
| download | enigma2-334e49f88bb558bb2f07d47c77c7900074d5b7b8.tar.gz enigma2-334e49f88bb558bb2f07d47c77c7900074d5b7b8.zip | |
don't translate "", add FIXME
Diffstat (limited to 'lib/python/Components')
| -rw-r--r-- | lib/python/Components/config.py | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index 635eb748..51ac7606 100644 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -92,10 +92,17 @@ class configSelection: def __call__(self, selected): #needed by configlist self.checkValues() - if isinstance(self.parent.vals[self.parent.value], str): - returnValue = _(self.parent.vals[self.parent.value]) - else: - returnValue = _(self.parent.vals[self.parent.value][1]) + + returnValue = _(self.parent.vals[self.parent.value]) + if not isinstance(returnValue, str): + returnValue = returnValue[0] + + # FIXME: it's not really nice to translate this here. + # however, configSelections are persistent. + + # WORKAROUND: don't translate "" + if returnValue: + returnValue = _(returnValue) return ("text", returnValue) |
