Global Domination

Flash Player is an international affair. Thus, the Player would like to automatically detect which language it should use when presenting localized textual information. According to this page, one way to detect the user’s preferred language is to examine the LANG environment variable. That seems to have wide acceptance. However, I noticed that on my Gentoo system, that string is not set by default (in fact, none of the default environment variables indicate “en”).

This is why I wanted to solicit feedback: Is LANG the best method? Are there alternative methods I should use in conjunction with LANG?

Another issue: Input method editor (IME). What facilities are available, stable, and hopefully more or less standard for this?