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