PageRenderTime 72ms CodeModel.GetById 12ms app.highlight 56ms RepoModel.GetById 1ms app.codeStats 0ms

/doceditor/lazdemsg.pp

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