System.GetDefaultLangID

table System.GetDefaultLangID ( 

)

Example 1

language_info = System.GetDefaultLangID();

Gets the primary and secondary language ID code and stores them in the table called "language_info." These values could be accessed by referencing language_info.Primary and language_info.Secondary.

Example 2

-- Retrieve the system's default language ID's
tLangID = System.GetDefaultLangID();

-- Check if default primary language is english (English = 9)
if tLangID.Primary == 9 then
    -- Default primary language is english
    Dialog.Message("Default Language", "Your default language is English!");
else
    -- Default primary language is not english
    Dialog.Message("Default Language", "Your default language is not English!");
end

Retrieves the system's default language ID's, compares the primary ID to the value representing English (9), and displays an appropriate message.

See also:  Related Actions