PageRenderTime 28ms CodeModel.GetById 17ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/components/codetools/codetoolsstrconsts.pas

http://github.com/graemeg/lazarus
Pascal | 289 lines | 238 code | 15 blank | 36 comment | 0 complexity | 9c0b8c172dd7dec82decff13b35b903d MD5 | raw file
  1{
  2 ***************************************************************************
  3 *                                                                         *
  4 *   This source is free software; you can redistribute it and/or modify   *
  5 *   it under the terms of the GNU General Public License as published by  *
  6 *   the Free Software Foundation; either version 2 of the License, or     *
  7 *   (at your option) any later version.                                   *
  8 *                                                                         *
  9 *   This code is distributed in the hope that it will be useful, but      *
 10 *   WITHOUT ANY WARRANTY; without even the implied warranty of            *
 11 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
 12 *   General Public License for more details.                              *
 13 *                                                                         *
 14 *   A copy of the GNU General Public License is available on the World    *
 15 *   Wide Web at <http://www.gnu.org/copyleft/gpl.html>. You can also      *
 16 *   obtain it by writing to the Free Software Foundation,                 *
 17 *   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.        *
 18 *                                                                         *
 19 ***************************************************************************
 20
 21  Author: Mattias Gaertner
 22
 23  Abstract:
 24    This unit contains all resource strings for the codetools.
 25
 26}
 27unit CodeToolsStrConsts;
 28
 29{$mode objfpc}{$H+}
 30
 31interface
 32
 33uses
 34  Classes, SysUtils; 
 35
 36ResourceString
 37  // codetree
 38  ctsUnknownSubDescriptor = '(unknown subdescriptor %s)';
 39  ctsForward = 'Forward';
 40  ctsUnparsed = 'Unparsed';
 41  ctsHasError = 'HasError';
 42
 43  // linkscanner
 44  ctsInvalidFlagValueForDirective = 'invalid flag value "%s" for directive %s';
 45  ctsInvalidMode = 'invalid mode "%s"';
 46  ctsInvalidModeSwitch = 'invalid mode switch "%s"';
 47  ctsAwithoutB = '%s without %s';
 48  ctsIncludeFileNotFound = 'include file not found "%s"';
 49  ctsErrorInDirectiveExpression = 'error in directive expression';
 50  ctsIncludeCircleDetected = 'Include circle detected';
 51  ctsfileIsReadOnly = 'file is read only';
 52  ctsCommentEndNotFound = 'Comment end not found';
 53
 54  // customcodetool
 55  ctsIdentExpectedButAtomFound = 'identifier expected, but %s found';
 56  ctsIdentExpectedButKeyWordFound = 'identifier expected, but keyword %s found';
 57  ctsStrExpectedButAtomFound = 'expected %s, but %s found';
 58  ctsEndOfFile = 'end of file';
 59  ctsPositionNotInSource = 'Position not in source';
 60  ctsInvalidClassName = 'invalid class name="%s"';
 61  ctsclassNotFound = 'class "%s" not found';
 62  ctsinvalidClassName2 = 'invalid class name "%s"';
 63  ctsinvalidVariableName = 'invalid variable name "%s"';
 64  ctsinvalidVariableType = 'invalid variable type "%s"';
 65  ctsClassSNotFound = 'Class %s not found';
 66  ctsIdentExpectedButEOFFound = 'unexpected end of file (identifier expected)';
 67  ctsOperatorExpectedButEOFFound = 'unexpected end of file (operator expected)';
 68  ctsOperatorExpectedButAtomFound = 'operator expected, but %s found';
 69  ctsBracketOpenExpectedButAtomFound = 'bracket open expected, but %s found';
 70  ctsBracketCloseExpectedButAtomFound = 'bracket close expected, but %s found';
 71  ctsBracketNotFound = 'bracket %s not found';
 72  ctsUnknownMainFilename = '(unknown mainfilename)';
 73  
 74  // pascal parser
 75  ctsUnexpectedKeyword = 'unexpected keyword "%s"';
 76  ctsNoPascalCodeFound = 'no pascal code found (first token is %s)';
 77  ctsStringConstant = 'string constant';
 78  crsClosingBracketNotFound = 'closing bracket not found';
 79  crsBracketNotFound = 'bracket ) not found';
 80  crsBracketNotFound2 = 'bracket ] not found';
 81  crsRecordEndNotFound = 'record end not found';
 82  crsFoundUnexpectedAt = '%s, found unexpected %s at %s';
 83  ctsAnonymDefinitionsAreNotAllowed = 'Anonymous %s definitions are not allowed';
 84  ctsNestedDefinitionsAreNotAllowed = 'Nested %s definitions are not allowed';
 85  ctsHelperIsNotAllowed = 'Helper after %s is not allowed';
 86  ctsEndForRecordNotFound = 'end for record not found';
 87  ctsMissingEnumList = 'missing enum list';
 88  ctsMissingTypeIdentifier = 'missing type identifier';
 89  ctsProcedureOrFunctionOrConstructorOrDestructor = 'procedure or function or constructor or destructor';
 90  ctsMethodName = 'method name';
 91  ctsIdentifier = 'identifier';
 92  ctsSemicolonNotFound = 'semicolon not found';
 93  ctsKeyword = 'keyword';
 94  ctsKeywordExampleExpectedButAtomFound = 'keyword (e.g. %s) expected, but %s found';
 95  ctsConstant = 'constant';
 96  ctsSemicolonAfterPropSpecMissing =
 97    '; expected after "%s" property specifier, but %s found';
 98  ctsUnknownSectionKeyword = 'unknown section keyword %s found';
 99  ctsIllegalQualifier = 'illegal qualifier %s found';
