TrFile_GetPreferredLanguages |
Returns a list of the preferred language and country codes for the current user, like “en-GB”
Syntax
TrFile_GetPreferredLanguages ( switches )
Parameters
switches | modifies the behavior of the function |
Switches
-GetFirstLanguage | return the first preferred language-country of the list |
Returned Result
Data type returned
Text
Result
a list of the preferred language and country codes of the current user.
Originated in
Troi File Plug-in 14.0
Compatibility
FileMaker Pro 17 to FileMaker Pro 21 (2024)
Example
TrFile_GetPreferredLanguages ( "" ) ]
This will return for example:
en-US
nl-NL
en-GB
Example 2
Set Variable [ $PreferredLanguage ; TrFile_GetPreferredLanguages ( "-GetFirstLanguage" ) ]
This will for example set the variable to “en-US”, for English (United States).
Used in example file
GetPreferredLanguages.fmp12
Related function
TrFile_GetFileKind |
Related topics
Troi File Plug-in online help (overview)