Skip to main content

TrFile_GetPreferredLanguages (function reference)

By June 1, 2024June 4th, 2024Online Help, Troi File Plug-in
Troi File Plug-in > Functions reference > TrFile_GetPreferredLanguages
Troi File Plug-in for FileMaker Pro

TrFile_GetPreferredLanguages

Returns a list of the preferred language and country codes for the current user, like “en-GB”

SyntaxFunction badge

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 functionFunction badge

TrFile_GetFileKind

Related topics

Troi File Plug-in online help (overview)


Online Help Page for Troi File Plug-in for 17 to 2024 –> TrFile_GetPreferredLanguages (filep4328) 2024-0604 19:16:10