diff options
| author | louis <louis.braun@gmx.de> | 2015-05-22 14:58:51 +0200 |
|---|---|---|
| committer | louis <louis.braun@gmx.de> | 2015-05-22 14:58:51 +0200 |
| commit | 0936766c7be02661f1cd678fdd1b6fb22b5d122c (patch) | |
| tree | 7bdafa6c4b020a05e1d62be9159034324a746aa6 /libtemplate/templateview.c | |
| parent | 5c365b57620282a2bfc52b77a5d22aea1bbbc46b (diff) | |
| parent | d405f84b550e6da420c66c3d3a0318efe43de8de (diff) | |
| download | vdr-plugin-skindesigner-0936766c7be02661f1cd678fdd1b6fb22b5d122c.tar.gz vdr-plugin-skindesigner-0936766c7be02661f1cd678fdd1b6fb22b5d122c.tar.bz2 | |
Merge branch 'master' into installer
Diffstat (limited to 'libtemplate/templateview.c')
| -rw-r--r-- | libtemplate/templateview.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libtemplate/templateview.c b/libtemplate/templateview.c index 869daf6..ac1c2e7 100644 --- a/libtemplate/templateview.c +++ b/libtemplate/templateview.c @@ -434,6 +434,21 @@ void cTemplateView::Translate(void) { func->SetTranslatedText(translation); } } + if (func->GetType() == ftLoop) { + cTemplateLoopFunction *funcsLoop = dynamic_cast<cTemplateLoopFunction*>(func); + funcsLoop->InitIterator(); + cTemplateFunction *loopFunc = NULL; + while(loopFunc = funcsLoop->GetNextFunction()) { + if (loopFunc->GetType() == ftDrawText || loopFunc->GetType() == ftDrawTextBox || func->GetType() == ftDrawTextVertical) { + string text = loopFunc->GetParameter(ptText); + string translation; + bool translated = globals->Translate(text, translation); + if (translated) { + loopFunc->SetTranslatedText(translation); + } + } + } + } } } } |
