[gnome-dvb-daemon] Use a single translatable string to describe TV type
- From: Sebastian Polsterl <sebp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-dvb-daemon] Use a single translatable string to describe TV type
- Date: Thu, 22 Nov 2012 20:10:17 +0000 (UTC)
commit f07fd9a9e9656c16e5d9b65894237d1594438c60
Author: Sebastian PÃlsterl <sebp k-d-w org>
Date: Thu Nov 22 21:08:16 2012 +0100
Use a single translatable string to describe TV type
https://bugzilla.gnome.org/show_bug.cgi?id=687496
client/gnomedvb/ui/wizard/__init__.py | 5 +++++
client/gnomedvb/ui/wizard/pages/SetupDevicePage.py | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/client/gnomedvb/ui/wizard/__init__.py b/client/gnomedvb/ui/wizard/__init__.py
index ce6ac89..f5867e2 100644
--- a/client/gnomedvb/ui/wizard/__init__.py
+++ b/client/gnomedvb/ui/wizard/__init__.py
@@ -6,3 +6,8 @@ DVB_TYPE_TO_DESC = {
"DVB-T": _("digital terrestrial")
}
+DVB_TYPE_TO_TV_DESC = {
+ "DVB-C": _("digital cable TV"),
+ "DVB-S": _("digital satellite TV"),
+ "DVB-T": _("digital terrestrial TV")
+}
diff --git a/client/gnomedvb/ui/wizard/pages/SetupDevicePage.py b/client/gnomedvb/ui/wizard/pages/SetupDevicePage.py
index a0f6af1..58cddf8 100644
--- a/client/gnomedvb/ui/wizard/pages/SetupDevicePage.py
+++ b/client/gnomedvb/ui/wizard/pages/SetupDevicePage.py
@@ -21,7 +21,7 @@ import gnomedvb
from gi.repository import Gtk
import os.path
from gnomedvb import _
-from gnomedvb.ui.wizard import DVB_TYPE_TO_DESC
+from gnomedvb.ui.wizard import DVB_TYPE_TO_TV_DESC
from gnomedvb.ui.wizard.pages.BasePage import BasePage
class SetupDevicePage(BasePage):
@@ -115,7 +115,7 @@ class SetupDevicePage(BasePage):
def write_channels_handler(proxy, success, user_data):
if success:
recordings_dir = gnomedvb.get_default_recordings_dir()
- name = "%s %s" % (DVB_TYPE_TO_DESC[self.__adapter_info["type"]], _("TV"))
+ name = DVB_TYPE_TO_TV_DESC[self.__adapter_info["type"]]
self.__model.add_device_to_new_group(self.__adapter_info['adapter'],
self.__adapter_info['frontend'], channels_file,
recordings_dir, name,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]