OverviewExamples
table Application.GetLanguage ( |
) |
tPatchLanguage = Application.GetLanguage();
Retrieves the primary and secondary patch language, and stores this information in a table called "tPatchLanguage". This information can be accessed by referencing tPatchLanguage.Primary and tPatchLanguage.Secondary.
-- Retrieve the Patch Language
tPatchLanguage = Application.GetLanguage();
-- Check if the patch language is English (English = 9)
if tPatchLanguage.Primary == 9 then
-- Patch language is English
Dialog.Message("Patch Language", "Your patch language is English!");
else
-- Patch language is not English
Dialog.Message("Patch Language", "Your patch language is not English!");
end
Retrieves the patch language, compares the primary ID to the value representing English (9), and displays an appropriate message.
See also: Related Actions