- neutrinoapi: localize some hardcoded stings

This commit is contained in:
svenhoefer
2016-02-20 15:32:54 +01:00
parent 8375f9ffb6
commit 25af9dea82
3 changed files with 29 additions and 27 deletions

View File

@@ -334,33 +334,33 @@ std::string CNeutrinoAPI::timerEventType2Str(CTimerd::CTimerEventTypes type)
std::string result; std::string result;
switch (type) { switch (type) {
case CTimerd::TIMER_SHUTDOWN: case CTimerd::TIMER_SHUTDOWN:
result = "Shutdown"; result = "{=L:timerlist.type.shutdown=}";
break; break;
#if 0 #if 0
case CTimerd::TIMER_NEXTPROGRAM: case CTimerd::TIMER_NEXTPROGRAM:
result = "Next program"; result = "{=L:timerlist.type.nextprogram=}";
break; break;
#endif #endif
case CTimerd::TIMER_ZAPTO: case CTimerd::TIMER_ZAPTO:
result = "Zap to"; result = "{=L:timerlist.type.zapto=}";
break; break;
case CTimerd::TIMER_STANDBY: case CTimerd::TIMER_STANDBY:
result = "Standby"; result = "{=L:timerlist.type.standby=}";
break; break;
case CTimerd::TIMER_RECORD: case CTimerd::TIMER_RECORD:
result = "Record"; result = "{=L:timerlist.type.record=}";
break; break;
case CTimerd::TIMER_REMIND: case CTimerd::TIMER_REMIND:
result = "Reminder"; result = "{=L:timerlist.type.remind=}";
break; break;
case CTimerd::TIMER_EXEC_PLUGIN: case CTimerd::TIMER_EXEC_PLUGIN:
result = "Execute plugin"; result = "{=L:timerlist.type.execplugin=}";
break; break;
case CTimerd::TIMER_SLEEPTIMER: case CTimerd::TIMER_SLEEPTIMER:
result = "Sleeptimer"; result = "{=L:timerlist.type.sleeptimer=}";
break; break;
default: default:
result = "Unknown"; result = "{=L:timerlist.type.unknown=}";
break; break;
} }
return result; return result;
@@ -373,49 +373,49 @@ std::string CNeutrinoAPI::timerEventRepeat2Str(CTimerd::CTimerEventRepeat rep)
std::string result; std::string result;
switch (rep) { switch (rep) {
case CTimerd::TIMERREPEAT_ONCE: case CTimerd::TIMERREPEAT_ONCE:
result = "once"; result = "{=L:timerlist.repeat.once=}";
break; break;
case CTimerd::TIMERREPEAT_DAILY: case CTimerd::TIMERREPEAT_DAILY:
result = "daily"; result = "{=L:timerlist.repeat.daily=}";
break; break;
case CTimerd::TIMERREPEAT_WEEKLY: case CTimerd::TIMERREPEAT_WEEKLY:
result = "weekly"; result = "{=L:timerlist.repeat.weekly=}";
break; break;
case CTimerd::TIMERREPEAT_BIWEEKLY: case CTimerd::TIMERREPEAT_BIWEEKLY:
result = "2-weekly"; result = "{=L:timerlist.repeat.biweekly=}";
break; break;
case CTimerd::TIMERREPEAT_FOURWEEKLY: case CTimerd::TIMERREPEAT_FOURWEEKLY:
result = "4-weekly"; result = "{=L:timerlist.repeat.fourweekly=}";
break; break;
case CTimerd::TIMERREPEAT_MONTHLY: case CTimerd::TIMERREPEAT_MONTHLY:
result = "monthly"; result = "{=L:timerlist.repeat.monthly=}";
break; break;
case CTimerd::TIMERREPEAT_BYEVENTDESCRIPTION: case CTimerd::TIMERREPEAT_BYEVENTDESCRIPTION:
result = "event"; result = "{=L:timerlist.repeat.byeventdescription=}";
break; break;
case CTimerd::TIMERREPEAT_WEEKDAYS: case CTimerd::TIMERREPEAT_WEEKDAYS:
result = "weekdays"; result = "{=L:timerlist.repeat.weekdays=}";
break; break;
default: default:
if (rep > CTimerd::TIMERREPEAT_WEEKDAYS) if (rep > CTimerd::TIMERREPEAT_WEEKDAYS)
{ {
if (rep & 0x0200) if (rep & 0x0200)
result += "Mo "; result += "{=L:date.mo=} ";
if (rep & 0x0400) if (rep & 0x0400)
result += "Tu "; result += "{=L:date.tu=} ";
if (rep & 0x0800) if (rep & 0x0800)
result += "We "; result += "{=L:date.we=} ";
if (rep & 0x1000) if (rep & 0x1000)
result += "Th "; result += "{=L:date.th=} ";
if (rep & 0x2000) if (rep & 0x2000)
result += "Fr "; result += "{=L:date.fr=} ";
if (rep & 0x4000) if (rep & 0x4000)
result += "Sa "; result += "{=L:date.sa=} ";
if (rep & 0x8000) if (rep & 0x8000)
result += "Su "; result += "{=L:date.su=} ";
} }
else else
result = "Unknown"; result = "{=L:timerlist.type.unknown=}";
} }
return result; return result;
} }
@@ -427,7 +427,7 @@ std::string CNeutrinoAPI::getVideoAspectRatioAsString(void)
if (aspectRatio >= 0 && aspectRatio <= 4) if (aspectRatio >= 0 && aspectRatio <= 4)
return videoformat_names[aspectRatio]; return videoformat_names[aspectRatio];
else else
return "unknown"; return "{=L:unknown=}";
} }
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
int CNeutrinoAPI::setVideoAspectRatioAsString(std::string newRatioString) int CNeutrinoAPI::setVideoAspectRatioAsString(std::string newRatioString)
@@ -457,7 +457,7 @@ std::string CNeutrinoAPI::getVideoResolutionAsString(void)
std::string CNeutrinoAPI::getVideoFramerateAsString(void) std::string CNeutrinoAPI::getVideoFramerateAsString(void)
{ {
int xres, yres, framerate; int xres, yres, framerate;
std::string sframerate="unknown"; std::string sframerate = "{=L:unknown=}";
videoDecoder->getPictureInfo(xres, yres, framerate); videoDecoder->getPictureInfo(xres, yres, framerate);
switch(framerate){ switch(framerate){
case 2: case 2:

View File

@@ -58,6 +58,7 @@ restriced_by_management_ip=Zugriff verwehrt wg. ManagementIP
automatic=automatisch automatic=automatisch
show=zeigen show=zeigen
hide=verstecken hide=verstecken
unknown=Unbekannt
# ========== Dates # ========== Dates
date.su=So date.su=So

View File

@@ -58,6 +58,7 @@ restriced_by_management_ip=restricted by ManagementIP
automatic=automatically automatic=automatically
show=show show=show
hide=hide hide=hide
unknown=Unknown
# ========== Dates # ========== Dates
date.su=Su date.su=Su