fixed 2.0.0 compilation: use GetEnvironmentVariable from SysUtils (issue #1419)

git-svn-id: trunk@8128 -
This commit is contained in:
vincents 2005-11-11 07:15:01 +00:00
parent 9542928f63
commit 77d78e7476

View File

@ -108,13 +108,13 @@ end;
procedure GetLanguageIDs(var Lang, FallbackLang: string);
begin
lang := GetEnv('LC_ALL');
lang := GetEnvironmentVariable('LC_ALL');
if Length(lang) = 0 then
begin
lang := GetEnv('LC_MESSAGES');
lang := GetEnvironmentVariable('LC_MESSAGES');
if Length(lang) = 0 then
begin
lang := GetEnv('LANG');
lang := GetEnvironmentVariable('LANG');
if Length(lang) = 0 then
exit; // no language defined via environment variables
end;