Files
@ r10673:d53513e30781
Branch filter:
Location: cpp/openttd-patchpack/source/src/strings_func.h - annotation
r10673:d53513e30781
1.6 KiB
text/x-c
(svn r14977) -Update: WebTranslator2 update to 2009-01-10 18:44:17
arabic_egypt - 4 fixed by khaloofah (4)
brazilian_portuguese - 26 fixed by tucalipe (26)
bulgarian - 3 fixed by Ar4i (3)
catalan - 3 fixed by arnaullv (3)
croatian - 35 fixed by tifached (35)
czech - 52 fixed, 10 changed by Hadez (62)
danish - 4 fixed by ThomasA (4)
dutch - 6 fixed by Excel20 (4), habell (2)
finnish - 15 fixed by UltimateSephiroth (15)
french - 15 fixed by glx (15)
hungarian - 6 fixed by alyr (6)
indonesian - 6 fixed, 64 changed by fanioz (70)
italian - 3 fixed, 1 changed by lorenzodv (4)
portuguese - 6 fixed by rmrebelo (6)
romanian - 6 fixed by kkmic (6)
arabic_egypt - 4 fixed by khaloofah (4)
brazilian_portuguese - 26 fixed by tucalipe (26)
bulgarian - 3 fixed by Ar4i (3)
catalan - 3 fixed by arnaullv (3)
croatian - 35 fixed by tifached (35)
czech - 52 fixed, 10 changed by Hadez (62)
danish - 4 fixed by ThomasA (4)
dutch - 6 fixed by Excel20 (4), habell (2)
finnish - 15 fixed by UltimateSephiroth (15)
french - 15 fixed by glx (15)
hungarian - 6 fixed by alyr (6)
indonesian - 6 fixed, 64 changed by fanioz (70)
italian - 3 fixed, 1 changed by lorenzodv (4)
portuguese - 6 fixed by rmrebelo (6)
romanian - 6 fixed by kkmic (6)
r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8445:07810e0b20bf r8114:866ed489ed98 r10197:a65cfa37d4ad r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 r8321:b008a9407302 r8321:b008a9407302 r8321:b008a9407302 r8330:b2f77e5f39e7 r8321:b008a9407302 r8321:b008a9407302 r8114:866ed489ed98 r8114:866ed489ed98 r8114:866ed489ed98 | /* $Id$ */
/** @file strings_func.h Functions related to OTTD's strings. */
#ifndef STRINGS_FUNC_H
#define STRINGS_FUNC_H
#include "strings_type.h"
char *InlineString(char *buf, StringID string);
char *GetString(char *buffr, StringID string, const char *last);
const char *GetStringPtr(StringID string);
void InjectDParam(uint amount);
static inline void SetDParamX(uint64 *s, uint n, uint64 v)
{
s[n] = v;
}
static inline void SetDParam(uint n, uint64 v)
{
extern uint64 _decode_parameters[20];
assert(n < lengthof(_decode_parameters));
_decode_parameters[n] = v;
}
void SetDParamStr(uint n, const char *str);
static inline uint64 GetDParamX(const uint64 *s, uint n)
{
return s[n];
}
static inline uint64 GetDParam(uint n)
{
extern uint64 _decode_parameters[20];
assert(n < lengthof(_decode_parameters));
return _decode_parameters[n];
}
static inline void CopyInDParam(int offs, const uint64 *src, int num)
{
extern uint64 _decode_parameters[20];
memcpy(_decode_parameters + offs, src, sizeof(uint64) * (num));
}
static inline void CopyOutDParam(uint64 *dst, int offs, int num)
{
extern uint64 _decode_parameters[20];
memcpy(dst, _decode_parameters + offs, sizeof(uint64) * (num));
}
extern DynamicLanguages _dynlang; // defined in strings.cpp
bool ReadLanguagePack(int index);
void InitializeLanguagePacks();
int CDECL StringIDSorter(const void *a, const void *b);
/** Key comparison function for std::map */
struct StringIDCompare
{
bool operator()(StringID s1, StringID s2) const { return StringIDSorter(&s1, &s2) < 0; }
};
void CheckForMissingGlyphsInLoadedLanguagePack();
#endif /* STRINGS_TYPE_H */
|