|
Final Platform Layer 1.0.0
|
FPL provides a couple of functions for querying the currently configured locale.
A locale is written into a caller-provided string buffer in a format described by the fplLocaleFormat enumeration.
Currently the only supported format is fplLocaleFormat_ISO639, which produces ISO-639 strings like en-US or de-DE.
FPL distinguishes three kinds of locale:
| Function | Returns the locale of |
|---|---|
| fplGetUserLocale() | The current user account |
| fplGetSystemLocale() | The operating system / system-wide setting |
| fplGetInputLocale() | The active keyboard / input layout |
All three functions share the same signature - pass the desired fplLocaleFormat, a destination buffer and its maximum length.
They return the number of characters written, excluding the null terminator.