mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-11 13:59:14 +02:00
LazBuild: actually handle --language option when outputting help
This commit is contained in:
parent
1db4e6beff
commit
416bdc5c19
@ -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('');
|
||||
|
Loading…
Reference in New Issue
Block a user