Calculating with i18N

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

Calculating with i18N

Postby Karel Broer » Thu Nov 11, 2004 12:44 pm

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:
Karel Broer
ServoyCamp - http://www.servoycamp.com
User avatar
Karel Broer
 
Posts: 779
Joined: Mon May 03, 2004 12:49 am
Location: Doetinchem

Postby Harjo » Thu Nov 11, 2004 1:08 pm

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..
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Postby Karel Broer » Thu Nov 11, 2004 1:15 pm

Great!! Many thanks again, HJK! :D
User avatar
Karel Broer
 
Posts: 779
Joined: Mon May 03, 2004 12:49 am
Location: Doetinchem


Return to Programming with Servoy

Who is online

Users browsing this forum: No registered users and 27 guests

cron