The locale is of the general form LANG_COUNTRY.
ENCODING @ MODIFIER, where each of COUNTRY, ENCODING and MODIFIER can be absent.
The match is done by actually removing the rightmost element one by one. This is not entirely according to the freedesktop.org specification, but much easier. Will probably be fixed in the future.
| locale1 |
the current locale value as returned by setlocale(LC_MESSAGES,null). |
| locale2 |
the locale value to match against. |
|
an integer value indicating the level of matching, where the constant LOCALE_FULL_MATCH indicates a full match and LOCALE_NO_MATCH means no match. Every other value indicates a partial match, the higher the value, the better the match. You should not rely on any specific value besides the constants LOCALE_FULL_MATCH and LOCALE_NO_MATCH, since the range of returned values may change in the future. |