mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-07 20:56:31 +02:00
IDEIntf: made TListPropertyEditor.GetValue ouptut i18n-friendly
This commit is contained in:
parent
068397b12e
commit
ad97c29f1f
@ -16,8 +16,7 @@ resourcestring
|
||||
oisObjectInspector = 'Object Inspector';
|
||||
oisError = 'Error';
|
||||
oisMixed = '(Mixed)';
|
||||
oisItems = '%s items';
|
||||
ois1Item = '1 item';
|
||||
oisItems = 'items: %s';
|
||||
oisItemsSelected = '%u items selected';
|
||||
//oiscAdd = '&Add';
|
||||
oiscDelete = 'Delete?';
|
||||
|
@ -5257,14 +5257,8 @@ begin
|
||||
end;
|
||||
|
||||
function TListPropertyEditor.GetValue: AnsiString;
|
||||
var
|
||||
ElementCount: integer;
|
||||
begin
|
||||
ElementCount:=GetElementCount;
|
||||
if ElementCount<>1 then
|
||||
Result:=Format(oisItems, [IntToStr(GetElementCount)])
|
||||
else
|
||||
Result:=ois1Item;
|
||||
Result:=Format(oisItems, [IntToStr(GetElementCount)])
|
||||
end;
|
||||
|
||||
procedure TListPropertyEditor.Initialize;
|
||||
|
Loading…
Reference in New Issue
Block a user