retrieving the current locale

Hello, is there a way to retrieve the current locale? I couldn’t figure out where/how. If there is not, it’d be nice to have a possibility under the i18n node.

Thanks
Patrick

What would you do with it?
In what kind of format are you expecting the result to be in?

for several value lists I have my own tables. Now when I start to internationalize my solution I have a problem with those.

Let’s say you have a list of countries for value lists. A German speaking person expects to see Niederlande, an English speaking person expects Netherlands.

How do I find out the language of my user if I can’t retrieve the locale? I’d like to use your approach of i18n with the messages table for my value list tables as well.

What I expect to get is the same that you use in the messages table (‘de’, ‘en’), but actually that doesn’t matter as long as it is consistent…

ahh getCurrentLanguage() is really wat you want.
That i can add easy

I am sorry for my complicated explanation. very easy sounds great!

added (2.1b5)

:lol: