Home » U++ Library support » U++ Libraries and TheIDE: i18n, Unicode and Internationalization » How to display several languages without translation files?
Re: How to display several languages without translation files? [message #4422 is a reply to message #4421] |
Sun, 06 August 2006 08:26 |
|
mirek
Messages: 13976 Registered: November 2005
|
Ultimate Member |
|
|
fudadmin wrote on Sat, 05 August 2006 18:10 |
luzr wrote on Sat, 05 August 2006 20:07 | What is DB encoding?
Mirek
|
Forget DB.
The problem is to make several labels with a different language each. Or column titles. From *.cpp file. Is this possible? If yes, how?
Edit: P.S -no translation files. Not using translation files.
Edit2:
like this
...
Label l;
WString ru_ru1=ToUnicode("Революция",255);
l.text=???(???,ru_ru1,???);
...
I've set the existing *.cpp file to UTF8.
|
Oooops. Looks like my explanation about "default-default" charset was wrong.... Perhaps because of backward compatibility, default-default is WIN1252 (which AFAIK is equal to ISO-8859-1) - code-pages used in US.
So what you need to do is SetDefaultCharset(CHARSET_UTF8); at the start of your code.
(Should I change this?)
There is no need to play with ToUnicode then, just use the UTF-8:
chrset::chrset()
{
CtrlLayout(*this, "Window title");
lbl1 = "řeřicha česky";
lbl2 = "Революция";
lbl3 = "∑¤∂¼½đ";
}
GUI_APP_MAIN
{
SetDefaultCharset(CHARSET_UTF8);
chrset().Run();
}
Mirek
[Updated on: Sun, 06 August 2006 08:27] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sun May 12 05:55:09 CEST 2024
Total time taken to generate the page: 0.02599 seconds
|