Joined: 03 May 2018
|Posted: Thu May 03, 2018 9:59 am Post subject: Unigui problem
I'm working on a large Unigui application and I'm facing a problem.
Form creation is handled by Unigui, so I have the following code to show an update form for a table:
|With UserManagementAddFrm do begin
Caption := LinkedLanguage.GetTextOrDefault('IDS_3' (* 'Toevoegen gebruiker' *) );
lDynWhere := tbl_Sys_UsersEdit.DynamicWhere;
lDynWhere.Expression := lDynWhere.NewBinaryExpression('', 'UserId', dboEqual, 0);
ComboLanguage.ItemIndex := 0;
So the form is created by Unigui.
The problem is the following:
I have GetTextOrDefault items in the main screen and in the update screen.
The translator assigns ID's with the same number in both forms what is perfectly normal in a normal VCL application.
Is this case, the problem is that the translations of the ID's of the main form are used in the update screen.
Let's say I have the following in the main screen:
Label1.Caption := LinkedLanguage.GetTextOrDefault('IDS_5' (* 'Hello' *) );
In het update screen I have the following:
Labelname.Caption := LinkedLanguage.GetTextOrDefault('IDS_5' (* 'Name:' *) );
At runtime the label LabelName gets the translation Hello where it should be Name:.
How can i fix this?
Do I need to have unique id's in the complete application?