i18n and formindialog titles

When calling a dialog with the plugin I can refer to the i18n key directly like ‘i18n:keyname’ for a title, message and buttontext.

Strange thing (or better a pettyfull thing) is that this doesn’t work when opening a form in a dialog. Can this be changed?

But if you use the title property of that form instead of passing the title via method, you can use i18n…

Strange, this code works for me:

application.showFormInDialog( forms.employees, -1,-1,-1,-1, "i18n:servoy.toolbars.text", false,false,true)

Bob Cusick

Double checked it Bob but (at least on the mac) this is a no go…

Hmmmm…

Sorry - I’m on a PC here (my G4 Titanium was stolen a few months ago).

Works on my XP PC (and on 2 Win 2K boxes as well).

Bob

this is very strange, because this piece of code can’t be a thing of the mac.. It is completely platform independend. It should work fine.

What kind of version do you use? What exactly do you see as the title? for example is it exactly the i18n text or is it between ‘!’ ?

Johan,

I may have found the issue.

When I use ‘i18n:keyname’ all goes right. When I use ‘i18n:keyname’ + ‘…’ I see !keyname…!.
It looks like the keyname is concatenated with the three trailing points before being replaced with the real text. When I leave the three points away it works fine.

yes ofcourse that is not possible,
Because the call must first concat those strings..
So if you wat … you have to specify them in the message itself.