|
1 // localztn.h |
|
2 // Devious Licks Localization |
|
3 |
|
4 /* |
|
5 Copyright (c) 2023 MCL Software |
|
6 |
|
7 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), |
|
8 to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, |
|
9 and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: |
|
10 |
|
11 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. |
|
12 |
|
13 THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
14 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
|
15 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
|
16 */ |
|
17 |
|
18 |
|
19 Uint8 language = 0; |
|
20 // 0 - US English |
|
21 // 1 - Russian |
|
22 // 2 - South American Spanish |
|
23 // 3 - German |
|
24 // 4 - Italian |
|
25 // 5 - Polish |
|
26 // 6 - Brazilian |
|
27 |
|
28 |
|
29 |
|
30 char* getTranslationForObject(char object) |
|
31 { |
|
32 if(language == 0) |
|
33 { |
|
34 switch(object) |
|
35 { |
|
36 case ' ': |
|
37 return "Floor"; |
|
38 |
|
39 case 'D': |
|
40 return "Exit Door"; |
|
41 |
|
42 case 'd': |
|
43 return "Classroom Door"; |
|
44 |
|
45 case 'W': |
|
46 return "White Wall"; |
|
47 |
|
48 case '#': |
|
49 return "Tiles"; |
|
50 |
|
51 case '-': |
|
52 return "Stall Divider"; |
|
53 |
|
54 case '|': |
|
55 return "Stall Divider"; |
|
56 |
|
57 case '~': |
|
58 return "Fire Alarm Strobe Light"; |
|
59 |
|
60 case '&': |
|
61 return "Hand Dryer"; |
|
62 |
|
63 case '^': |
|
64 return "Desk/Chair Combo"; |
|
65 |
|
66 case 'l': |
|
67 return "Table"; |
|
68 |
|
69 case 'L': |
|
70 return "Table"; |
|
71 |
|
72 case 'T': |
|
73 return "Fire Alarm Pull Station (T-Bar)"; |
|
74 |
|
75 case 'S': |
|
76 return "Soap Dispenser"; |
|
77 |
|
78 case 'F': |
|
79 return "Drinking Fountain"; |
|
80 |
|
81 case '`': |
|
82 return "Toilet"; |
|
83 |
|
84 case '=': |
|
85 return "Shelf"; |
|
86 |
|
87 case '@': |
|
88 return "Fire Extinguisher"; |
|
89 |
|
90 case 'G': |
|
91 return "Grass"; |
|
92 } |
|
93 return "Undefined Object"; |
|
94 } |
|
95 } |