2014-08-15 00:46:36 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* Copyright (c) 2014 Ted John
|
|
|
|
* OpenRCT2, an open source clone of Roller Coaster Tycoon 2.
|
|
|
|
*
|
|
|
|
* This file is part of OpenRCT2.
|
|
|
|
*
|
|
|
|
* OpenRCT2 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 _LANGUAGE_H_
|
|
|
|
#define _LANGUAGE_H_
|
|
|
|
|
2014-10-06 18:36:58 +02:00
|
|
|
#include "../common.h"
|
2014-08-15 00:46:36 +02:00
|
|
|
|
|
|
|
enum {
|
|
|
|
LANGUAGE_UNDEFINED,
|
|
|
|
LANGUAGE_ENGLISH_UK,
|
|
|
|
LANGUAGE_ENGLISH_US,
|
2014-10-21 02:08:55 +02:00
|
|
|
LANGUAGE_GERMAN,
|
2014-08-15 00:46:36 +02:00
|
|
|
LANGUAGE_DUTCH,
|
2014-08-15 01:13:08 +02:00
|
|
|
LANGUAGE_FRENCH,
|
2014-08-19 21:17:20 +02:00
|
|
|
LANGUAGE_HUNGARIAN,
|
2014-08-20 21:32:09 +02:00
|
|
|
LANGUAGE_POLISH,
|
|
|
|
LANGUAGE_SPANISH,
|
2014-09-11 13:05:18 +02:00
|
|
|
LANGUAGE_SWEDISH,
|
2015-03-18 12:34:16 +01:00
|
|
|
LANGUAGE_ITALIAN,
|
2015-06-21 14:53:04 +02:00
|
|
|
LANGUAGE_PORTUGUESE_BR,
|
2015-07-26 14:58:53 +02:00
|
|
|
LANGUAGE_CHINESE_TRADITIONAL,
|
2014-08-15 00:46:36 +02:00
|
|
|
LANGUAGE_COUNT
|
|
|
|
};
|
|
|
|
|
|
|
|
extern const char *language_names[LANGUAGE_COUNT];
|
|
|
|
extern int gCurrentLanguage;
|
|
|
|
|
|
|
|
const char *language_get_string(rct_string_id id);
|
|
|
|
int language_open(int id);
|
2015-06-08 18:16:18 +02:00
|
|
|
void language_close_all();
|
2014-08-15 00:46:36 +02:00
|
|
|
|
2015-02-25 15:06:29 +01:00
|
|
|
rct_string_id object_get_localised_text(uint8_t** pStringTable/*ebp*/, int type/*ecx*/, int index/*ebx*/, int tableindex/*edx*/);
|
|
|
|
|
2015-07-26 01:55:17 +02:00
|
|
|
uint32 utf8_get_next(const utf8 *char_ptr, const utf8 **nextchar_ptr);
|
|
|
|
utf8 *utf8_write_codepoint(utf8 *dst, uint32 codepoint);
|
|
|
|
|
2014-10-21 02:08:55 +02:00
|
|
|
#endif
|