Calculating with i18N

Hello Servoyians! I just like Servoy more and more, specially the i18N option is a great tool :D !

I do have this question: is it possible to calculate an i18N key?

What I want is to create a multilanguage-valuelist from a databasevalue.
Say I have a number of records where in the ‘name field’ these values excist: less, good, better, best.

The valuelist should show the translation of those values…

I do think this would be a neat option for most of us :wink:

Is allready possible:

Just as a valuelist: (so no columns are needed)

i18n:less|1
i18n:good|2
i18n:better|3
i18n: best|4

or a calculation:

if(column == “less”)
return i18n.getI18NMessage(‘i18n:less’)
if(column etc..etc..etc..

Great!! Many thanks again, HJK! :D