added missing resourcestrings for propedits memochanged

git-svn-id: trunk@8030 -
This commit is contained in:
mattias 2005-11-02 07:46:46 +00:00
parent 8df57b3d65
commit 713c417a73
2 changed files with 7 additions and 2 deletions

View File

@ -210,6 +210,7 @@ resourcestring
// property editors
oisSort = 'Sort';
oisDLinesDChars = '%d lines, %d chars';
ois1LineDChars = '1 line, %d chars';
oisStringsEditorDialog = 'Strings Editor Dialog';
ois0Lines0Chars = '0 lines, 0 chars';
oisInvalidPropertyValue = 'Invalid property value';

View File

@ -4652,8 +4652,12 @@ end;
procedure TStringsPropEditorDlg.MemoChanged(Sender : TObject);
begin
StatusLabel.Text:= Format(oisDLinesDChars, [Memo.Lines.Count,
(Length(Memo.Lines.Text) - Memo.Lines.Count * Length(LineEnding))]);
if Memo.Lines.Count=1 then
StatusLabel.Text:= Format(ois1LineDChars, [Memo.Lines.Count,
(Length(Memo.Lines.Text) - Memo.Lines.Count * Length(LineEnding))])
else
StatusLabel.Text:= Format(oisDLinesDChars, [
(Length(Memo.Lines.Text) - Memo.Lines.Count * Length(LineEnding))]);
end;
{ TStringsPropertyEditor }