Home » U++ Library support » U++ Libraries and TheIDE: i18n, Unicode and Internationalization » How to display several languages without translation files?
How to display several languages without translation files? [message #4417] |
Sat, 05 August 2006 18:36 |
|
fudadmin
Messages: 1321 Registered: November 2005 Location: Kaunas, Lithuania
|
Ultimate Contributor Administrator |
|
|
this topic is a continuation of:
http://www.arilect.com/upp/forum/index.php?t=msg&th=270& amp;start=0&
My question is:
How to display several languages without translation files (data coming from a database)?
(I have to have at least 3 languages)
1 case:
several languages in one string to one text (or array) controls?
2 case:
several languages from different differently encoded strings each going to a separate text (or array cell) control.
For the 1 case, AFAIK, the only possibillity is unicode/utf or WString. Am I right?
While I have succeeded this way for ArrayCtrl, I can't get the same for Label text. I guess this is not possible without telling it when to switch different language encodings (code pages) inside the text. Am I right?
That why I am asking for case 2.
Then I would like to write:
Label l;
WString ru_ru1=ToUnicode("Революция",255); //in fact it comes from DB
l.text=RU_RU(ru_ru1);
...
and accordingly for all other languages.
Then,
SetLanguage(LNGC_('R', 'U', 'R', 'U', CHARSET_WIN1251));
is no help? Am I right? (BTW, What is the scope of SetLanguage? global project, file, or several lines until next one?)
I tried different:
// rus2=ToCharset(CHARSET_WIN1251, rus2, 255);
// rus2=ToCharset( CHARSET_KOI8_R, rus2,CHARSET_WIN1251);
rus2=ToCharset( CHARSET_KOI8_R, rus2,255);
but with no succes.
What is the correct way?
|
|
|
Goto Forum:
Current Time: Fri Apr 19 08:08:35 CEST 2024
Total time taken to generate the page: 0.02826 seconds
|