[gnome-dvb-daemon] Use gettext method instead of ugettext



commit 458282a15954babdb32050ef7b2ff6e26d235fdd
Author: Sebastian Pölsterl <sebp k-d-w org>
Date:   Wed Jun 15 21:51:57 2016 +0100

    Use gettext method instead of ugettext
    
    Python 3 strings are always unicode, therefore gettext
    is equivalent to ugettext in Python 2

 .../ui/wizard/pages/InitialTuningDataPage.py       |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/client/gnomedvb/ui/wizard/pages/InitialTuningDataPage.py 
b/client/gnomedvb/ui/wizard/pages/InitialTuningDataPage.py
index 3eeafbb..67ac87e 100644
--- a/client/gnomedvb/ui/wizard/pages/InitialTuningDataPage.py
+++ b/client/gnomedvb/ui/wizard/pages/InitialTuningDataPage.py
@@ -212,7 +212,7 @@ class InitialTuningDataPage(BasePage):
         countries = {self.NOT_LISTED: _("Not listed")}
         t = gettext.translation("iso_3166", fallback=True)
         for lang in COUNTRIES_DVB_T:
-            countries[lang] = t.ugettext(COUNTRIES[lang])
+            countries[lang] = t.gettext(COUNTRIES[lang])
 
         self._create_table()
 
@@ -286,7 +286,7 @@ class InitialTuningDataPage(BasePage):
         countries = {}
         t = gettext.translation("iso_3166", fallback=True)
         for lang in COUNTRIES_DVB_C:
-            countries[lang] = t.ugettext(COUNTRIES[lang])
+            countries[lang] = t.gettext(COUNTRIES[lang])
 
         self._create_table()
 


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