/doceditor/lazdemsg.pp

http://github.com/graemeg/lazarus · Puppet · 271 lines · 238 code · 33 blank · 0 comment · 1 complexity · e8e8621b657462f6462b20cb79de7994 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: Michael Van Canneyt
  21. }
  22. unit LazDEMsg;
  23. {$mode objfpc}{$h+}
  24. interface
  25. ResourceString
  26. { ---------------------------------------------------------------------
  27. Strings which appear in the program
  28. ---------------------------------------------------------------------}
  29. SAboutFormCaption = 'About this application';
  30. sLazDocEditor = 'Lazarus Documentation Editor';
  31. sCopyRight1 = 'This application is (c) by Michael Van Canneyt and the Lazarus team';
  32. sCopyRight2 = 'It is released under the terms of the GENERAL PUBLIC LICENSE:';
  33. SFileTemplate = 'template.xml';
  34. //SFPDE = 'Free Pascal documentation editor';
  35. //SName = 'Name';
  36. //SOK = ' OK ';
  37. //SCancel = ' Cancel ';
  38. SNewDocument = 'New document';
  39. SNew = 'New';
  40. SInsertLink = 'Insert link';
  41. SInsertTable = 'Insert table';
  42. SInsertBulletedList = 'Insert bulleted list';
  43. SInsertNumberedList = 'Insert numbered list';
  44. sItemsCount = 'Items count';
  45. SInsertPrintShortLink = 'Insert short description link';
  46. SInsertExampleCode = 'Insert example code';
  47. SForFile = ' in file ';
  48. SForPackage = ' in package ';
  49. SForModule = ' in module ';
  50. SForTopic = ' in topic ';
  51. SLinkTarget = 'Link target';
  52. SLinkText = 'Link text';
  53. STableRows = 'Rows';
  54. STableCols = 'Columns';
  55. STableHeader = 'Use header row';
  56. SPackages = 'Packages';
  57. SFileModified = 'Document "%s" was modified, would you like to save it?';
  58. SDeletePackage = 'Are you sure you want to delete package "%s" ?';
  59. SDeleteModule = 'Are you sure you want to delete module "%s" ?';
  60. SDeleteTopic = 'Are you sure you want to delete topic "%s" ?';
  61. //SDeleteElement = 'Are you sure you want to delete element "%s" ?';
  62. SRenamePackage = 'Rename package';
  63. SRenameModule = 'Rename module';
  64. SRenameTopic = 'Rename topic';
  65. SRenameElement = 'Rename element';
  66. SNoElement = 'No element selected';
  67. SDataForElement = 'Documentation for element "%s":';
  68. SShortDescription = 'Short';
  69. SErrors = 'Errors';
  70. SSeeAlso = 'See Also';
  71. SCodeExample = 'Example code File';
  72. SMakeSkelFromSource = 'Make new document from source file';
  73. SSkelErrorWithFile = 'makeskel reported an error (%d). Try to load produced file anyway ?';
  74. SSkelErrorWithoutFile = 'makeskel reported an error (%d) and produced no file.';
  75. SLinksTo = ' links to ';
  76. SHintEditElementLink = 'Edit element link';
  77. //SOptConfirmDelete = 'Confirm node deletion';
  78. //SOptCreateBackup = 'Backup existing files';
  79. //SOptSkipEmptyNodes = 'Do not create empty nodes';
  80. //SOptBackupExtension = 'Backup file extension';
  81. //SOptDefaultExtension = 'Default extension for new files';
  82. //SOptMaxRecentUsed = 'Items in MRU list';
  83. //SAboutText = 'fpdoc editor 1.0'#10'(c) 2002 Michael Van Canneyt'#10+
  84. // 'See http://www.freepascal.org/';
  85. SFileStructure = 'Documentation structure';
  86. SModuleElements = 'Elements for selected node';
  87. sNewFile = 'New file';
  88. sNewPackage = 'New package';
  89. sNewModule = 'New module';
  90. sNewElement = 'New element';
  91. sNewTopic = 'New topic';
  92. sNodeName = 'Node name';
  93. //Build Form strings
  94. SAddDescriptionFile = 'Select a new description file';
  95. SEditDescriptionFile = 'Change description file';
  96. SSelectOutputFile = 'Select output file name';
  97. SSelectOutputDirectory = 'Select output directory';
  98. SUsingCommand = 'Building docs using command: ';
  99. SErrFPDoc = 'Building failed with exit code %d. Please check log.';
  100. SBuildOK = 'Documentation successfully built.';
  101. sBuildDocumentation = 'Build documentation';
  102. sPackage = '&Package';
  103. sFormat = '&Format';
  104. sOutput = '&Output';
  105. sCreateContentFile = 'Create cont&ent file';
  106. sBuild = '&Build';
  107. sLoad = '&Load';
  108. sSave = '&Save';
  109. sClose = '&Close';
  110. sAdd = '&Add';
  111. sDelete = '&Delete';
  112. sEdit = '&Edit';
  113. sAddAll = 'Add All';
  114. sDescription = 'Description';
  115. sSourcesCapt = 'Sources';
  116. sOtherOptions = 'Other options';
  117. sBuildOutput = 'Build output';
  118. sHideProtectedMethods = '&Hide protected methods';
  119. sImportContentFile = 'Import content file';
  120. sTargetOS = 'Target OS';
  121. sCPU = 'CPU';
  122. sAdditionalParams = 'Additional parameters for fpdoc';
  123. sShowPrivateMethods = 'Show p&rivate methods';
  124. sWarnIfNoDocumentationNodeFound = 'Warn if no documentation node found';
  125. sSaveBeforeBuildQuestion = 'You have unsaved changes in "%s".%s' +
  126. 'They should be saved in order to be visible in built documentation. Save them?';
  127. { ---------------------------------------------------------------------
  128. Menu strings
  129. ---------------------------------------------------------------------}
  130. SMenuFile = '&File';
  131. SMenuFileNew = '&New';
  132. SMenuFileOpen = '&Open';
  133. SMenuFileNewFromFile = 'New from fi&le';
  134. SMenuFileSave = '&Save';
  135. SMenuFileSaveAs = 'Save &as';
  136. SMenuFileClose = '&Close';
  137. SMenuFileRecent = '&Recent';
  138. SMenuFileQuit = '&Quit';
  139. SMenuInsert = '&Insert';
  140. SMenuInsertPackage = '&Package';
  141. SMenuInsertModule = '&Module';
  142. SMenuInsertTopic = 'T&opic';
  143. SMenuInsertElement = '&Element';
  144. SMenuInsertLink = '&Link';
  145. SMenuInsertTable = '&Table';
  146. SMenuInsertShortDescLink = '&Short description link';
  147. SMenuInsertQuickLink = '&Quick Link';
  148. SMenuInsertPrintShort = 'Insert short desc link';
  149. SMenuInsertList = 'List';
  150. SMenuInsertBulletedList = 'Bulleted list';
  151. SMenuInsertNumberedList = 'Numbered list';
  152. SMenuFormat = 'Format';
  153. SMenuFormatBold = '&Bold';
  154. SMenuFormatUnderLine = '&Underline';
  155. SMenuFormatItalics = '&Italic';
  156. SMenuFormatVariable = '&Variable';
  157. SMenuFormatRemark = '&Remark';
  158. SMenuFormatParaGraph = '&Paragraph';
  159. SMenuFormatCode = '&Code';
  160. SMenuFormatFile = '&File';
  161. SMenuRename = 'Rename';
  162. SMenuDelete = 'Delete';
  163. SMenuExpandAll = 'Expand All';
  164. SMenuCollapseAll = 'Collapse All';
  165. SMenuExtra = '&Extra';
  166. SMenuExtraOptions = '&Options';
  167. SMenuExtraBuild = '&Build';
  168. SMenuHelp = '&Help';
  169. SMenuHelpAbout = '&About ...';
  170. { ---------------------------------------------------------------------
  171. Hint strings
  172. ---------------------------------------------------------------------}
  173. SHintFileNew = 'New file';
  174. SHintFileOpen = 'Open file';
  175. SHintFileSave = 'Save file';
  176. SHintFileSaveAs = 'Save file as';
  177. SHintMenuNewFromFile = 'New from file ...';
  178. SHintFileClose = 'Close current file';
  179. SHintFileExit = 'Close doc editor';
  180. SHintFormatBold = 'Bold';
  181. SHintFormatItalics = 'Italic';
  182. SHintFormatUnderLine = 'Underline';
  183. SHintFormatRemark = 'Remark';
  184. SHintFormatVariable = 'Variable';
  185. SHintFormatCode = 'Code';
  186. SHintFormatFile = 'File';
  187. SHintInsertPackage = 'New package';
  188. SHintInsertModule = 'New module';
  189. SHintInsertTopic = 'New topic';
  190. SHintInsertElement = 'New element';
  191. SHintInsertLink = 'Insert link';
  192. ShintInsertTable = 'Insert table';
  193. SHintInsertPrintShortLink = 'Insert a short description link';
  194. SHintInsertBulletedList = 'Insert bulleted list';
  195. SHintInsertNumberedList = 'Insert numbered list';
  196. SMarkSelection = 'Mark selection %s';
  197. SHMenuExtraOptions = 'Show options dialog';
  198. SHMenuHelpAbout = 'About this program';
  199. SHintToolbarAdd = 'Add';
  200. SHintToolbarEdit = 'Edit';
  201. SHintToolbarDelete = 'Delete';
  202. { ---------------------------------------------------------------------
  203. Error messages.
  204. ---------------------------------------------------------------------}
  205. SErrNoPackageForModule = 'No package found to insert module "%s"';
  206. SErrNoNodeForTopic = 'No parent node found to insert topic "%s"';
  207. SErrNoNodeForPackage = 'No node found for package "%s"';
  208. SErrNoNodeForModule = 'No node found for module "%s"';
  209. SErrNoModuleForElement = 'No module found to insert element "%s"';
  210. //SErrNoNodeForElement = 'No node found for element "%s"';
  211. SErrUnknownDomElement = 'Unknwon DOM element as parent for selected element: "%s"';
  212. SStartNodeNotFound = 'Start element "%s" could not be found';
  213. //SSaveFileTitle = 'Enter filename to save to';
  214. //SOpenFileTitle = 'Select file to open';
  215. sSelectSomeText = 'Select some text.';
  216. //Options dialog
  217. sOptDlgOptions = 'Options';
  218. sOptDlgGeneral = 'General';
  219. sOptDlgDesktop = 'Desktop';
  220. sOptDlgShowHints = 'Show hints';
  221. sOptDlgConfirmDeletes = 'C&onfirm deletes';
  222. sOptDlgCreateBackups = 'Create &backups';
  223. sOptDlgSkipEmptyNodes = '&Skip empty nodes when saving';
  224. sOptDlgStartMaximized = 'Start maximized';
  225. sOptDlgReopenLastFile = 'Reopen last file on startup';
  226. sOptDlgDefaultExtension= 'Default extension';
  227. sOptDlgBackupExtension = 'Backup extension';
  228. sOptDlgMaxRecentUsed = 'Max. recent used';
  229. sOptDlgMakeskelProgram = 'makeskel program';
  230. sOptDlgFpdocProgram = 'fpdoc program';
  231. Function FormatHint(S : String) : String;
  232. implementation
  233. uses sysutils;
  234. Function FormatHint(S : String) : String;
  235. begin
  236. Result:=Format(SMarkSelection,[S]);
  237. end;
  238. end.