Files @ r3747:5aa82ab659e3
Branch filter:

Location: cpp/openttd-patchpack/source/newgrf_text.h

miham
(svn r4735) WebTranslator2 update to 2006-05-04 16:19:23
czech - 1 changed by Hadez (1)
dutch - 3 fixed by webfreakz (3)
german - 1 fixed, 3 changed by Neonox (3), moewe2 (1)
hungarian - 2 changed by miham (2)
polish - 9 changed by meush (9)
portuguese - 3 fixed, 3 changed by izhirahider (6)
romanian - 58 fixed by kneekoo (58)
slovenian - 95 fixed by christooss (95)
turkish - 1 fixed by jnmbk (1)
/* $Id$ */
#ifndef NEWGRF_TEXT_H
#define NEWGRF_TEXT_H

/** @file
 * Header of Action 04 "universal holder" structure and functions
 */

/**
 * Element of the linked list.
 * Each of those elements represent the string,
 * but according to a different lang.
 */
typedef struct GRFText {
	byte langid;
	char *text;
	struct GRFText *next;
} GRFText;


/**
 * Holder of the above structure.
 * Putting both grfid and stringid togueter allow us to avoid duplicates,
 * since it is NOT SUPPOSED to happen.
 */
typedef struct GRFTextEntry {
	uint32 grfid;
	uint16 stringid;
	GRFText *textholder;
} GRFTextEntry;


StringID AddGRFString(uint32 grfid, uint16 stringid, byte langid, bool new_scheme, const char *text_to_add);
StringID GetGRFStringID(uint32 grfid, uint16 stringid);
char *GetGRFString(char *buff, uint16 stringid);
void CleanUpStrings(void);
void SetCurrentGrfLangID(const char *iso_name);

#endif /* NEWGRF_TEXT_H */