IDEIntf: made TListPropertyEditor.GetValue ouptut i18n-friendly

This commit is contained in:
Maxim Ganetsky 2025-07-01 18:03:37 +03:00
parent 068397b12e
commit ad97c29f1f
2 changed files with 2 additions and 9 deletions

View File

@ -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?';

View File

@ -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;