From 750fe0df203d6cada1c39f243479d1967f398f55 Mon Sep 17 00:00:00 2001 From: Andreas Oberritter Date: Thu, 27 Mar 2008 17:35:34 +0000 Subject: [PATCH] preparation for translations --- .../SystemPlugins/VideoTune/VideoFinetune.py | 16 ++++++++-------- .../Plugins/SystemPlugins/VideoTune/plugin.py | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/python/Plugins/SystemPlugins/VideoTune/VideoFinetune.py b/lib/python/Plugins/SystemPlugins/VideoTune/VideoFinetune.py index 85dd9660..e8331327 100644 --- a/lib/python/Plugins/SystemPlugins/VideoTune/VideoFinetune.py +++ b/lib/python/Plugins/SystemPlugins/VideoTune/VideoFinetune.py @@ -80,11 +80,11 @@ class VideoFinetune(Screen): c.writeText(xres / 10, yres / 6 - 40, xres * 3 / 5, 40, RGB(128,255,255), RGB(0,0,0), gFont("Regular", 40), _("Brightness")) c.writeText(xres / 10, yres / 6, xres * 4 / 7, yres / 6, RGB(255,255,255), RGB(0,0,0), gFont("Regular", 20), - ("If your TV has a brightness or contrast enhancement, disable it. If there is something called \"dynamic\", " - "set it to standard. Adjust the backlight level to your favourite value. " + _("If your TV has a brightness or contrast enhancement, disable it. If there is something called \"dynamic\", " + "set it to standard. Adjust the backlight level to a value suiting your taste. " "Turn down contrast on your TV as much as possible.\nThen turn the brightness setting as " - "low as possible, but make sure that the two lowermost shades of gray are still distinguishable.\n" - "Do not care for the bright shades now, they will be set up in the next step.\n" + "low as possible, but make sure that the two lowermost shades of gray stay distinguishable.\n" + "Do not care about the bright shades now. They will be set up in the next step.\n" "If you are happy with the result, press OK."), RT_WRAP) @@ -134,8 +134,8 @@ class VideoFinetune(Screen): c.writeText(xres / 10, yres / 6 - 40, xres * 3 / 5, 40, RGB(128,0,0), RGB(255,255,255), gFont("Regular", 40), _("Contrast")) c.writeText(xres / 10, yres / 6, xres / 2, yres / 6, RGB(0,0,0), RGB(255,255,255), gFont("Regular", 20), - ("Now, use the contrast setting to turn up the brightness of the background as much as possible, " - "but make sure that you can still see the difference between the two brightest level of shades." + _("Now, use the contrast setting to turn up the brightness of the background as much as possible, " + "but make sure that you can still see the difference between the two brightest levels of shades." "If you have done that, press OK."), RT_WRAP) @@ -192,8 +192,8 @@ class VideoFinetune(Screen): c.writeText(xres / 10, yres / 6 - 40, xres * 3 / 5, 40, RGB(128,0,0), RGB(255,255,255), gFont("Regular", 40), ("Color")) c.writeText(xres / 10, yres / 6, xres / 2, yres / 6, RGB(0,0,0), RGB(255,255,255), gFont("Regular", 20), - ("Adjust the color settings so that all the color shades are distinguishable, but appear as saturated as possible. " - "If you are happy with the result, press OK to close the video finetuning, or use the number keys to select other test screens."), + _("Adjust the color settings so that all the color shades are distinguishable, but appear as saturated as possible. " + "If you are happy with the result, press OK to close the video fine-tuning, or use the number keys to select other test screens."), RT_WRAP) c.flush() diff --git a/lib/python/Plugins/SystemPlugins/VideoTune/plugin.py b/lib/python/Plugins/SystemPlugins/VideoTune/plugin.py index 913a60ae..1b62206f 100644 --- a/lib/python/Plugins/SystemPlugins/VideoTune/plugin.py +++ b/lib/python/Plugins/SystemPlugins/VideoTune/plugin.py @@ -11,7 +11,7 @@ def videoFinetuneWizard(*args, **kwargs): from Components.config import config show_testcard = config.misc.showtestcard.value except KeyError: - print "not showing finetune wizard, config variable doesn't exist" + print "not showing fine-tuning wizard, config variable doesn't exist" if show_testcard: from VideoFinetune import VideoFinetune config.misc.showtestcard.value = False @@ -30,10 +30,10 @@ def startSetup(menuid): if menuid != "system": return [ ] - return [(("Video Finetune"), videoFinetuneMain, "video_finetune", None)] + return [(_("Video Fine-Tuning"), videoFinetuneMain, "video_finetune", None)] def Plugins(**kwargs): return [ - PluginDescriptor(name=("Video Finetune"), description=("Fine-tune your video"), where = PluginDescriptor.WHERE_MENU, fnc=startSetup), - PluginDescriptor(name=("Video Finetune Wizard"), where = PluginDescriptor.WHERE_WIZARD, fnc=(1, videoFinetuneWizard)) + PluginDescriptor(name=_("Video Fine-Tuning"), description=_("fine-tune your display"), where = PluginDescriptor.WHERE_MENU, fnc=startSetup), + PluginDescriptor(name=_("Video Fine-Tuning Wizard"), where = PluginDescriptor.WHERE_WIZARD, fnc=(1, videoFinetuneWizard)) ] -- 2.30.2