100  ctsMethodSignatureSNotFoundInClass = 'Method signature %s not found in class';
101  ctsUnexpectedEndOfSource = 'unexpected end of source';
102  ctsEndofSourceExpectedButAtomFound = 'expected end., but %s found';
103  ctsPointStartAt = '. start at ';
104  ctsUnexpectedKeywordInAsmBlock = 'unexpected keyword "%s" in asm block found';
105  ctsUnexpectedKeywordInBeginEndBlock =
106    'unexpected keyword "%s" in begin..end found';
107  ctsUnexpectedKeywordWhileReadingBackwards =
108    'unexpected keyword "%s" found while reading blocks backwards';
109  ctsWordNotFound = '"%s" not found';
110  ctsPointHintProcStartAt = '.  Hint: proc start at ';
111  ctsMissingPointAfterEnd = 'missing . after end';
112  ctsEndForClassNotFound = '"end" for class/object not found';
113  ctsVarIsOnlyAllowedInGenericsEndOfClassNotFound = 'var is only allowed in '
114    +'generics, end of class not found';
115  ctsTypeIsOnlyAllowedInGenericsEndOfClassNotFound = 'type is only allowed in '
116    +'generics, end of class not found';
117  ctsUnexpectedSubRangeOperatorFound = 'unexpected subrange operator ''..'' found';
118  ctsInvalidSubrange = 'invalid subrange';
119  ctsExportsClauseOnlyAllowedInLibraries = 'exports clause only allowed in libraries';
120
121  // find declaration
122  ctsUnitNotFound = 'unit not found: %s';
123  ctsSourceNotFoundUnit = 'source not found: unit %s. Check your FPC source directory.';
124  ctsNeededByMode = ' (needed by mode "%s")';
125  ctsIdentifierNotFound = 'identifier not found: %s';
126  ctsNotEnoughGenParams = 'Not enough actual generic parameters';
127  ctsExpected = '"%s" expected';
128  ctsNoContextNodeFoundAtCursor = 'no context node found at cursor';
129  ctsInheritedKeywordOnlyAllowedInMethods =
130     'inherited keyword only allowed in methods';
131  ctsCircleInDefinitions = 'circle in definitions';
132  ctsForwardClassDefinitionNotResolved = 'Forward class definition not resolved: %s';
133  ctsClassOfDefinitionNotResolved = '"class of" definition not resolved: %s';
134  ctsTypeIdentifier = 'type identifier';
135  ctsGenericIdentifier = 'generic identifier';
136  ctsAncestorIsNotProperty = 'ancestor of untyped property is not a property';
137  ctsBaseTypeOfNotFound = 'base type of "%s" not found';
138  ctsClassIdentifierExpected = 'class identifier expected';
139  ctsDefaultClassAncestorTObjectNotFound = 'default class ancestor TObject not found';
140  ctsDefaultInterfaceAncestorIInterfaceNotFound =
141    'default interface ancestor IInterface not found';
142  ctsDefaultDispinterfaceAncestorIDispatchNotFound = 'default dispinterface '
143    +'ancestor IDispatch not found';
144  ctsDefaultJavaClassAncestorJLObjectNotFound = 'default java class ancestor '
145    +'JLObject not found';
146  ctsDefaultAncestorNotFound = 'default ancestor %s not found';
147  ctsExprTypeMustBeClassOrRecord = 'expression type must be class or record type';
148  ctsClassWithoutName = 'class without name';
149  ctsBinaryOperator = 'binary operator';
150  ctsInvalidType = 'invalid type';
151  ctsKeywordIn = 'keyword "in"';
152  ctsIllegalCircleInUsedUnits = 'illegal circle using unit: %s';
153  ctsSourceIsNotUnit = 'source is not unit';
154  ctsInterfaceSectionNotFound = 'interface section not found';
155  ctsUsedUnitIsNotAPascalUnit = 'used unit is not a pascal unit';
156  ctsDuplicateIdentifier = 'duplicate identifier: %s';
157  ctsQualifierExpectedButAtomFound = 'qualifier expected but %s found';
158  ctsIncompatibleTypesGotExpected = 'incompatibles types: expected "%s" but got "%s"';
159  ctsDefaultPropertyNotFound = 'default property not found';
160  ctsFunctionGetEnumeratorNotFoundInThisClass = 'function GetEnumerator not '
161    +'found in this class';
162  ctsFunctionGetEnumeratorNotFoundInThisClass2 = 'function GetEnumerator not '
163    +'found in this class';
164  ctsResultTypeOfFunctionGetEnumeratorNotFound = 'result type of function '
165    +'GetEnumerator not found';
166  ctsPropertyCurrentNotFound = 'property Current not found';
167  ctsEnumerationType = 'enumeration type';
168  ctsType = 'type';
169  ctsExpectedSemicolonOfStatementButFound = 'expected ; of statement, but found %s';
170  ctsUnexpectedKeyword2 = 'unexpected keyword %s';
171  ctsBeginAtWithoutEnd = 'begin at %s without end';
172  ctsThenExpectedButFound = 'then expected, but %s found';
173  ctsExpectedButFound = 'expected (, but found %s';
174  ctsExpectedIdentifierButFound = 'expected identifier, but found %s';
175  ctsExpectedButFound2 = 'expected ), but found %s';
176  ctsMissing = 'missing :=';
177  ctsExpectedButFound3 = 'expected :=, but %s found';
178  ctsCharacterConstantOutOfRange = 'character constant out of range';
179  ctsOperatorExpectedButFound = 'operator expected but %s found';
180  ctsOperandExpectedButFound = 'operand expected but %s found';
181  ctsOperandExpectedButFound2 = 'operand expected, but %s found';
182  ctsInvalidOperator = 'invalid operator %s';
183  ctsOperatorExpectedButFound2 = 'operator expected, but %s found';
184
185  // codecompletion
186  ctsPropertySpecifierAlreadyDefined = 'property specifier already defined: %s';
187  ctsErrorInParamList = 'error in paramlist';
188  ctsPropertTypeExpectedButAtomFound = 'property type expected, but %s found';
189  ctsIndexSpecifierRedefined = 'index specifier redefined';
190  ctsIndexParameterExpectedButAtomFound = 'index parameter expected, but %s found';
191  ctsDefaultSpecifierRedefined = 'default specifier redefined';
192  ctsDefaultParameterExpectedButAtomFound = 'default parameter expected, but %s found';
193  ctsNodefaultSpecifierDefinedTwice = 'nodefault specifier defined twice';
194  ctsImplementationNodeNotFound = 'implementation node not found';
195  ctsDispidSpecifierRedefined = 'dispid specifier redefined';
196  ctsDispidParameterExpectedButAtomFound = 'dispid parameter expected, but %s found';
197  ctsClassNodeWithoutParentNode = 'class node without parent node';
198  ctsTypeSectionOfClassNotFound = 'type section of class not found';
199  ctsUnableToCompleteProperty = 'unable to complete property';
200  ctsErrorDuringInsertingNewClassParts = 'error during inserting new class parts';
201  ctsErrorDuringCreationOfNewProcBodies = 'error during creation of new proc bodies';
202  ctsErrorDuringInsertingNewUsesSection = 'error during inserting new units to the main uses section';
203  ctsUnableToApplyChanges = 'unable to apply changes';
204  ctsEndOfSourceNotFound = 'End of source not found.';
205  ctsCursorPosOutsideOfCode = 'cursor pos outside of code';
206  ctsNewProcBodyNotFound = 'new proc body not found';
207  ctsIdentifierAlreadyDefined = 'Identifier %s already defined';
208  ctsTermNotSimple = 'Term has no simple type';
209  
210  // codetoolsmanager
211  ctsNoScannerFound = 'No scanner found for "%s".'
212      +' If this is an include file, please open the main source first.';
213  ctsNoScannerAvailable = 'No scanner available';
214  
215  // definetemplates
216  ctsUnknownFunction = 'Unknown function %s';
217  ctsSyntaxErrorInExpr = 'Syntax Error in expression "%s"';
218  ctsDefaultFPCSymbol = 'Default fpc symbol';
219  ctsDefaultFPCTargetOperatingSystem = 'Default fpc target Operating System';
220  ctsDefaultFPCSourceOperatingSystem = 'Default fpc source Operating System';
221  ctsDefaultFPCSource2OperatingSystem = 'Default fpc source Operating System 2';
222  ctsDefaultFPCTargetProcessor = 'Default fpc target processor';
223  ctsFreePascalCompilerInitialMacros = 'Free Pascal Compiler initial macros';
224  ctsScannedFiles = 'Scanned files: %s';
225  ctsFreePascalSourcesPlusDesc = 'Free Pascal Sources, %s';
226  ctsSourceFilenamesForStandardFPCUnits =
227                                  'Source filenames for the standard fpc units';
228  ctsFreePascalSourceDir = 'Free Pascal Source Directory';
229  ctsSrcPathInitialization = 'SrcPath Initialization';
230  ctsUnitPathInitialization = 'UnitPath Initialization';
231  ctsDefineLCL = 'Define LCL';
232  ctsDefineLCLWidgetset = 'Define LCLwidgetset, e.g. LCLgtk';
233  ctsFPDocSystemOn = 'enable FPDocSystem';
234  ctsCompiler = 'Compiler';
235  ctsDefineProcessorType = 'Define processor type';
236  ctsRuntimeLibrary = 'Runtime library';
237  ctsProcessorSpecific = 'processor specific';
238  ctsFreePascalComponentLibrary = 'Free Pascal Component Library';
239  ctsIncludeDirectoriesPlusDirs = 'include directories: %s';
240  ctsPackageDirectories = 'Package directories';
241  ctsUtilsDirectories = 'Utils directories';
242  ctsIfTargetOSIsNotSrcOS = 'If TargetOS<>SrcOS';
243  ctsIfTargetOSIsNotSrcOS2 = 'If TargetOS<>SrcOS2';
244  ctsInstallerDirectories = 'Installer directories';
245  ctsDefsForLazarusSources = 'Definitions for the Lazarus Sources';
246  ctsAddsDirToSourcePath = 'adds %s to SrcPath';
247  ctsIfDefWindows = 'IfDef Windows';
248  ctsIfDefLinux = 'IfDef Linux';
249  ctsIfDefDarwin = 'IfDef Darwin';
250  ctsAddsDirToIncludePath = 'adds %s to IncPath';
251  ctsSetsIncPathTo = 'sets IncPath to %s';
252  ctsSetsSrcPathTo = 'sets SrcPath to %s';
253  ctsNamedDirectory = '%s Directory';
254  ctsIfLCLWidgetTypeEqualsGtk2 = 'If LCLWidgetType=gtk2 then';
255  ctsElse = 'else';
256  ctsIfTargetOSIsNotWin32 = 'If TargetOS<>win32 then';
257  ctsComponentsDirectory = 'Components Directory';
258  ctsCustomComponentsDirectory = 'Custom Components Directory';
259  ctsToolsDirectory = 'Tools Directory';
260  ctsInstallDirectory = 'Install Directory';
261  ctsDesignerDirectory = 'Designer Directory';
262  ctsCompiledSrcPath = 'Compiled SrcPath';
263  ctsPackagerDirectory = 'Packager Directory';
264  ctsPackagerRegistrationDirectory = 'Packager Registration Directory';
265  ctsPackagerUnitsDirectory = 'Packager Units Directory';
266  ctsLazarusMainDirectory = 'lazarus main directory';
267  ctsDebuggerDirectory = 'Debugger Directory';
268  ctsConverterDirectory = 'Converter Directory';
269  ctsIDEDirectory = 'IDE Directory';
270  ctsDocEditorDirectory = 'Doc Editor Directory';
271  ctsLazarusSources = 'Lazarus Sources';
272  ctsAnLCLProject = 'an LCL project';
273  ctsOtherCompilerDefines = '%s Compiler Defines';
274  ctsResetAllDefines = 'Reset all defines';
275  ctsDefineMacroName = 'Define Macro %s';
276  ctsNamedProject = '%s Project';
277  ctsDefine = 'Define ';
278  ctsUndefine = 'Undefine ';
279  ctsCommandLineParameters = 'Command line parameters';
280
281  // eventcodetool
282  ctsMethodTypeDefinitionNotFound = 'method type definition not found';
283  ctsExpectedAMethodTypeButFound = 'expected a method type, but found %s';
284  ctsOldMethodNotFound = 'old method not found: %s';
285  
286implementation
287
288end.
289