From c66ee8e9be2218f2f916bbfebd2846ca918faaec Mon Sep 17 00:00:00 2001 From: Marten Richter Date: Sun, 7 Oct 2012 12:20:31 +0200 Subject: [PATCH] Internationalization changes suggested by JTE --- vtimeredit.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/vtimeredit.cc b/vtimeredit.cc index 6f5aa20..81ed8f9 100644 --- a/vtimeredit.cc +++ b/vtimeredit.cc @@ -48,9 +48,9 @@ VTimerEdit::VTimerEdit(RecTimer* trt) selectedButton = 0; buttonBack.setPosition(30,350); buttonDelete.setPosition(400,350); - buttonBack.setText("Back"); + buttonBack.setText(tr("Back")); buttonBack.setActive(1); - buttonDelete.setText("Delete"); + buttonDelete.setText(tr("Delete")); add(&buttonBack); add(&buttonDelete); @@ -96,8 +96,8 @@ void VTimerEdit::draw() ypos = 50; // Active - if (recTimer->active) strcpy(buffer, "Yes"); - else strcpy(buffer, "No"); + if (recTimer->active) strcpy(buffer, tr("Yes")); + else strcpy(buffer, tr("No")); drawText(buffer, xpos, ypos, DrawStyle::LIGHTTEXT); ypos += fontheight; // Channel @@ -134,8 +134,8 @@ void VTimerEdit::draw() ypos += fontheight; // Current - if (recTimer->pending) strcpy(buffer, "Yes"); - else strcpy(buffer, "No"); + if (recTimer->pending) strcpy(buffer, tr("Yes")); + else strcpy(buffer, tr("No")); drawText(buffer, xpos, ypos, DrawStyle::LIGHTTEXT); ypos += fontheight; // Recording now @@ -209,8 +209,8 @@ int VTimerEdit::handleCommand(int command) v->setTitleBarColour(DrawStyle::DANGER); v->setTitleBarOn(1); v->setBorderOn(1); - v->setTitleText("Delete timer"); - v->setMainText("Are you sure you want to delete this timer?"); + v->setTitleText(tr("Delete timer")); + v->setMainText(tr("Are you sure you want to delete this timer?")); v->setDefault(VQuestion::NO); if (Video::getInstance()->getFormat() == Video::PAL) v->setPosition(230, 160); -- 2.39.5