* Fixed locale detection on new Android versions.

git-svn-id: trunk@40200 -
This commit is contained in:
yury 2018-11-03 14:16:21 +00:00
parent d27c16f024
commit 8958d94091

View File

@ -88,6 +88,9 @@ function GetCurrentLocaleStr: utf8string;
var var
s: utf8string; s: utf8string;
begin begin
Result:=GetSystemProperty('persist.sys.locale');
if Result <> '' then
exit;
Result:=GetSystemProperty('persist.sys.language'); Result:=GetSystemProperty('persist.sys.language');
if Result = '' then if Result = '' then
exit; exit;