New topic: 

Multi-Lingual

<http://forums.realsoftware.com/viewtopic.php?t=42426>

         Page 1 of 1
   [ 5 posts ]                 Previous topic | Next topic          Author  
Message        MarkLDavison          Post subject: Multi-LingualPosted: Sat Jan 
28, 2012 12:01 pm                         
Joined: Sat Jan 28, 2012 11:57 am
Posts: 3                Hi,

I am new to Real Studio and I am trying to find my way around. I need to make 
an application multi-lingual. I have worked out how to create a module for my 
strings and how to specify the translations for each string.

If the user clicks a "Language Selection" icon then I am displaying a window 
with a button for each language I provide.

When the user clicks a button, how can I make the application start to use the 
appropriate translation strings i.e. if they click "German", how do I make the 
application start to use all the strings defined for German? I need to change 
the locale that the program thinks is the current locale.

Can anyone point me in the right direction please?

Thanks.   
                             Top                 npalardy          Post 
subject: Re: Multi-LingualPosted: Sat Jan 28, 2012 12:58 pm                     
  Real Software Engineer          
Joined: Sat Dec 24, 2005 8:18 pm
Posts: 7044
Location: Canada, Alberta, Near Red Deer                Have a peek at what are 
called dynamic constants http://docs.realsoftware.com/index.php/ ... _Constants

With these the application automatically picks the right language value based 
on what locale the computer is in (and the language)      
_________________
My web site Great White Software
RBLibrary.com REALbasic learning  
                             Top                MarkLDavison          Post 
subject: Re: Multi-LingualPosted: Sat Jan 28, 2012 1:22 pm                      
   
Joined: Sat Jan 28, 2012 11:57 am
Posts: 3                Hi,

Thank you for the reply, I am using dynamic constants but I also need the 
ability for the user to switch language. Is there a way I can override the 
current users locale computer settings?

Regards,

Mark   
                             Top                 npalardy          Post 
subject: Re: Multi-LingualPosted: Sat Jan 28, 2012 1:52 pm                      
 Real Software Engineer          
Joined: Sat Dec 24, 2005 8:18 pm
Posts: 7044
Location: Canada, Alberta, Near Red Deer                There isn't

If you need to allow the user to change the setting and NOT be the same as 
their OS settings then you need to do the work yourself

There's a couple short samples of how you can do this on the ARBP site 
(arbp.org)      
_________________
My web site Great White Software
RBLibrary.com REALbasic learning  
                             Top                MarkLDavison          Post 
subject: Re: Multi-LingualPosted: Sat Jan 28, 2012 2:32 pm                      
   
Joined: Sat Jan 28, 2012 11:57 am
Posts: 3                Hi,

Thank you for pointing me to the website. I will take a look.

Regards,

Mark   
                             Top            Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 5 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to