OpenTTD Source
20241121-master-g67a0fccfad
|
Information about a single string. More...
#include <strgen.h>
Public Member Functions | |
LangString (const std::string &name, const std::string &english, size_t index, int line) | |
Create a new string. More... | |
void | FreeTranslation () |
Free all data related to the translation. | |
Data Fields | |
std::string | name |
Name of the string. | |
std::string | english |
English text. | |
std::string | translated |
Translated text. | |
size_t | index |
The index in the language file. | |
int | line |
Line of string in source-file. | |
std::vector< Case > | translated_cases |
Cases of the translation. | |
LangString::LangString | ( | const std::string & | name, |
const std::string & | english, | ||
size_t | index, | ||
int | line | ||
) |
Create a new string.
name | The name of the string. |
english | The english "translation" of the string. |
index | The index in the string table. |
line | The line this string was found on. |
Definition at line 53 of file strgen_base.cpp.