The localeInfo
struct contains methods for accessing system locale information. Available in 3ds Max 2020.2 Update and higher.
<string> localeInfo.getLocale <#LC_ALL | #LC_COLLATE | #LC_CTYPE | #LC_MONETARY | #LC_NUMERIC | #LC_TIME>
Gets the C runtime locale associated with the specified category.
<string> | <false> localeInfo.setLocale <#LC_ALL | #LC_COLLATE | #LC_CTYPE | #LC_MONETARY | #LC_NUMERIC | #LC_TIME> <locale string>
Sets the C runtime locale with the specified category. If the local is successfully set, the previous locale is returned (as a string), or false otherwise.
<string> localeInfo.getCPlusPlusLocale()
Gets the C++ runtime locale.
<string> | <false> localeInfo.setCPlusPlusLocale <locale string>
Sets the C++ runtime locale.
<boolean> localeInfo.getPerThreadLocale()
Returns whether per-thread locale is set for the current thread.
<boolean> localeInfo.setPerThreadLocale <boolean>
Sets whether to use per-thread locale for the current thread. Returns the previous value.
<array> localeInfo.getDecimalChars()
Returns an array containing the decimal separator character from the windows GetLocaleInfo(), the C runtime, the C++ runtime, and the .NET system.