Using WPTools 7 i managed to have a WPToolbar localised. I create the WPLanguageControl in my datamodule first, as described in the manual.
However, when I do editor:=TWPToolsEditor.create; the editor is not localised. What am I missing?
tx Bernd
Using WPTools 7 i managed to have a WPToolbar localised. I create the WPLanguageControl in my datamodule first, as described in the manual.
However, when I do editor:=TWPToolsEditor.create; the editor is not localised. What am I missing?
tx Bernd
To localize the Actions this code is required:
uses WPActnStr, WPAction
WPTools_LoadActionStrings;
for i := 0 to WPToolsEditor.WPDefAct.StdActions.ActionCount-1 do if WPToolsEditor.WPDefAct.StdActions[i] is TWPToolsCustomAction then
TWPToolsCustomAction( WPToolsEditor.WPDefAct.StdActions[i] ).UpdateCaption;
The menu items which are not connected to an Action are currently not translated.
Is the WPToolsEditor a global object, I do not have to create?
Hi,
WPToolsEditor was the Name in my demo, in your code it would be "editor"