On Mon, 22 Jun 2015, Ignacio Diaz-Emparanza wrote:
This works in Linux, producing the two first letters of the LANG
environment
variable:
string lang=substr(getenv("LANG"),1,2)
But I don't know how to do it in Windows (I see Windows 7 has not this
variable in the environment)
There's now a $lang accessor in CVS and snapshots. I've done a little
testing on Windows but not much. The returned string should be of the
form "es_ES", "zh_TW", "en_US" and so on (ISO 639-1 language
+ '_' +
ISO 3166-1 two-letter country).
Allin