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 get proper topic
How to get proper topic [message #4760] Mon, 21 August 2006 15:43 Go to next message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

Lets say that I have the same topic written in two different lanuages:

HomeBudget/src/About$pl-pl
HomeBudget/src/About$en-us

Is there any way to get topic in poper language automatically?
Now I'm doing sth like this (I must specify $xx-xx suffix, otherwise nothing will be displayed):

if lang = polish
dlg.info.SetQTF(GetTopic("HomeBudget/src/About$pl-pl"));
else
dlg.info.SetQTF(GetTopic("HomeBudget/src/About$en-us"));

Is there method like let's say GetTopicLang.. which returns topic in language selected in SetLanguage() eg:

GetTopicLang("HomeBudget/src/About") (without suffix)

Re: How to get proper topic [message #4761 is a reply to message #4760] Mon, 21 August 2006 16:38 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Not yet.

But seems like a good idea (I mean, to use GetCurrentLanguge).

Mirek
Re: How to get proper topic [message #13983 is a reply to message #4761] Tue, 05 February 2008 09:49 Go to previous messageGo to next message
sergeynikitin is currently offline  sergeynikitin
Messages: 748
Registered: January 2008
Location: Moscow, Russia
Contributor

Yes, I use

//in main section

BasePath = "App/help";

...

//in help section

String s = String(BasePath +"/"+ FileTopic +"$"+ String(ToLower(LNGAsText(GetCurrentLanguage()& 0xfffff))));

....

//Execute Help section
dlg.GoTo(s);
dlg.Execute();




SergeyNikitin<U++>( linux, wine )
{
    under( Ubuntu || Debian || Raspbian );
}
Re: How to get proper topic [message #13984 is a reply to message #13983] Tue, 05 February 2008 10:03 Go to previous messageGo to next message
sergeynikitin is currently offline  sergeynikitin
Messages: 748
Registered: January 2008
Location: Moscow, Russia
Contributor

BTW, I explored HomeBudget when found how to make a beautiful decision of Help System.
(If you are interested, I can upload anywhere an integrated example).


SergeyNikitin<U++>( linux, wine )
{
    under( Ubuntu || Debian || Raspbian );
}
Re: How to get proper topic [message #13987 is a reply to message #13984] Tue, 05 February 2008 11:36 Go to previous messageGo to next message
forlano is currently offline  forlano
Messages: 1182
Registered: March 2006
Location: Italy
Senior Contributor
sergeynikitin wrote on Tue, 05 February 2008 10:03

BTW, I explored HomeBudget when found how to make a beautiful decision of Help System.
(If you are interested, I can upload anywhere an integrated example).


Prevet Sergey,

I am very interested in your example.
Thanks,

Luigi
Re: How to get proper topic [message #13988 is a reply to message #13987] Tue, 05 February 2008 11:59 Go to previous message
sergeynikitin is currently offline  sergeynikitin
Messages: 748
Registered: January 2008
Location: Moscow, Russia
Contributor

(message deleted)

SergeyNikitin<U++>( linux, wine )
{
    under( Ubuntu || Debian || Raspbian );
}

[Updated on: Wed, 11 June 2008 14:17]

Report message to a moderator

Previous Topic: Enumerates and names all available Languages
Next Topic: Hungarian translation update
Goto Forum:
  


Current Time: Fri Mar 29 13:09:28 CET 2024

Total time taken to generate the page: 0.01017 seconds