FWString()

Moderator: Enrico Maria Giordano

FWString()

Postby Romeo » Mon Feb 08, 2016 11:54 am

Scusate, non ho trovato spiegazione a tale funzione nei manuali di fwin, cosa fa ?


Grazie
(FWH16)
Romeo
 
Posts: 340
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

Re: FWString()

Postby Antonio Linares » Mon Feb 08, 2016 1:23 pm

Romeo,

It is explained in whatsnew.txt

* New: We have implemented a new FWH strings API to provide internationalization at runtime,
and that you can also use to provide internationalization to your own apps too:

The Strings API functions are:

1. FWSetLanguage( nNewLanguage ) // sets the language to use at rumtime

2. FWString( "my string" ) // searches for "my string" translation and returns it

3. FWMissingStrings() // generates the source code for the missing strings to translate

By default the language is automatically set to the HB_LangSelect(), if the program has
already set HB_LangSelect() our functions adopt the same language by default

User can add a new language using FWAddLanguage( aTranslates ), for example if you want to
add whatever language (not unicode), you have to build an array with your language translates
for the same words used in strins api and call FWAddLanguage( aTranslates ) then onwards the
system uses the new language translates.

Using the function FWAddString( aString ) you can add your own strings at runtime.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FWString()

Postby Romeo » Wed Feb 10, 2016 3:26 pm

Tks many
Romeo
 
Posts: 340
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

Re: FWString()

Postby Romeo » Thu Feb 18, 2016 10:17 am

tks
Romeo
 
Posts: 340
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)


Return to All products support

Who is online

Users browsing this forum: No registered users and 9 guests