Determine if any language is set from right to left

What is the easiest way to determine if any language is installed from right to left in Windows?

(I need this to know if the LTR tags will display as squares or work correctly on the host OS)

+1
source share
1 answer

Probably an unmanaged API like IsValidLanguageGroup , IsValidLocaleName (or IsValidLocale ) or IsValidCodePage is what you are looking for

For example, the code

if (IsValidLanguageGroup (LGRPID_ARABIC, LGRPID_INSTALLED) ||
    IsValidLanguageGroup (LGRPID_TURKIC, LGRPID_INSTALLED) || 
    IsValidLanguageGroup (LGRPID_HEBREW, LGRPID_INSTALLED)) {
    // RTL is supported 
}

(RTL), Windows. .NET API, , , CultureInfo.GetCultures .

. , , . .

+1

All Articles