Codetools: improved localization

git-svn-id: trunk@32020 -
This commit is contained in:
maxim 2011-08-20 17:17:01 +00:00
parent ab89769de4
commit db322bd785
2 changed files with 3 additions and 2 deletions

View File

@ -124,6 +124,7 @@ ResourceString
ctsNotEnoughGenParams = 'Not enough actual generic parameters';
ctsTooManyGenParams = 'Too many actual generic parameters';
ctsSyntaxErrorInGeneric = 'Syntax error in generic type declaration';
ctsExpected = '"%s" expected';
ctsNoContextNodeFoundAtCursor = 'no context node found at cursor';
ctsInheritedKeywordOnlyAllowedInMethods =
'inherited keyword only allowed in methods';

View File

@ -1275,7 +1275,7 @@ begin
begin
MoveCursorToNodeStart(SpecializeParamsNode);
if not ReadNextAtomIsChar('<') then
FParamValuesTool.RaiseException('"<" expected');
FParamValuesTool.RaiseException(Format(ctsExpected, ['<']));
ReadNextAtom;
while CurPos.Flag = cafWord do
begin
@ -1284,7 +1284,7 @@ begin
if CurPos.Flag = cafComma then ReadNextAtom;
end;
if not AtomIsChar('>') then
FParamValuesTool.RaiseException('">" expected');
FParamValuesTool.RaiseException(Format(ctsExpected, ['>']));
end;
end;