2 Commits

Author SHA1 Message Date
Joel Bodenmann 8d6b2c4707 GTRANS: Update /demos/modules/gtrans/basic 2 months ago
Joel Bodenmann 317db95c46 GTRANS: Update types 2 months ago
  1. 1
      demos/modules/gtrans/basic/gfxconf.h
  2. 2
      demos/modules/gtrans/basic/main.c
  3. 2
      src/gtrans/gtrans.c
  4. 4
      src/gtrans/gtrans.h

1
demos/modules/gtrans/basic/gfxconf.h

@ -42,7 +42,6 @@
#define GDISP_NEED_VALIDATION GFXON
#define GDISP_NEED_CLIP GFXON
#define GDISP_NEED_TEXT GFXON
#define GDISP_NEED_ANTIALIAS GFXON
#define GDISP_NEED_UTF8 GFXON
#define GDISP_NEED_TEXT_KERNING GFXON

2
demos/modules/gtrans/basic/main.c

@ -62,7 +62,7 @@ static const char* FrenchStrings[] = {
};
static const transTable FrenchTranslation = { sizeof(FrenchStrings)/sizeof(FrenchStrings[0]), FrenchStrings };
void updateText()
void updateText(void)
{
gCoord width = 400;
gCoord height = 30;

2
src/gtrans/gtrans.c

@ -51,7 +51,7 @@ const char* gtransString(const char* string)
return _languageCurrent->strings[i];
}
const char* gtransIndex(unsigned index)
const char* gtransIndex(gU32 index)
{
if (!_languageCurrent) {
return 0;

4
src/gtrans/gtrans.h

@ -27,7 +27,7 @@
* @brief A table containing translated strings.
*/
typedef struct transTable {
unsigned numEntries; /**< The number of strings that this table contains */
gU32 numEntries; /**< The number of strings that this table contains */
const char** strings; /**< The translated strings */
} transTable;
@ -59,7 +59,7 @@ const char* gtransString(const char* string);
*
* @return The string at the given index of the current language or 0 if it doesn't exist.
*/
const char* gtransIndex(unsigned index);
const char* gtransIndex(gU32 index);
/**
* @brief Set the base language.

Loading…
Cancel
Save