Translations update
[openttd/fttd.git] / src / strings_type.h
blob1acbbea485a0091350b4ce1bbbfd48019d70e786
1 /* $Id$ */
3 /*
4 * This file is part of OpenTTD.
5 * OpenTTD 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, version 2.
6 * OpenTTD 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.
7 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
8 */
10 /** @file strings_type.h Types related to strings. */
12 #ifndef STRINGS_TYPE_H
13 #define STRINGS_TYPE_H
15 /**
16 * Numeric value that represents a string, independent of the selected language.
18 typedef uint16 StringID;
19 static const StringID INVALID_STRING_ID = 0xFFFF; ///< Constant representing an invalid string
20 static const uint MAX_LANG = 0x7F; ///< Maximum number of languages supported by the game, and the NewGRF specs
22 /** Directions a text can go to */
23 enum TextDirection {
24 TD_LTR, ///< Text is written left-to-right by default
25 TD_RTL, ///< Text is written right-to-left by default
28 /** Special string constants */
29 enum SpecialStrings {
31 /* special strings for town names. the town name is generated dynamically on request. */
32 SPECSTR_TOWNNAME_START = 0x20C0,
33 SPECSTR_TOWNNAME_ENGLISH = SPECSTR_TOWNNAME_START,
34 SPECSTR_TOWNNAME_FRENCH,
35 SPECSTR_TOWNNAME_GERMAN,
36 SPECSTR_TOWNNAME_AMERICAN,
37 SPECSTR_TOWNNAME_LATIN,
38 SPECSTR_TOWNNAME_SILLY,
39 SPECSTR_TOWNNAME_SWEDISH,
40 SPECSTR_TOWNNAME_DUTCH,
41 SPECSTR_TOWNNAME_FINNISH,
42 SPECSTR_TOWNNAME_POLISH,
43 SPECSTR_TOWNNAME_SLOVAK,
44 SPECSTR_TOWNNAME_NORWEGIAN,
45 SPECSTR_TOWNNAME_HUNGARIAN,
46 SPECSTR_TOWNNAME_AUSTRIAN,
47 SPECSTR_TOWNNAME_ROMANIAN,
48 SPECSTR_TOWNNAME_CZECH,
49 SPECSTR_TOWNNAME_SWISS,
50 SPECSTR_TOWNNAME_DANISH,
51 SPECSTR_TOWNNAME_TURKISH,
52 SPECSTR_TOWNNAME_ITALIAN,
53 SPECSTR_TOWNNAME_CATALAN,
54 SPECSTR_TOWNNAME_LAST = SPECSTR_TOWNNAME_CATALAN,
56 /* special strings for company names on the form "TownName transport". */
57 SPECSTR_COMPANY_NAME_START = 0x70EA,
58 SPECSTR_COMPANY_NAME_LAST = SPECSTR_COMPANY_NAME_START + SPECSTR_TOWNNAME_LAST - SPECSTR_TOWNNAME_START,
60 SPECSTR_SILLY_NAME = 0x70E5,
61 SPECSTR_ANDCO_NAME = 0x70E6,
62 SPECSTR_PRESIDENT_NAME = 0x70E7,
64 /* reserve MAX_LANG strings for the *.lng files */
65 SPECSTR_LANGUAGE_START = 0x7100,
66 SPECSTR_LANGUAGE_END = SPECSTR_LANGUAGE_START + MAX_LANG - 1,
68 /* reserve 32 strings for various screen resolutions */
69 SPECSTR_RESOLUTION_START = SPECSTR_LANGUAGE_END + 1,
70 SPECSTR_RESOLUTION_END = SPECSTR_RESOLUTION_START + 0x1F,
72 /* reserve 32 strings for screenshot formats */
73 SPECSTR_SCREENSHOT_START = SPECSTR_RESOLUTION_END + 1,
74 SPECSTR_SCREENSHOT_END = SPECSTR_SCREENSHOT_START + 0x1F,
77 #endif /* STRINGS_TYPE_H */