Page 1 of 1

silang1.inputquery no translations appears

Posted: Fri Jan 16, 2004 1:57 pm
by larsrikart
Hi

I have changed an inputquery to a silang1.inputquery as instructed in the manual.

But the OK and Cancel that need translation doesn't appear in the translation editor.

Any idea how this can go wrong?

Posted: Fri Jan 16, 2004 2:07 pm
by isiticov
Do you mean that in Translation Editor Dialogs section there are no OK and CANCEL entries?

Posted: Fri Jan 16, 2004 2:30 pm
by larsrikart
Translation Editor Dialogs do have OK and Cancel. But no new untranslated OK and Cancel appear and the inputquery is not translated.

Posted: Fri Jan 16, 2004 4:16 pm
by isiticov
New untranslated items shouldn't appear. TsiLang will use existing entries. If OK and Cancel buttons are still not translated please create sample project and send us, because it looks like you do smth wrong.

Posted: Mon Jan 19, 2004 11:47 am
by larsrikart
here is a testproject in D7

http://www.palmbutler.com/testing/translationtest.zip

problem is the same in a new project...

Posted: Mon Jan 19, 2004 6:54 pm
by isiticov
Thanks, this is strange but there was a bug :)
It will be fixed in next release. In case you need to fix it now, you can make small changes in siComp.pas file:

replace lines:

Code: Select all

      Caption := SMsgDlgOK;
---
      Caption := SMsgDlgCancel;
with lines:

Code: Select all

      Caption := GetTextFrom(@FDlgsCaptions, 'OK', True);
---
      Caption := GetTextFrom(@FDlgsCaptions, 'Cancel', True);
respectively.
Thank you again.