本文整理自网络,侵删。
uses FMX.Platform{$IFDEF MSWINDOWS}, WinAPi.Windows{$ENDIF};
function GetLang: string;var LocaleService: IFMXLocaleService;begin Result := ''; if TPlatformServices.Current.SupportsPlatformService(IFMXLocaleService, IInterface(LocaleService)) then begin Result := LocaleService.GetCurrentLangID; end;end;
Windows 8.1 => zhWindows 10 => zhOSX 10.9.5 => ZHAndroid 5.1 => jpAndroid 4.4.2 => jpiOS 8.2 => zh
相关阅读 >>
Delphi winapi: extracticon - 获取 exe、dll 或 ico 文件中的图标
Delphi中调用api函数exitwindowsex可以实现系统的关机,注销,和重启
更多相关阅读请进入《Delphi》频道 >>