Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Libraries and TheIDE: i18n, Unicode and Internationalization » how to Internationalize my app?
Re: how to Internationalize my app? [message #3343 is a reply to message #3342] Sun, 21 May 2006 07:53 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
forlano wrote on Sat, 20 May 2006 18:19

luzr wrote on Sat, 20 May 2006 23:23



Well, you was near:

SetLanguage(LNG_('D','E','D','E'));

Mirek

I'm sorry to bother you again with this topic, but perhaps I'm missing something else... the message file, message.t, is in the same folder of the executable and I've added some Italian words. When I run
void VegaMain::SelectLanguage()
{
  SetLanguage( LNG_('I','T','I','T') );
}

The message continue to be in English even if it present the Italian one. Maybe I must force in some way the reading of the message.t file or indicate to the app that it exists.

Luigi



Sorry, my fault....

First, .t should be in your package dir like all other source files. It gets compiled into the .exe.

Second, I forgot to mention that you have to include .t file somewhere in sources (not headers) like

#define  TFILE <CtrlLib/CtrlLib.t>
#include <Core/t.h>


If you have any non-main package, place this into .icpp file so that it is forced to be linked always. Anyway, if you are doing so for the main package, it is enough to place it to the .cpp with GUI_APP_MAIN (that one gets linked always).

Mirek

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Non-english symbols unreadable [solved w/ SetDefaultCharset]
Next Topic: Spacing problems with FileSel...
Goto Forum:
  


Current Time: Wed Aug 27 01:04:25 CEST 2025

Total time taken to generate the page: 0.00324 seconds