Getting languages from SIB file???
Posted: Wed Feb 25, 2004 10:55 am
Hi,
The languages are correctly defined in my SIB file. But when dynamically loaded at run time to obtain the list of available languages, they are wrong.
It should be English, Français, Español but it displays
English, Language N2, Language N3
The code I use is as follows (I fill in a listbox called "list")
siLangDispatcher1->LoadAllFromFile( "full.sib" ) ;
list->Clear() ;
for( int i=0; i<siLangDispatcher1->NumOfLanguages; i++ ) {
list->Items->Add( siLangDispatcher1->LangNames->Strings ) ;
}
This code works perfectly with SIL files. Is this a bug from the binary form in SIB???
It affects only the list of the languages, the translations still work correctly when switching languages.
Thanks for any help (code shown is C++Builder 6)
The languages are correctly defined in my SIB file. But when dynamically loaded at run time to obtain the list of available languages, they are wrong.
It should be English, Français, Español but it displays
English, Language N2, Language N3
The code I use is as follows (I fill in a listbox called "list")
siLangDispatcher1->LoadAllFromFile( "full.sib" ) ;
list->Clear() ;
for( int i=0; i<siLangDispatcher1->NumOfLanguages; i++ ) {
list->Items->Add( siLangDispatcher1->LangNames->Strings ) ;
}
This code works perfectly with SIL files. Is this a bug from the binary form in SIB???
It affects only the list of the languages, the translations still work correctly when switching languages.
Thanks for any help (code shown is C++Builder 6)