diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2015-09-11 08:38:11 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2015-09-11 08:38:11 +0200 |
commit | 2491984da38cc12824a6d5063227f0e9c78d33a6 (patch) | |
tree | c4ae27ef2c35d995fcaf010c7ec90fae82137f5e | |
parent | f1bef11f45f4e3450b51d4c4b5ccf4f52e7039e9 (diff) | |
download | vdr-2491984da38cc12824a6d5063227f0e9c78d33a6.tar.gz vdr-2491984da38cc12824a6d5063227f0e9c78d33a6.tar.bz2 |
Centralized remote timer error messages
-rw-r--r-- | menu.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.c 4.8 2015/09/11 08:28:51 kls Exp $ + * $Id: menu.c 4.9 2015/09/11 08:38:11 kls Exp $ */ #include "menu.h" @@ -1064,7 +1064,7 @@ eOSState cMenuEditTimer::SetFolder(void) static bool RemoteTimerError(const cTimer *Timer) { - Skins.Message(mtError, cString::sprintf(tr("Error while accessing remote timer %d@%s!"), Timer->Id(), Timer->Remote())); + Skins.Message(mtError, cString::sprintf("%s %d@%s!", tr("Error while accessing remote timer"), Timer->Id(), Timer->Remote())); return false; // convenience return code } @@ -1334,7 +1334,7 @@ eOSState cMenuTimers::OnOff(void) if (Timer->Remote()) { cStringList Response; if (!ExecSVDRPCommand(Timer->Remote(), cString::sprintf("MODT %d %s", Timer->Id(), *Timer->ToText(true)), &Response) || SVDRPCode(Response[0]) != 250) - Skins.Message(mtError, cString::sprintf(tr("Error while accessing timer %d@%s!"), Timer->Id(), Timer->Remote())); + RemoteTimerError(Timer); } LOCK_SCHEDULES_READ; Timer->SetEventFromSchedule(Schedules); @@ -1384,7 +1384,7 @@ eOSState cMenuTimers::Delete(void) if (Timer->Remote()) { cStringList Response; if (!ExecSVDRPCommand(Timer->Remote(), cString::sprintf("DELT %d", Timer->Id()), &Response) || SVDRPCode(Response[0]) != 250) - Skins.Message(mtError, cString::sprintf(tr("Error while accessing timer %d@%s!"), Timer->Id(), Timer->Remote())); + RemoteTimerError(Timer); } Timers->Del(Timer); cOsdMenu::Del(Current()); |