1. ifcaro
  2. Open PS2 Loader

Source

Open PS2 Loader / include / lang.h

#ifndef __LANG_H
#define __LANG_H

// list of localised string ids
#define _STR_WELCOME 0
#define _STR_OUL_VER 1
#define _STR_THEME_CONFIG 2
#define _STR_IP_CONFIG 3
#define _STR_SAVE_CHANGES 4
#define _STR_O_BACK 5
#define _STR_SCROLL_SLOW 6
#define _STR_SCROLL_MEDIUM 7
#define _STR_SCROLL_FAST 8
#define _STR_MENU_DYNAMIC 9
#define _STR_MENU_STATIC 10
#define _STR_CONFIG_THEME 11
#define _STR_IPCONFIG 12
#define _STR_SELECT_LANG 13
#define _STR_NO_ITEMS 14
#define _STR_NOT_AVAILABLE 15
#define _STR_SETTINGS_SAVED 16
#define _STR_ERROR_SAVING_SETTINGS 17
#define _STR_EXIT 18
#define _STR_SETTINGS 19
#define _STR_USB_GAMES 20
#define _STR_HDD_GAMES 21
#define _STR_NET_GAMES 22
#define _STR_APPS 23
#define _STR_THEME 24
#define _STR_LANGUAGE 25
// Menu item text directly...
#define _STR_LANG_NAME 26
#define _STR_START_NETWORK 27
#define _STR_NETWORK_LOADING 28
#define _STR_NETWORK_STARTUP_ERROR 29
#define _STR_NETWORK_AUTOSTART 30
#define _STR_ON 31
#define _STR_OFF 32
#define _STR_OK 33
#define _STR_COMPAT_SETTINGS 34
#define _STR_REMOVE_ALL_SETTINGS 35
#define _STR_REMOVED_ALL_SETTINGS 36
#define _STR_SCROLLING 37
#define _STR_MENUTYPE 38
#define _STR_SLOW 39
#define _STR_MEDIUM 40
#define _STR_FAST 41
#define _STR_STATIC 42
#define _STR_DYNAMIC 43
#define _STR_DEFDEVICE 44
#define _STR_LOAD_FROM_DISC 45
#define  _STR_PLEASE_WAIT 46
#define  _STR_ERROR_LOADING_ID 47
#define _STR_USEHDD 48
#define _STR_AUTOSTARTHDD 49
#define _STR_STARTHDD 50
#define _STR_AUTOSORT 51
#define _STR_ERR_LOADING_LANGFILE 52
#define _STR_DEBUG 53
#define _STR_NO_CONTROLLER 54

// Language ID's
#define _LANG_ID_ENGLISH 0
#define _LANG_ID_CZECH 1
#define _LANG_ID_SPANISH 2
#define _LANG_ID_FRENCH 3
#define _LANG_ID_GERMAN 4
#define _LANG_ID_PORTUGUESE 5
#define _LANG_ID_NORWEGIAN 6
#define _LANG_ID_TURKISH 7
#define _LANG_ID_POLISH 8
#define _LANG_ID_RUSSIAN 9
#define _LANG_ID_INDONESIAN 10
#define _LANG_ID_BULGARIAN 11
#define _LANG_ID_DUTCH 12
#define _LANG_ID_CUSTOM 13

// set to the maximal ID
#define _LANG_ID_MAX 13

// getter for a localised string version
extern char *_l(unsigned int id);

// language setter (see _LANG_ID constants)
void setLanguage(int langID);

/** @return nonzero for cyrillic languages */
int langIsCyrillic();

const char **getLanguageList();

int initLangSystem();
void deinitLangSystem();
#endif