69 lines
1.7 KiB
C
69 lines
1.7 KiB
C
|
/* REminiscence - Flashback interpreter
|
||
|
* Copyright (C) 2005-2015 Gregory Montoir
|
||
|
*
|
||
|
* This program is free software: you can redistribute it and/or modify
|
||
|
* it under the terms of the GNU General Public License as published by
|
||
|
* the Free Software Foundation, either version 3 of the License, or
|
||
|
* (at your option) any later version.
|
||
|
*
|
||
|
* This program is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
* GNU General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU General Public License
|
||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
|
*/
|
||
|
|
||
|
#ifndef LOCALE_H__
|
||
|
#define LOCALE_H__
|
||
|
|
||
|
#include "intern.h"
|
||
|
|
||
|
struct Locale {
|
||
|
enum Id {
|
||
|
LI_01_CONTINUE_OR_ABORT = 0,
|
||
|
LI_02_TIME,
|
||
|
LI_03_CONTINUE,
|
||
|
LI_04_ABORT,
|
||
|
LI_05_COMPLETED,
|
||
|
LI_06_LEVEL,
|
||
|
LI_07_START,
|
||
|
LI_08_SKILL,
|
||
|
LI_09_PASSWORD,
|
||
|
LI_10_INFO,
|
||
|
LI_11_QUIT,
|
||
|
LI_12_SKILL_LEVEL,
|
||
|
LI_13_EASY,
|
||
|
LI_14_NORMAL,
|
||
|
LI_15_EXPERT,
|
||
|
LI_16_ENTER_PASSWORD1,
|
||
|
LI_17_ENTER_PASSWORD2,
|
||
|
LI_18_RESUME_GAME,
|
||
|
LI_19_ABORT_GAME,
|
||
|
LI_20_LOAD_GAME,
|
||
|
LI_21_SAVE_GAME,
|
||
|
LI_22_SAVE_SLOT,
|
||
|
|
||
|
LI_NUM
|
||
|
};
|
||
|
|
||
|
static const char *_textsTableFR[];
|
||
|
static const char *_textsTableEN[];
|
||
|
static const char *_textsTableDE[];
|
||
|
static const char *_textsTableSP[];
|
||
|
static const uint8_t _stringsTableFR[];
|
||
|
static const uint8_t _stringsTableEN[];
|
||
|
static const uint8_t _stringsTableDE[];
|
||
|
static const uint8_t _stringsTableSP[];
|
||
|
|
||
|
Version _ver;
|
||
|
const char **_textsTable;
|
||
|
const uint8_t *_stringsTable;
|
||
|
|
||
|
Locale(Version ver);
|
||
|
const char *get(int id) const;
|
||
|
};
|
||
|
|
||
|
#endif // LOCALE_H__
|