i18n and readable/interpreteble code...

Great feature, internationalization but code like the below doesn’t make code more readable. Would it be possible to attach a tooltip with the content to it? Or if this is not possible a tree with values in the method editor?

	plugins.dialogs.showQuestionDialog(i18n.getI18NMessage('2.alert'),i18n.getI18NMessage('2.message.itemsquestion'), i18n.getI18NMessage('2.ok'), i18n.getI18NMessage('2.cancel'));

Not possible, whoud could help if using i18n in scripting is:

var message = i18n.getI18NMessage('2.alert');
var text = i18n.getI18NMessage('2.message.itemsquestion');
var ok = i18n.getI18NMessage('2.ok');
var cancel = i18n.getI18NMessage('2.cancel');
plugins.dialogs.showQuestionDialog(message,text, ok, cancel);

Maybe we can improve it futher, we will get back on this.

why not do this:

plugins.dialogs.showQuestionDialog(‘i18n:2.alert’, ‘i18n:2.message.itemsquestion’, ‘i18n:2.ok’,‘i18n:2.cancel’);

the dialog plugin supports i18n..
Hopefully most things will support this please post if you find one component where you would expect it and doesn’t do it when you set youre key with the i18n prefix in front of it.

That’s helps a lot Johan! Thanks…