Home » U++ Library support » U++ Libraries and TheIDE: i18n, Unicode and Internationalization » how to Internationalize my app?
Re: how to Internationalize my app? [message #3350 is a reply to message #3349] |
Sun, 21 May 2006 12:22   |
 |
mirek
Messages: 14267 Registered: November 2005
|
Ultimate Member |
|
|
forlano wrote on Sun, 21 May 2006 05:35 |
luzr wrote on Sun, 21 May 2006 10:00 |
forlano wrote on Sun, 21 May 2006 03:13 |
#define TFILE <CtrlLib/CtrlLib.t>
#include <Core/t.h>
[/code]
|
Sorry for confusing you, TFILE here is just an example (copied straight from CtrlLib package), it should point to your .t (inside your package).
Mirek
|
OK, now it works , but there is still a new problem that I didn't expect. The following translation works:
T_("{{1@5 [@9= This is the]::@2 [A5@0 Ultimate`+`+ Hello world sample}}")
itIT("{{1@5 [@9= Questa e' l'esempio]::@2 [A5@0 di Ultimate`+`+ Hello world}}")
But I've used a workround to let it to work. In fact instead of "e'" I should use "è" ('e' with accent all in one character). But this produces the following message:
"ERROR: invalid UTF-8 sequence..."
Is this normal?
In order to change all the interface message at the start of the application I guess I need to save the selected language change in a configuration file.
Last consideration. In this way the message.t file is compiled and the user has not the possibility to change the translation if it has not the source code of the application. I wonder if in U++ there is a smart way to distribute the application with some message file that the user can modify as it likes. For example he can fill all the ruRU translation without to bother me asking a new compilation. This file should be loaded by the application when it starts. I've done it for my old app, but with t_(...) his manteinance should be greatly simplified.
Luigi
|
Is your .t file in UTF-8? It MUST be!
To change encoding of file, go to "Project/File properties". Alternatively, you can do that in package organizer, even for the whole package.
As for modifying message files, yes - that is that commandline thing decribed in Internationalization topic. Plus, you can import it back to TheIDE and place strings to .t files using "Project/Import runtime translation files".
Mirek
|
|
|
 |
|
how to Internationalize my app?
By: forlano on Sat, 20 May 2006 17:37
|
 |
|
Re: how to Internationalize my app?
By: mirek on Sat, 20 May 2006 20:54
|
 |
|
Re: how to Internationalize my app?
By: forlano on Sat, 20 May 2006 23:17
|
 |
|
Re: how to Internationalize my app?
By: mirek on Sat, 20 May 2006 23:23
|
 |
|
Re: how to Internationalize my app?
By: forlano on Sun, 21 May 2006 00:19
|
 |
|
Re: how to Internationalize my app?
By: mirek on Sun, 21 May 2006 07:53
|
 |
|
Re: how to Internationalize my app?
By: forlano on Sun, 21 May 2006 09:13
|
 |
|
Re: how to Internationalize my app?
By: mirek on Sun, 21 May 2006 10:00
|
 |
|
Re: how to Internationalize my app?
By: forlano on Sun, 21 May 2006 11:35
|
 |
|
Re: how to Internationalize my app?
By: mirek on Sun, 21 May 2006 12:22
|
 |
|
Re: how to Internationalize my app?
By: forlano on Sun, 21 May 2006 13:48
|
 |
|
Re: how to Internationalize my app?
By: mirek on Sun, 21 May 2006 14:17
|
 |
|
Re: how to Internationalize my app?
|
 |
|
Re: how to Internationalize my app?
By: mirek on Wed, 17 October 2007 19:27
|
 |
|
Re: how to Internationalize my app?
|
 |
|
Re: how to Internationalize my app?
By: mirek on Fri, 19 October 2007 18:09
|
Goto Forum:
Current Time: Wed Aug 27 04:29:02 CEST 2025
Total time taken to generate the page: 0.04927 seconds
|