diff options
author | lordjaxom <lordjaxom> | 2004-06-05 18:06:22 +0000 |
---|---|---|
committer | lordjaxom <lordjaxom> | 2004-06-05 18:06:22 +0000 |
commit | 6094765d94e4caaf0813039dff826b731f277753 (patch) | |
tree | fed79334167f26d5a81a6cae9be3f1341375a36f /i18n.c | |
parent | e0c2ee1d37c0f213f22a04df71710bebe3526f85 (diff) | |
download | vdr-plugin-text2skin-6094765d94e4caaf0813039dff826b731f277753.tar.gz vdr-plugin-text2skin-6094765d94e4caaf0813039dff826b731f277753.tar.bz2 |
- added scrollable texts and "SymbolScrollUp" and "SymbolScrollDown"v0.0.1
- added "MenuText", "MenuEventTitle", "MenuEventShortText",
"MenuEventDescription", "MenuEventTime", "MenuRecording",
"SymbolEventRunning", "SymbolEventTimer" and "SymbolEventVPS"
- implemented image caching
- added english and german README
- removed some workarounds, and added a patch to vdr to the tree (will be
included in 1.3.10)
- fixed two bugs when displaying replay symbols
- implemented tabbed texts in menu
Diffstat (limited to 'i18n.c')
-rw-r--r-- | i18n.c | 18 |
1 files changed, 13 insertions, 5 deletions
@@ -1,5 +1,5 @@ /* - * $Id: i18n.c,v 1.1 2004/06/02 20:43:05 lordjaxom Exp $ + * $Id: i18n.c,v 1.2 2004/06/05 16:52:44 lordjaxom Exp $ */ #include "i18n.h" @@ -24,12 +24,20 @@ bool cText2SkinI18n::Parse(const char *Text) { memset(&p, 0, sizeof(tI18nPhrase)); Text += 17; + for (i = 0; i < I18nNumLanguages; ++i) { + char *langs = strdup(I18nLanguageCode(i)); + char *ptr = langs, *ep; string text; - if (ParseVar(Text, I18nLanguageCode(i), text)) - p[i] = strdup(text.c_str()); - else - p[i] = ""; + p[i] = ""; + do { + if ((ep = strchr(ptr, ',')) != NULL) + *ep = '\0'; + if (ParseVar(Text, ptr, text)) + p[i] = strdup(text.c_str()); + ptr = ep + 1; + } while (ep != NULL); + free(langs); } int idx = mNumPhrases++; |