New Commands: Language (MultiPlatform)

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

New Commands: Language (MultiPlatform)

Post by Flype »

For a easier multiplatform programming (Win->Linux->Mac),
it could be useful to add some new commands for deal with languages.

For the current user (session).

GetUserPrimaryLanguage()
GetUserSubLanguage()

For all users (all sessions).

GetSystemPrimaryLanguage()
GetSystemSubLanguage()

On Windows these values can be retrieved using
GetUserDefaultLCID_() and GetSystemDefaultLCID_().

How can it be done on Linux ? on Mac ?
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer