Crazy Eddie's GUI System  ${CEGUI_VERSION}
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
LanguageStrings.h
1 /***********************************************************************
2 created: 24/11/2015
3 author: Lukas Meindl
4 *************************************************************************/
5 /***************************************************************************
6 * Copyright (C) 2004 - 2015 Paul D Turner & The CEGUI Development Team
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining
9 * a copy of this software and associated documentation files (the
10 * "Software"), to deal in the Software without restriction, including
11 * without limitation the rights to use, copy, modify, merge, publish,
12 * distribute, sublicense, and/or sell copies of the Software, and to
13 * permit persons to whom the Software is furnished to do so, subject to
14 * the following conditions:
15 *
16 * The above copyright notice and this permission notice shall be
17 * included in all copies or substantial portions of the Software.
18 *
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
20 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
22 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
23 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
24 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
25 * OTHER DEALINGS IN THE SOFTWARE.
26 ***************************************************************************/
27 
28 #ifndef _LanguageStrings_h_
29 #define _LanguageStrings_h_
30 
31 #include "CEGUI/String.h"
32 
33 using namespace CEGUI;
34 
35 namespace LanguageStrings
36 {
37 
38 static const unsigned int LangListSize = 12;
39 
40 static struct
41 {
42  encoded_char* Language;
44  encoded_char* Text;
45 } LangList[LangListSize] =
46 {
47  // A list of strings in different languages stored as hexadecimal UTF-8 code units
48  // Feel free to add your own language here.
49  // Since this is part of the source code we escape the characters to ensure greater
50  // support and so that we do not have to encode the file itself. Normally you would load
51  // the text from an UTF-8 encoded file, where you could regular unescaped unicode characters.
52  // So do not be afraid by the looks of this ;) We just want to avoid having to extra load any
53  // files in the samples to keep it simple.
54  {
55  (encoded_char*)"Sandbox",
56  (encoded_char*)"DejaVuSans-12",
57  (encoded_char*)"Try out writing text in any language here. The used font can be changed on the right.\n"
58  "You can create new fonts if needed. The new font will be set as font for the selected text/language...\n"
59  "You can also edit the fonts that are part of this demo or the ones you created here (however, this demo won't allow to change the fonts of the other Samples)\n"
60  "Important: When you switch to a font the FIRST time, it takes some time to load it. Especially for fonts with a lot of non-ASCII characters this load time might be noticeable.!"
61  },
62  {
63  (encoded_char*)"European characters using DejaVuSans font",
64  (encoded_char*)"DejaVuSans-12",
65  (encoded_char*)"Try Catching The Brown Fox While It's Jumping Over The Lazy Dog\n\n"
66  "Supports most European unicode characters, but for example no cyrillic:\n"
67  "\x62\x6F\x6B\x6D\xC3\xA5\x6C\x2C\x20\xC4\x8D\x65\x73\x6B\x79\x2C\x20\x73"
68  "\x6C\x6F\x76\x65\x6E\xC5\xA1\xC4\x8D\x69\x6E\x61\x2C\x20\x6C\x61\x74\x76"
69  "\x69\x65\xC5\xA1\x75\x2C\x20\x54\x69\xE1\xBA\xBF\x6E\x67\x20\x56\x69\xE1"
70  "\xBB\x87\x74\x2C\x20\x65\x74\x63\x2E"
71  "\xC2\xA5\xC2\xA4\xC2\xA3\xC2\xA2\xC2\xA9\xC2\xAE\xC3\x90\xC3\x86\x5C"
72  "\x6E\xC3\x84\xC3\x9C\xC3\x96\xC3\xA4\xC3\xBC\xC3\xB6\xC3\x9F\x5C\x6E"
73  "\xC4\x93\xC4\x92\xC5\x97\xC5\x96\xC5\xAB\xC5\xAA\xC4\xAB\xC4\xAA\xC4"
74  "\x81\xC4\x80\xC5\xA1\xC5\xA0\xC4\xA3\xC4\xA2\xC4\xB7\xC4\xB6\xC4\xBC"
75  "\xC4\xBB\xC5\xBE\xC5\xBD\xC4\x8D\xC4\x8C\xC5\x86\xC5\x85\x5C\x6E\xC3"
76  "\xB8\xC3\x98\xC3\xA6\xC3\x86\xC3\xA5\xC3\x85\xC3\xA8\xC3\xA2\xC3\xAF"
77  "\xC3\x80\xC3\x81\xC3\x82\xC6\x92\xC3\xA9\xC3\xAD\xC3\xB3\xC3\xBA\xC3"
78  "\x89\xC3\x8D\xC3\x93\xC3\x9A\xC3\xB5\xC3\xA7\xC2\xBF\xC3\xB1\xC3\x91"
79  },
80  {
81  (encoded_char*)"European characters using Junicode font",
82  (encoded_char*)"Junicode-14",
83  (encoded_char*)"Try Catching The Brown Fox While It's Jumping Over The Lazy Dog\n\n"
84  "Supports most European unicode characters, but for example no cyrillic:\n"
85  "\x62\x6F\x6B\x6D\xC3\xA5\x6C\x2C\x20\xC4\x8D\x65\x73\x6B\x79\x2C\x20\x73"
86  "\x6C\x6F\x76\x65\x6E\xC5\xA1\xC4\x8D\x69\x6E\x61\x2C\x20\x6C\x61\x74\x76"
87  "\x69\x65\xC5\xA1\x75\x2C\x20\x54\x69\xE1\xBA\xBF\x6E\x67\x20\x56\x69\xE1"
88  "\xBB\x87\x74\x2C\x20\x65\x74\x63\x2E"
89  "\xC2\xA5\xC2\xA4\xC2\xA3\xC2\xA2\xC2\xA9\xC2\xAE\xC3\x90\xC3\x86\x5C"
90  "\x6E\xC3\x84\xC3\x9C\xC3\x96\xC3\xA4\xC3\xBC\xC3\xB6\xC3\x9F\x5C\x6E"
91  "\xC4\x93\xC4\x92\xC5\x97\xC5\x96\xC5\xAB\xC5\xAA\xC4\xAB\xC4\xAA\xC4"
92  "\x81\xC4\x80\xC5\xA1\xC5\xA0\xC4\xA3\xC4\xA2\xC4\xB7\xC4\xB6\xC4\xBC"
93  "\xC4\xBB\xC5\xBE\xC5\xBD\xC4\x8D\xC4\x8C\xC5\x86\xC5\x85\x5C\x6E\xC3"
94  "\xB8\xC3\x98\xC3\xA6\xC3\x86\xC3\xA5\xC3\x85\xC3\xA8\xC3\xA2\xC3\xAF"
95  "\xC3\x80\xC3\x81\xC3\x82\xC6\x92\xC3\xA9\xC3\xAD\xC3\xB3\xC3\xBA\xC3"
96  "\x89\xC3\x8D\xC3\x93\xC3\x9A\xC3\xB5\xC3\xA7\xC2\xBF\xC3\xB1\xC3\x91"
97  },
98  {
99  (encoded_char*)"Korean/Chinese/Japanese using Batang font",
100  (encoded_char*)"Batang-18",
101 
102  //Japanese
103  (encoded_char*)"\xE6\x97\xA5\xE6\x9C\xAC\xE8\xAA\x9E\xE3\x82\x92\xE9\x81\xB8\xE6\x8A\x9E\n"
104  "\xE3\x83\x88\xE3\x83\xAA\xE3\x82\xAC\xE3\x83\xBC\xE6\xA4\x9C\xE7\x9F\xA5\n"
105  "\xE9\x89\xB1\xE7\x9F\xB3\xE5\x82\x99\xE8\x93\x84\xE4\xB8\x8D\xE8\xB6\xB3\n\n\n\n\n"
106 
107  //Chinese
108  "\xE6\x97\xA9\xE7\x99\xBC\xE7\x99\xBD\xE5\xB8\x9D\xE5\x9F\x8E\x20\x28\xE6\x9D\x8E\xE7\x99\xBD\x29\n\n"
109 
110  "\xE6\x9C\x9D\xE8\xBE\xAD\xE7\x99\xBD\xE5\xB8\x9D\xE5\xBD\xA9\xE9\x9B\xB2\xE9\x96\x93\xEF\xBC\x8C\n"
111  "\xE5\x8D\x83\xE9\x87\x8C\xE6\xB1\x9F\xE9\x99\xB5\xE4\xB8\x80\xE6\x97\xA5\xE9\x82\x84\xE3\x80\x82\n"
112  "\xE5\x85\xA9\xE5\xB2\xB8\xE7\x8C\xBF\xE8\x81\xB2\xE5\x95\xBC\xE4\xB8\x8D\xE4\xBD\x8F\xEF\xBC\x8C\n"
113  "\xE8\xBC\x95\xE8\x88\x9F\xE5\xB7\xB1\xE9\x81\x8E\xE8\x90\xAC\xE9\x87\x8D\xE5\xB1\xB1\xE3\x80\x82\n\n\n\n\n"
114 
115  //Korean
116  "\xEC\x9D\xB4\xEB\xAA\xB8\xEC\x9D\xB4\x2F\xEC\xA3\xBD\xEA\xB3\xA0\xEC\xA3\xBD\xEC\x96\xB4\x2F\xEC\x9D"
117  "\xBC\xEB\xB0\xB1\xEB\xB2\x88\x2F\xEA\xB3\xA0\xEC\xB3\x90\xEC\xA3\xBD\xEC\x96\xB4\x2F\n"
118  "\xEB\xB0\xB1\xEA\xB3\xA8\xEC\x9D\xB4\x2F\xEC\xA7\x84\xED\x87\xB4\xEB\x90\x98\xEC\x96\xB4"
119  "\x2F\xEB\x84\x8B\xEC\x9D\xB4\xEB\x9D\xBC\xEB\x8F\x84\x2F\xEC\x9E\x88\xEA\xB3\xA0\xEC\x97\x86\xEA\xB3\xA0\x2F\n"
120  "\xEC\x9E\x84\x20\xED\x96\xA5\xED\x95\x9C\x2F\xEC\x9D\xBC\xED\x8E\xB8\xEB\x8B\xA8\xEC\x8B\xAC\xEC"
121  "\x9D\xB4\xEC\x95\xBC\x2F\xEA\xB0\x80\xEC\x8B\xA4\x20\xEC\xA4"
122  "\x84\xEC\x9D\xB4\x2F\xEC\x9E\x88\xEC\x9C\xBC\xEB\x9E\xB4/"
123  },
124  {
125  (encoded_char*)"Hebrew using TnuaLibre font",
126  (encoded_char*)"TnuaLibre-12",
127  (encoded_char*)"\xD7\xAA\xD7\xA0\xD7\x95\xD7\xA2\xD7\x94\n"
128  "\xD7\x97\xD7\x95\xD7\xA4\xD7\xA9\xD7\x99 **\xD7\x90\xD7\x91\xD7\x92\xD7\x93 \n"
129  "1234"
130  },
131  {
132  (encoded_char*)"Old German using Fette UNZ Fraktur font",
133  (encoded_char*)"FetteUNZFraktur-20",
134  (encoded_char*)"Heute back ich, morgen brau ich,\n"
135  "\xC3\x9C bermorgen hol ich mir der K\xC3\xB6 nigin ihr Kind;\n"
136  "Ach, wie gut, dass niemand wei\xC3\x9F ,\n"
137  "dass ich Rumpelstilzchen hei\xC3\x9F"
138  },
139  {
140  (encoded_char*)"Latin using Old Fell Type font",
141  (encoded_char*)"FellType-12.5",
142  (encoded_char*)"\xE2\x98\x9E Non nobis, non nobis, Domine\n"
143  "Sed nomini tuo da gloriam.\xE2\x98\x9C\n"
144  "\xEE\x80\x9C\x20\xEE\x81\x87\x20\xEE\x81\x80\x20\xEE\x81\x81\x20\xC3\x90"
145  },
146  {
147  (encoded_char*)"Handwriting font",
148  (encoded_char*)"GreatVibes-22",
149  (encoded_char*)"Dear Gooby,\n\n"
150  "Handwriting is nice when you don't have to do it yourself.\n\n"
151  "Regards, Uncle Dolan."
152  },
153  {
154  (encoded_char*)"RichStyle Icons font",
155  (encoded_char*)"RichStyle-22",
156  (encoded_char*)"\x2B\x20\x2D\x20\x3F\x20\x42\x20\x49\x20\x57\x20\x59\x20\x66\x20\x6E\x20\x74\x20\xE2"
157  "\x84\xB9\x20\xE2\x87\xA6\x20\xE2\x87\xA7\x20\xE2\x87\xA8\x20\xE2\x87\xA9\x20\xE2\x8C"
158  "\x98\x20\xE2\x98\x8E\x20\xE2\x98\x90\x20\xE2\x98\x91\x20\xE2\x9A\x96\x20\xE2\x9A\x99"
159  "\x20\xE2\x9A\xA0\x20\xE2\x9B\x8F\x20\xE2\x9C\x8E\x20\xE2\x9C\x91\x20\xE2\x9C\x93\x20"
160  "\xE2\x9C\x94\x20\xE2\x9C\x95\x20\xE2\x9C\x96\x20\xE2\x9D\x9D\x20\xE2\x9D\x9E\x20\xE2"
161  "\x9E\xA1\x20\xE2\xAC\x80\x20\xE2\xAC\x81\x20\xE2\xAC\x82\x20\xE2\xAC\x83\x20\xE2\xAC"
162  "\x85\x20\xE2\xAC\x86\x20\xE2\xAC\x87\x20\xE2\xAC\x88\x20\xE2\xAC\x89\x20\xE2\xAC\x8A"
163  "\x20\xE2\xAC\x8B\x20\xEE\x80\x80\x20\xEE\x80\x81\x20\xEE\x80\x82\x20\xEE\x80\x83\x20"
164  "\xEE\x80\x84\x20\xEE\x80\x85\x20\xEE\x80\x86\x20\xEE\x80\x87\x20\xEE\x80\x88\x20\xEE"
165  "\x80\x89\x20\xEE\x80\x90\x20\xEE\x80\x91\x20\xEE\x80\x92\x20\xEE\x80\x93\x20\xEE\x80"
166  "\x94\x20\xEE\x80\x95\x20\xEE\x80\x96\x20\xEE\x80\x97\x20\xEE\x80\x98\x20\xEE\x80\x99"
167  "\x20\xEE\x80\xA0\x20\xEE\x80\xA1\x20\xEE\x80\xA2"
168  },
169  {
170  (encoded_char*)"Old Runic writing using Futhark Adapted font",
171  (encoded_char*)"FutharkAdapted-18",
172  (encoded_char*)"Somehow, although he is the smallest office boy around the place, none of the other"
173  "lads pick on him. Scuffling and fighting almost has ceased since Kerensky came to work."
174  "That's only one of the nicknames of Leo Kobreen, and was assigned to him because of a"
175  "considerable facial resemblance to the perpetually fleeing Russian statesman, and, "
176  "too, because both wore quite formal standing collars."
177  },
178  {
179  (encoded_char*)"Klingon using pIqaD HaSta font",
180  (encoded_char*)"Klingon-pIqaD-HaSta-24",
181  (encoded_char*)"\xEF\xA3\xA3\xEF\xA3\x9D\xEF\xA3\x93\xEF\xA3\xA5\xEF\xA3\x98\x20\xEF\xA3\xA9\xEF\xA3\x9D\xEF\xA3\xA2\x20\xEF\xA3\xA1\xEF\xA3\x9D\xEF\xA3\x99\xEF\xA3\xBE\n\n\n"
182  "\xEF\xA3\xA0\x20\xEF\xA3\xA1\x20\xEF\xA3\xA2\x20\xEF\xA3\xA3\x20\xEF\xA3\xA4\x20\xEF\xA3\xA5\x20\xEF\xA3\xA6\x20\xEF\xA3\xA7\x20\xEF\xA3\xA8\x20\xEF\xA3\xA9\n"
183  "\xEF\xA3\xB0\x20\xEF\xA3\xB1\x20\xEF\xA3\xB2\x20\xEF\xA3\xB3\x20\xEF\xA3\xB4\x20\xEF\xA3\xB5\x20\xEF\xA3\xB6\x20\xEF\xA3\xB7\x20\xEF\xA3\xB8\x20\xEF\xA3\xB9\n"
184  "\xEF\xA3\xBD\x20\xEF\xA3\xBE\x20\xEF\xA3\xBF"
185  },
186  {
187  (encoded_char*)"Pixel style font using Mizufalp font",
188  (encoded_char*)"mizufalp-12",
189  (encoded_char*)"Mechanic: Somebody set up us the bomb.\n"
190  "Operator: Main screen turn on.\n"
191  "CATS: All your base are belong to us.\n"
192  "CATS: You have no chance to survive make your time."
193  }
194 };
195 
196 }
197 
198 
199 #endif
Definition: LanguageStrings.h:35
Main namespace for Crazy Eddie's GUI Library.
Definition: cegui/include/CEGUI/Affector.h:42
Class that encapsulates a typeface.
Definition: cegui/include/CEGUI/Font.h:58
utf8 encoded_char
encoded char signifies that it's a char (8bit) with encoding (in this case utf8)
Definition: cegui/include/CEGUI/String.h:50