adding i18n strings
[open-ps2-loader.git] / include / lang.h
blobd4f8ded86c3d07e532514f5d374fb2690c012ff9
1 #ifndef __LANG_H
2 #define __LANG_H
4 // list of localized string ids
5 #define _STR_LOCALE 0 // Localized language name
6 #define _STR_WELCOME 1
7 #define _STR_OUL_VER 2
8 #define _STR_SAVE_CHANGES 3
9 #define _STR_O_BACK 4
10 #define _STR_IPCONFIG 5
11 #define _STR_NO_ITEMS 6
12 #define _STR_SETTINGS_SAVED 7
13 #define _STR_ERROR_SAVING_SETTINGS 8
14 #define _STR_EXIT 9
15 #define _STR_SETTINGS 10
16 #define _STR_USB_GAMES 11
17 #define _STR_HDD_GAMES 12
18 #define _STR_NET_GAMES 13
19 #define _STR_APPS 14
20 #define _STR_THEME 15
21 #define _STR_LANGUAGE 16
22 #define _STR_NETWORK_STARTUP_ERROR 17
23 #define _STR_ON 18
24 #define _STR_OFF 19
25 #define _STR_OK 20
26 #define _STR_COMPAT_SETTINGS 21
27 #define _STR_REMOVE_ALL_SETTINGS 22
28 #define _STR_REMOVED_ALL_SETTINGS 23
29 #define _STR_SCROLLING 24
30 #define _STR_SLOW 25
31 #define _STR_MEDIUM 26
32 #define _STR_FAST 27
33 #define _STR_DEFDEVICE 28
34 #define _STR_LOAD_FROM_DISC 29
35 #define _STR_PLEASE_WAIT 30
36 #define _STR_ERROR_LOADING_ID 31
37 #define _STR_AUTOSORT 32
38 #define _STR_ERR_LOADING_LANGFILE 33
39 #define _STR_DEBUG 34
40 #define _STR_NO_CONTROLLER 35
41 #define _STR_COVERART 36
42 #define _STR_WIDE_SCREEN 37
43 #define _STR_POWEROFF 38
44 #define _STR_LOADING_SETTINGS 39
45 #define _STR_SAVING_SETTINGS 40
46 #define _STR_START_DEVICE 41
47 #define _STR_USBMODE 42
48 #define _STR_HDDMODE 43
49 #define _STR_ETHMODE 44
50 #define _STR_APPMODE 45
51 #define _STR_AUTO 46
52 #define _STR_MANUAL 47
53 #define _STR_STARTHDL 48
54 #define _STR_STARTINGHDL 49
55 #define _STR_RUNNINGHDL 50
56 #define _STR_STOPHDL 51
57 #define _STR_UNLOADHDL 52
58 #define _STR_EXITTO 53
59 #define _STR_BGCOLOR 54
60 #define _STR_TXTCOLOR 55
61 #define _STR_IP 56
62 #define _STR_MASK 57
63 #define _STR_GATEWAY 58
64 #define _STR_PORT 59
65 #define _STR_SHARE 60
66 #define _STR_USER 61
67 #define _STR_PASSWORD 62
68 #define _STR_NOT_SET 63
69 #define _STR_X_ACCEPT 64
70 #define _STR_DELETE_WARNING 65
71 #define _STR_RENAME 66
72 #define _STR_DELETE 67
73 #define _STR_RUN 68
74 #define _STR_GFX_SETTINGS 69
75 #define _STR_DANDROP 70
76 #define _STR_CHECKUSBFRAG 71
77 #define _STR_LASTPLAYED 72
78 #define _STR_ERR_FRAGMENTED 73
79 #define _STR_ERR_FILE_INVALID 74
80 #define _STR_TEST 75
81 #define _STR_HINT_GUEST 76
82 #define _STR_HINT_MODE1 77
83 #define _STR_HINT_MODE2 78
84 #define _STR_HINT_MODE3 79
85 #define _STR_HINT_MODE4 80
86 #define _STR_HINT_MODE5 81
87 #define _STR_HINT_MODE6 82
88 #define _STR_HINT_MODE7 83
89 #define _STR_HINT_MODE8 84
90 #define _STR_HINT_MODE9 85
91 #define _STR_HINT_VMC_SIZE 86
92 #define _STR_CREATE 87
93 #define _STR_MODIFY 88
94 #define _STR_ABORT 89
95 #define _STR_RESET 90
96 #define _STR_USE_GENERIC 91
97 #define _STR_VMC_SCREEN 92
98 #define _STR_VMC_NAME 93
99 #define _STR_VMC_SIZE 94
100 #define _STR_VMC_STATUS 95
101 #define _STR_VMC_PROGRESS 96
102 #define _STR_VMC_FILE_EXISTS 97
103 #define _STR_VMC_FILE_ERROR 98
104 #define _STR_VMC_FILE_NEW 99
105 #define _STR_ERR_VMC_CONTINUE 100
106 #define _STR_AUTOREFRESH 101
107 #define _STR_ABOUT 102
108 #define _STR_DEVS 103
109 #define _STR_USB_DELAY 104
110 #define _STR_USB_PREFIX 105
111 #define _STR_HINT_EXITPATH 106
112 #define _STR_HINT_SPINDOWN 107
113 #define _STR_HDD_SPINDOWN 108
114 #define _STR_VMODE 109
115 #define _STR_UICOLOR 110
116 #define _STR_SELCOLOR 111
117 #define _STR_USE_INFO_SCREEN 112
118 #define _STR_INFO 113
119 #define _STR_ALTSTARTUP 114
120 #define _STR_COLOR_SELECTION 115
121 #define _STR_RECONNECT 116
122 #define _STR_HINT_SHARENAME 117
123 #define _STR_ETH_PREFIX 118
124 #define _STR_BACKSPACE 119
125 #define _STR_SPACE 120
126 #define _STR_ENTER 121
127 #define _STR_MODE 122
128 #define _STR_VMC_SLOT1 123
129 #define _STR_VMC_SLOT2 124
130 #define _STR_GAME_ID 125
131 #define _STR_DMA_MODE 126
132 #define _STR_VSYNC 127
133 #define _STR_MODE1 128
134 #define _STR_MODE2 129
135 #define _STR_MODE3 130
136 #define _STR_MODE4 131
137 #define _STR_MODE5 132
138 #define _STR_MODE6 133
139 #define _STR_MODE7 134
140 #define _STR_MODE8 135
141 #define _STR_MODE9 136
143 #define LANG_STR_COUNT 137
145 // Maximum external languages supported
146 #define MAX_LANGUAGE_FILES 15
148 // getter for a localised string version
149 extern char *_l(unsigned int id);
151 typedef struct {
152 char* filePath;
153 char* name;
154 } language_t;
156 void lngInit();
157 char* lngGetValue();
158 void lngEnd();
160 // Indices are shifted in GUI, as we add the internal english language at 0
161 void lngSetGuiValue(int langGuiId);
162 int lngGetGuiValue();
163 int lngFindGuiID(char* lang);
164 char **lngGetGuiList();
166 #endif