LazBuild: actually handle --language option when outputting help

This commit is contained in:
Maxim Ganetsky 2024-01-21 16:27:01 +03:00
parent 1db4e6beff
commit 416bdc5c19

View File

@ -1801,6 +1801,8 @@ begin
end;
procedure TLazBuildApplication.WriteUsage;
var
CustomLang: string;
const
cDescrIndent = 16;
cMaxLength = 80;
@ -1811,7 +1813,9 @@ const
end;
begin
TranslateResourceStrings(ProgramDirectoryWithBundle,'');
if LazBuildApp.HasOption('language') then
CustomLang:=LazBuildApp.GetOptionValue('language');
TranslateResourceStrings(ProgramDirectoryWithBundle,CustomLang);
writeln('');
writeln(lisLazbuildOptionsSyntax);
writeln('');