diff options
author | Martin Schirrmacher <vdr.skinflatplus@schirrmacher.eu> | 2014-04-25 10:53:30 +0200 |
---|---|---|
committer | Martin Schirrmacher <vdr.skinflatplus@schirrmacher.eu> | 2014-04-25 10:53:30 +0200 |
commit | 991b783d592dc86728cf0db406d8352afe94c6f1 (patch) | |
tree | aa173e8eb1541d130656941b752105a41e823bb2 | |
parent | b754266ea197d9f2ac414d70b02dda2a6b366af2 (diff) | |
download | skin-flatplus-991b783d592dc86728cf0db406d8352afe94c6f1.tar.gz skin-flatplus-991b783d592dc86728cf0db406d8352afe94c6f1.tar.bz2 |
use locale for comma values in epg info
-rw-r--r-- | displaymenu.c | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/displaymenu.c b/displaymenu.c index cf0a5c0d..da21460d 100644 --- a/displaymenu.c +++ b/displaymenu.c @@ -13,6 +13,7 @@ #include "symbols/1080/Cclocksml.xpm" #include "symbols/1080/Cvpssml.xpm" #include "flat.h" +#include "locale" cBitmap cFlatDisplayMenu::bmCNew(Cnew_xpm); cBitmap cFlatDisplayMenu::bmCArrowTurn(Carrowturn_xpm); @@ -1831,10 +1832,15 @@ void cFlatDisplayMenu::SetEvent(const cEvent *Event) { break; } } - if (audio.str().length() > 0) - textAdditional << endl << tr("Audio") << ": "<< audio.str(); - if (subtitle.str().length() > 0) + if (audio.str().length() > 0) { + if( textAdditional.str().length() > 0 ) + textAdditional << endl; + textAdditional << tr("Audio") << ": "<< audio.str(); + } if (subtitle.str().length() > 0) { + if( textAdditional.str().length() > 0 ) + textAdditional << endl; textAdditional << endl << tr("Subtitle") << ": "<< subtitle.str(); + } } } @@ -2330,6 +2336,8 @@ void cFlatDisplayMenu::SetRecording(const cRecording *Recording) { ostringstream text, textAdditional, recAdditional; text.imbue(std::locale("")); + textAdditional.imbue(std::locale("")); + recAdditional.imbue(std::locale("")); if (!isempty(recInfo->Description())) text << recInfo->Description() << endl << endl; @@ -2484,10 +2492,15 @@ void cFlatDisplayMenu::SetRecording(const cRecording *Recording) { break; } } - if (audio.str().length() > 0) - textAdditional << endl << tr("Audio") << ": "<< audio.str(); - if (subtitle.str().length() > 0) + if (audio.str().length() > 0) { + if( textAdditional.str().length() > 0 ) + textAdditional << endl; + textAdditional << tr("Audio") << ": "<< audio.str(); + } if (subtitle.str().length() > 0) { + if( textAdditional.str().length() > 0 ) + textAdditional << endl; textAdditional << endl << tr("Subtitle") << ": "<< subtitle.str(); + } } if (recInfo->Aux()) { string str_epgsearch = xml_substring(recInfo->Aux(), "<epgsearch>", "</epgsearch>"); |