Localization Problem

General TRichView support forum. Please post your questions here
Post Reply
Lina
Posts: 9
Joined: Wed Jan 10, 2007 9:06 am

Localization Problem

Post by Lina »

I use a rewriting of the ActionTest demo. But in my project the Localisation will not work (It Localizes the top menus but nothing more). I haven't rewritten anything in the localization files or in the call to the localization. When i debug i see in TRVCustomAction.Localize that the correct language is selected and it gets all the correct strings for caption and hints for all menu items, but when the form is shown only the top menus are translated.

Also, in FormCreate i set

rvActionsResource.rvActionSave1.Visible := false;

But this is ignored. Is this a known problem, does anyone know how to solve it?

I copied all of my files an created a new project keeping all of the code from the other project and in the new project everything worked fine. But I need it to work in my other project too...
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

In the actiontest demo, top level menus are localized directly, like
mitFile.Caption := RVA_GetS(rvam_menu_File);

Other menu items are associated with actions. Actions are localized by the call
RVA_LocalizeForm(rvActionsResource);

Check the following:
1) May be, for some reasons, links from menu items to actions are lost. Make sure that Action properties of menu items are assigned.
2) May be your actions are on another form/datamodule?
Post Reply