MCPcopy Create free account
hub / github.com/OpenVPN/openvpn-gui / LangFlowDirection

Function LangFlowDirection

localization.c:81–93  ·  view source on GitHub ↗

* Return value: 0 for LTR, 1 for RTL, 2 or 3 for vertical */

Source from the content-addressed store, hash-verified

79 * Return value: 0 for LTR, 1 for RTL, 2 or 3 for vertical
80 */
81int
82LangFlowDirection(void)
83{
84 int res = 0; /* LTR by default */
85 wchar_t lcname[LOCALE_NAME_MAX_LENGTH];
86 wchar_t data[2];
87 if (LCIDToLocaleName(MAKELCID(GetGUILanguage(), SORT_DEFAULT), lcname, _countof(lcname), 0) != 0
88 && GetLocaleInfoEx(lcname, LOCALE_IREADINGLAYOUT, data, 2) != 0)
89 {
90 res = _wtoi(data);
91 }
92 return res;
93}
94
95LANGID
96GetGUILanguage(void)

Callers 4

AddMessageBoxTextFunction · 0.85
MessageDialogFuncFunction · 0.85
ShowTrayIconFunction · 0.85
RunProgressDialogFunction · 0.85

Calls 1

GetGUILanguageFunction · 0.85

Tested by

no test coverage detected