i18n in valuelist

Is it possible to give custom valuelists the I18n feature too?

We use them a lot this way:

1|Concept
2|Openstaand
3|Voldaan

so a number is returned to the dataprovider and used in methods.
So it would be nice, if we could translate the text too!

we will investigate this, you could fill the valuelist in mean time via db query selecting the correct language.

Is it possible to give custom valuelists the I18n feature too?

We also make a thorough use of such valuelists in our solutions.

Please count us as member of the lobby for this i18n feature :wink: !

wouldn’t this be possible with a query that retrieves the values from the messages table and the build the value list by method?

this will be possible in 2.1b4:

i18n:test1|0
i18n:test2|1

WONDERFULL! :)

Cheers ! Great, we will make good use of that :razz:.

:cry:

We have some troubles with the implementation of i18n in custom valuelists. As an example here is a short list which works well to select and store datas to the backend:

i18n:GLS.VL.gsm|1
i18n:GLS.VL.beeper|2
i18n:GLS.VL.email|3
i18n:GLS.VL.web_site|4

i18n:GLS.VL.other|9999

HM-ilas… When you browse records combos appears to have no values. It seems that this great feature needs some improvement in order to show the i18n value associated to the integer.

We are currently using servoy 2.1, ASA 9.0.1 on OSX 10.3 and Win XP Pro

just made a small test with a global integer and a non editable combo field on top it with a valuelist that has:

i18n:test1|1
i18n:test2|2

and it works perfectly.

Hi Johan,

I think my first explanation was not pointing you on my real trouble.

As a matter of fact, the valuelist itself is performing exactly as intended, displaying the i18n value associated to the current locale.

What is giving me headaches (small ones) is that the combo box appears empty any time i point to a new record. It seems that the initialisation of the display can’t show the value associated to the i18n key corresponding to the integer value stored in the column.[/b]

What I get is an empty combobox when I browse to next or prev record, off course I get the same trouble in portals trying to diplay the combo.

It must be a small bug, as this works perfectly well when using values from a table (related or not).

If this explanation is not sufficient, let me know, I’ll make a small solution to demonstrate it…

I proceeded a little with the internationalisation of my standard application (IT2Print) today. I can’t say anything else about the use in a custom valuelist and use in calculations than IT WORKS LIKE A CHARM.

:oops: :oops:

All my apologies

I finaly found the origin of my troubles:
It was a backend issue, colums receiving integer values were not set with the correct type (INTEGER).

As soon as I corrected it, it worked like a charm… for me too.

Thank you all for your support.
:wink: