2 * i18n.h: Internationalization
4 * This code is taken from the VDR project and modified for VOMP.
5 * See the main source file 'vdr.c' for original copyright information.
6 * Modifications (C) 2005 D Pickles.
8 This file is part of VOMP.
10 VOMP is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2 of the License, or
13 (at your option) any later version.
15 VOMP is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with VOMP; if not, write to the Free Software
22 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
33 #include "language-data.h"
36 #define tr(s) I18n::translate(s)
41 static int initialize(void);
42 static char* translate(char* s);
44 static const char* LanguageName(int index);
45 static int LanguageIndex(const char* name);
46 static int GetNumLanguages(void);
48 const char* const * CharSets(void);
49 const char* const LanguageCode(int Index);
51 const static int NumLanguages = NUM_LANGUAGES;
52 const static char* const Languages[];
55 static int LanguageID;
56 const static char* const charSets[];
57 const static char* const languageCodes[];
58 typedef char* tI18nPhrase[NumLanguages];
59 const static tI18nPhrase Phrases[];