Hi,
When showing a form in dialog with application.showFormInDialog, should it be possible to set as formname an I18N key?
My code:
application.showFormInDialog(forms.test,i18n.getI18NMessage('key.xxxxx.yyyy'));
Doesn’t result in a dialog with a name based on the I18N key…
Paul
(using 2.2 beta1)
that really should work fine
What if you do
var title = i18n.getI18NMessage(‘key.xxxxx.yyyy’);
application.showFormInDialog(forms.test,title);
What do you see for name?
if you output the title to the console what do you see?
also this is also possible:
application.showFormInDialog(forms.test,‘i18n:key.xxxxx.yyyy’);
pbakker
February 24, 2005, 9:49am
3
I tested again, with the lastest RC (2.2. RC2).
It still doesn’t work. I did find a way to get it to work, though: by placing the non mandatory X,Y,width, height into the code, then the I18N title is shown.
working code:
application.showFormInDialog(forms.xxx,0,0,0,0,i18n.getI18NMessage('kydome.form.xxx));
not working code:
application.showFormInDialog(forms.xxx,i18n.getI18NMessage('kydome.form.xxx));
Paul
ahh sorry
my example was purely meant for the i18n message things
Yes you have to specify all the params.
Maybe we can support some other forms of calls later on.