mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-04 04:40:54 +02:00
LCProc Carbon: check that bundle exists before getting languages
git-svn-id: trunk@20944 -
This commit is contained in:
parent
fa67cda580
commit
de500e63ba
@ -4232,6 +4232,7 @@ procedure LCLGetLanguageIDs(var Lang, FallbackLang: String);
|
||||
StrRange: CFRange;
|
||||
begin
|
||||
Result := 'en';
|
||||
if CFBundleGetMainBundle = nil then Exit;
|
||||
LangArray := CFBundleCopyLocalizationsForPreferences(CFBundleCopyBundleLocalizations(CFBundleGetMainBundle), nil);
|
||||
try
|
||||
if CFArrayGetCount(LangArray) > 0 then
|
||||
|
Loading…
Reference in New Issue
Block a user