From 6094765d94e4caaf0813039dff826b731f277753 Mon Sep 17 00:00:00 2001 From: lordjaxom Date: Sat, 5 Jun 2004 18:06:22 +0000 Subject: - added scrollable texts and "SymbolScrollUp" and "SymbolScrollDown" - 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 --- i18n.c | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'i18n.c') diff --git a/i18n.c b/i18n.c index 0583ae1..7c28ca6 100644 --- a/i18n.c +++ b/i18n.c @@ -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++; -- cgit v1.2.3