Subject Re: [IBO] Caption localization
Author Helen Borrie
At 06:50 AM 16/09/2007, you wrote:
>Hi,
>using TIB_NavigationBar, TIB_UpdateBar and TIB_SearchBar components I
>can see components captions (enabling them) in the IDE (design time)
>localized in my language (italian). When the application run (with or
>without the IDE), captions are shown in english.
>I need to have multiple language support so, how can I choose in which
>language captions will be shown at runtine?
>It seems to me that a choice is possible (maybe setting a variable),
>otherwise I should not see italian captions at design time.
>
>Firebird 1.5
>IbObjects version 4.6.Bc
>BDS 2006

>Helen Borrie ha scritto:
>...
> > Could you please describe what you mean by "captions"?

At 01:45 AM 17/09/2007, you wrote:

>The text strings ('Next', 'Prior', 'First', 'Last' etc.) that appears on
>the TIB_*Bar components when the 'ShowCaptions' property is set to true
>for the component itself.

Ahaa! I didn't even know it was available.

I tested it in Delphi/Pascal D6 with IBO 4.6Aa (last known good
version of IBO 4.6) and it is working properly in both design-time
and run-time.

As a reality check, would you look at your IB_Constants.pas (your
renamed IB_Constants-it.pas) and make sure you have a version that
has the translated versions of the caption texts? (C_ST_Edit,
C_ST_New, C_Cb_*, etc.). The fact that you are seeing the Italian
texts at design-time suggests that the design-time editor at least
has been compiled with the right version of ib_constants.pas. I
wonder whether your runtime packages are out of synch somehow...

If it is all OK, check your environment paths to make sure that there
is not some obsolete path there that is finding an older, improperly
updated version of the Italian ib_constants at compile time.

As another test, you could do the most minimal thing: drop an
ib_connection and an ib_UpdateBar into a new project, set
ShowCaptions true and just run it, to see whether it behaves properly.

Helen