Changeset 228
- Timestamp:
- Sep 9, 2007, 2:02:29 PM (18 years ago)
- Location:
- trunk/NewView
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NewView/BookmarksFormUnit.pas
r102 r228 84 84 Procedure TBookmarksForm.OnLanguageEvent( Language: TLanguageFile; 85 85 const Apply: boolean ); 86 begin 87 LogEvent(LogI18n, 'TBookmarksForm.OnLanguageEvent apply: "' + BoolToStr(Apply) + '"'); 86 var 87 tmpPrefix : String; 88 begin 89 // LogEvent(LogI18n, 'TBookmarksForm.OnLanguageEvent apply: "' + BoolToStr(Apply) + '"'); 88 90 Language.LoadComponentLanguage( self, Apply ); 89 91 90 Language.LL( Apply, DeleteBookmarkTitle, 'DeleteBookmarkTitle', 'Delete Bookmark' ); 91 Language.LL( Apply, DeleteBookmarkA, 'DeleteBookmarkA', 'Delete the bookmark named ' ); 92 Language.LL( Apply, DeleteBookmarkB, 'DeleteBookmarkB', '?' ); 93 Language.LL( Apply, RenameBookmarkTitle, 'RenameBookmarkTitle', 'Rename Bookmark' ); 94 Language.LL( Apply, RenameBookmark, 'RenameBookmark', 'Enter the new name of the bookmark' ); 92 tmpPrefix := 'BookmarksForm' + LANGUAGE_LABEL_DELIMITER; 93 94 Language.LL( Apply, DeleteBookmarkTitle, tmpPrefix + 'DeleteBookmarkTitle', 'Delete Bookmark' ); 95 Language.LL( Apply, DeleteBookmarkA, tmpPrefix + 'DeleteBookmarkA', 'Delete the bookmark named ' ); 96 Language.LL( Apply, DeleteBookmarkB, tmpPrefix + 'DeleteBookmarkB', '?' ); 97 Language.LL( Apply, RenameBookmarkTitle, tmpPrefix + 'RenameBookmarkTitle', 'Rename Bookmark' ); 98 Language.LL( Apply, RenameBookmark, tmpPrefix + 'RenameBookmark', 'Enter the new name of the bookmark' ); 95 99 end; 96 100 … … 114 118 Procedure TBookmarksForm.BookmarksFormOnCreate (Sender: TObject); 115 119 Begin 116 Register ForLanguages( OnLanguageEvent );120 RegisterEventForLanguages( OnLanguageEvent ); 117 121 End; 118 122 -
trunk/NewView/FileDialogForm.pas
r105 r228 559 559 Procedure TFileDialogForm.OnLanguageEvent( Language: TLanguageFile; 560 560 const Apply: boolean ); 561 var 562 tmpPrefix : String; 561 563 begin 562 LogEvent(LogI18n, 'TFileDialogForm.OnLanguageEvent apply: "' + BoolToStr(Apply) + '"');564 // LogEvent(LogI18n, 'TFileDialogForm.OnLanguageEvent apply: "' + BoolToStr(Apply) + '"'); 563 565 Language.LoadComponentLanguage( self, Apply ); 564 566 565 Language.LL( Apply, InvalidFilterErrorTitle, 'InvalidFilterErrorTitle', 'File Filter Error' ); 567 tmpPrefix := 'FileDialogForm' + LANGUAGE_LABEL_DELIMITER; 568 569 Language.LL( Apply, InvalidFilterErrorTitle, tmpPrefix + 'InvalidFilterErrorTitle', 'File Filter Error' ); 566 570 Language.LL( Apply, 567 571 InvalidFilterError, 568 'InvalidFilterError',572 tmpPrefix + 'InvalidFilterError', 569 573 ' is not a valid filename filter. ' 570 574 + 'You cannot use any of these characters: ' ); 571 Language.LL( Apply, FileNotFoundErrorTitle, 'FileNotFoundErrorTitle', 'File Not Found' );572 Language.LL( Apply, FileNotFoundError, 'FileNotFoundError', 'File does not exist:' );573 Language.LL( Apply, MultiSelectErrorTitle, 'MultiSelectErrorTitle', 'Multi-Select' );574 Language.LL( Apply, MultiSelectError, 'MultiSelectError', 'You can only select one file' );575 Language.LL( Apply, FileNotFoundErrorTitle, tmpPrefix + 'FileNotFoundErrorTitle', 'File Not Found' ); 576 Language.LL( Apply, FileNotFoundError, tmpPrefix + 'FileNotFoundError', 'File does not exist:' ); 577 Language.LL( Apply, MultiSelectErrorTitle, tmpPrefix + 'MultiSelectErrorTitle', 'Multi-Select' ); 578 Language.LL( Apply, MultiSelectError, tmpPrefix + 'MultiSelectError', 'You can only select one file' ); 575 579 end; 576 580 577 581 Procedure TFileDialogForm.FileDialogFormOnCreate (Sender: TObject); 578 582 Begin 579 Register ForLanguages( OnLanguageEvent );583 RegisterEventForLanguages( OnLanguageEvent ); 580 584 581 585 FileMask := '*.*'; -
trunk/NewView/GlobalSearchForm.pas
r191 r228 318 318 319 319 Procedure TGlobalSearchForm.OnLanguageEvent(Language: TLanguageFile; const Apply: boolean ); 320 begin 321 LogEvent(LogI18n, 'TGlobalSearchForm.OnLanguageEvent apply: "' + BoolToStr(Apply) + '"'); 320 var 321 tmpPrefix : String; 322 begin 323 // LogEvent(LogI18n, 'TGlobalSearchForm.OnLanguageEvent apply: "' + BoolToStr(Apply) + '"'); 322 324 323 325 Language.LoadComponentLanguage(self, Apply); 324 326 325 Language.LL(Apply, SearchCaption, 'SearchCaption', '~Search'); 326 Language.LL(Apply, StopCaption, 'StopCaption', '~Stop'); 327 Language.LL(Apply, NoResultsMsg, 'NoResultsMsg', '(No results found)'); 328 Language.LL(Apply, ScanDirectoriesMsg, 'ScanDirectoriesMsg', 'Finding help files...'); 329 Language.LL(Apply, SearchingFileMsg, 'SearchingFileMsg', 'Searching '); 330 Language.LL(Apply, OfMsg, 'OfMsg', ' of '); 331 Language.LL(Apply, DoneMsg, 'DoneMsg', 'Done'); 332 Language.LL(Apply, SearchErrorTitle, 'SearchErrorTitle', 'Search'); 333 Language.LL(Apply, SearchError, 'SearchError', 'Error in search syntax: '); 334 335 Language.LL(Apply, StandardHelpPathsLocation, 'StandardHelpPathsLocation', 'Standard Help Paths'); 336 Language.LL(Apply, FixedDrivesLocation, 'FixedDrivesLocation', 'All Hard Drives'); 337 Language.LL(Apply, SelectedHelpPathsLocation, 'SelectedHelpPathsLocation', 'Selected Help Paths'); 338 Language.LL(Apply, CustomPathsLocation, 'CustomPathsLocation', 'Directory List'); 327 tmpPrefix := 'GlobalSearchForm' + LANGUAGE_LABEL_DELIMITER; 328 329 Language.LL(Apply, SearchCaption, tmpPrefix + 'SearchCaption', '~Search'); 330 Language.LL(Apply, StopCaption, tmpPrefix + 'StopCaption', '~Stop'); 331 Language.LL(Apply, NoResultsMsg, tmpPrefix + 'NoResultsMsg', '(No results found)'); 332 Language.LL(Apply, ScanDirectoriesMsg, tmpPrefix + 'ScanDirectoriesMsg', 'Finding help files...'); 333 Language.LL(Apply, SearchingFileMsg, tmpPrefix + 'SearchingFileMsg', 'Searching '); 334 Language.LL(Apply, OfMsg, tmpPrefix + 'OfMsg', ' of '); 335 Language.LL(Apply, DoneMsg, tmpPrefix + 'DoneMsg', 'Done'); 336 Language.LL(Apply, SearchErrorTitle, tmpPrefix + 'SearchErrorTitle', 'Search'); 337 Language.LL(Apply, SearchError, tmpPrefix + 'SearchError', 'Error in search syntax: '); 338 339 Language.LL(Apply, StandardHelpPathsLocation, tmpPrefix + 'StandardHelpPathsLocation', 'Standard Help Paths'); 340 Language.LL(Apply, FixedDrivesLocation, tmpPrefix + 'FixedDrivesLocation', 'All Hard Drives'); 341 Language.LL(Apply, SelectedHelpPathsLocation, tmpPrefix + 'SelectedHelpPathsLocation', 'Selected Help Paths'); 342 Language.LL(Apply, CustomPathsLocation, tmpPrefix + 'CustomPathsLocation', 'Directory List'); 339 343 end; 340 344 … … 403 407 Procedure TGlobalSearchForm.GlobalSearchFormOnCreate (Sender: TObject); 404 408 Begin 405 Register ForLanguages( OnLanguageEvent );409 RegisterEventForLanguages( OnLanguageEvent ); 406 410 407 411 UpdateButtons; … … 749 753 RegisterClasses ([TGlobalSearchForm, TEdit, TLabel, 750 754 TProgressBar, TButton, TOutline2, TComboBox, TBevel, TLed, TTimer]); 751 RegisterUpdateProcForLanguages( EnsureGlobalSearchFormLoaded ); 755 756 RegisterUpdateProcForLanguages(EnsureGlobalSearchFormLoaded); 752 757 End. -
trunk/NewView/HelpFile.pas
r140 r228 173 173 Procedure OnLanguageEvent( Language: TLanguageFile; 174 174 const Apply: boolean ); 175 begin 176 177 Language.Prefix := 'HelpFile.'; 178 Language.LL( Apply, FileErrorNotFound, 'FileErrorNotFound', 'File not found' ); 179 Language.LL( Apply, FileErrorAccessDenied, 'FileErrorAccessDenied', 'Access denied' ); 180 Language.LL( Apply, FileErrorInUse, 'FileErrorInUse', 'File in use by another program' ); 175 var 176 tmpPrefix : String; 177 begin 178 tmpPrefix := 'HelpFile' + LANGUAGE_LABEL_DELIMITER; 179 180 Language.LL( Apply, FileErrorNotFound, tmpPrefix + 'FileErrorNotFound', 'File not found' ); 181 Language.LL( Apply, FileErrorAccessDenied, tmpPrefix + 'FileErrorAccessDenied', 'Access denied' ); 182 Language.LL( Apply, FileErrorInUse, tmpPrefix + 'FileErrorInUse', 'File in use by another program' ); 181 183 Language.LL( Apply, 182 184 FileErrorInvalidHeader, 183 'FileErrorInvalidHeader',185 tmpPrefix + 'FileErrorInvalidHeader', 184 186 'File doesn''t appear to be an OS/2 Help document (header ID not correct)' ); 185 187 Language.LL( Apply, 186 188 ErrorCorruptHelpFile, 187 'ErrorCorruptHelpFile',189 tmpPrefix + 'ErrorCorruptHelpFile', 188 190 'File is corrupt' ); 189 191 end; -
trunk/NewView/HelpTopic.pas
r140 r228 311 311 const Apply: boolean ); 312 312 begin 313 Language.Prefix := 'HelpTopic.'; 314 Language.LL( Apply, DefaultTitle, 'DefaultTitle', '(No title)' ); 313 Language.LL( Apply, DefaultTitle, 'HelpTopic' + LANGUAGE_LABEL_DELIMITER + 'DefaultTitle', '(No title)' ); 315 314 end; 316 315 -
trunk/NewView/InformationFormUnit.pas
r94 r228 56 56 Procedure TInformationForm.InformationFormOnCreate (Sender: TObject); 57 57 Begin 58 Register ForLanguages( OnLanguageEvent );58 RegisterEventForLanguages( OnLanguageEvent ); 59 59 End; 60 60 … … 62 62 const Apply: boolean ); 63 63 begin 64 LogEvent(LogI18n, 'TInformationForm.OnLanguageEvent apply: "' + BoolToStr(Apply) + '"');64 // LogEvent(LogI18n, 'TInformationForm.OnLanguageEvent apply: "' + BoolToStr(Apply) + '"'); 65 65 Language.LoadComponentLanguage( self, Apply ); 66 66 end; -
trunk/NewView/MainForm.pas
r165 r228 462 462 // language stuff 463 463 // called by callback 464 Procedure OnLanguageEvent( Language: TLanguageFile; 465 const Apply: boolean ); 464 Procedure OnLanguageEvent(Language: TLanguageFile; const Apply: boolean ); 466 465 467 466 function ShowCodes: boolean; … … 1365 1364 end; 1366 1365 1367 Procedure TMainForm.OnLanguageEvent( Language: TLanguageFile; 1368 const Apply: boolean ); 1366 Procedure TMainForm.OnLanguageEvent(Language: TLanguageFile; const Apply: boolean); 1367 var 1368 tmpPrefix : String; 1369 1369 Begin 1370 1370 // get rid of mru menu items … … 1391 1391 // Load strings referred to by code... 1392 1392 // ---------------------------------------------------------- 1393 1394 Language.LL( Apply, FileOpenTitle, 'FileOpenTitle', 'Open Help Files' ); 1395 Language.LL( Apply, LoadingFileMsg, 'LoadingFileMsg', 'Loading file ' ); 1396 Language.LL( Apply, HelpFileError, 'HelpFileError', 'Could not open ' ); 1397 Language.LL( Apply, LoadingStatusDisplaying, 'LoadingStatusDisplaying', 'Displaying...' ); 1398 Language.LL( Apply, LoadingStatusNotesAndBookmarks, 'LoadingStatusNotesAndBookmarks', 'Loading notes/bookmarks...' ); 1399 Language.LL( Apply, LoadingStatusContents, 'LoadingStatusContents', 'Display contents... ' ); 1400 Language.LL( Apply, LoadingStatusIndex, 'LoadingStatusIndex', 'Display index... ' ); 1401 Language.LL( Apply, LoadingStatusDone, 'LoadingStatusDone', 'Done' ); 1402 1403 Language.LL( Apply, HelpFilesDesc, 'HelpFilesDesc', 'Help Files (*.inf,*.hlp)' ); 1404 Language.LL( Apply, AllFilesDesc, 'AllFilesDesc', 'All Files (*)' ); 1405 Language.LL( Apply, LanguageFilesDesc, 'LanguageFilesDesc', 'NewView Language Files (*.lng)' ); 1406 1407 Language.LL( Apply, SaveLanguageTitle, 'SaveLanguageTitle', 'Save/Update Language File' ); 1408 Language.LL( Apply, OpenLanguageTitle, 'OpenLanguageTitle', 'Open Language File' ); 1409 Language.LL( Apply, SaveLanguageError, 'SaveLanguageError', 'Error saving language file: ' ); 1410 1411 Language.LL( Apply, HelpManagerVersionTitle, 'HelpManagerVersionTitle', 'Help Manager Version' ); 1412 1413 Language.LL( Apply, FindResourceIDTitle, 'FindResourceIDTitle', 'Find Resource ID' ); 1414 Language.LL( Apply, FindResourceIDPrompt, 'FindResourceIDPrompt', 'Enter the resource ID to find' ); 1415 Language.LL( Apply, InvalidResourceIDError, 'InvalidResourceIDError', 'Invalid resource ID entered' ); 1416 Language.LL( Apply, ResourceIDNotFoundError, 'ResourceIDNotFoundError', 'Resource ID not found' ); 1417 1418 Language.LL( Apply, OpenSpecialTitle, 'OpenSpecialTitle', 'Open Special' ); 1419 Language.LL( Apply, OpenSpecialPrompt, 'OpenSpecialPrompt', 'Enter help filename/environment variable name' ); 1420 1421 Language.LL( Apply, PrintTopicTitle, 'PrintTopicTitle', 'Print Topic' ); 1422 Language.LL( Apply, NoPrinterError, 'NoPrinterError', 'You don''t have a printer configured.' ); 1423 Language.LL( Apply, SelectWindowToPrintError, 'SelectWindowToPrintError', 'You must select the window you want to print.' ); 1424 Language.LL( Apply, PrintingError, 'PrintingError', 'Error while printing: ' ); 1425 Language.LL( Apply, StoppingPrintMsg, 'StoppingPrintMsg', 'Stopping print...' ); 1426 Language.LL( Apply, PrintStoppedMsg, 'PrintStoppedMsg', 'Printing stopped' ); 1427 Language.LL( Apply, CheckStopPrintTitle, 'CheckStopPrintTitle', 'Stop Print?' ); 1428 Language.LL( Apply, CheckStopPrintMsg, 'CheckStopPrintMsg', 'Printing is still in progress. It will be stopped if you close.' ); 1429 1430 Language.LL( Apply, TopicInfoTitle, 'TopicInfo.Title', 'Topic Information' ); 1431 Language.LL( Apply, TopicInfoTopicTitle, 'TopicInfo.TopicTitle', 'Title: ' ); 1432 Language.LL( Apply, TopicInfoIndex, 'TopicInfo.Index', 'Index: ' ); 1433 Language.LL( Apply, TopicInfoFile, 'TopicInfo.File', 'File: ' ); 1434 Language.LL( Apply, TopicInfoResourceIDs, 'TopicInfo.ResourceIDs', 'Resource IDs:' ); 1435 Language.LL( Apply, TopicInfoNoResourceIDs, 'TopicInfo.NoResourceIDs', ' (None)' ); 1436 1437 Language.LL( Apply, ParameterCountLabel, 'ParameterCountLabel', 'Parameter Count: ' ); 1438 1439 Language.LL( Apply, NewViewHelpTitle, 'NewViewHelpTitle', 'NewView Help' ); 1440 Language.LL( Apply, AlreadyNewviewHelp, 'AlreadyNewviewHelp', 'You are already viewing the NewView help file' ); 1441 Language.LL( Apply, NewViewHelpNotFound, 'NewViewHelpNotFound', 'Couldn''t find the NewView helpfile: ' ); 1442 1443 Language.LL( Apply, InvalidLinkErrorTitle, 'InvalidLinkErrorTitle', 'Invalid Link' ); 1444 Language.LL( Apply, InvalidLinkError, 'InvalidLinkError', 'Cannot follow link to nonexistent topic' ); 1445 Language.LL( Apply, InvalidResourceIDLinkErrorA, 'InvalidResourceIDLinkErrorA', 'Could not find linked topic (Resource #' ); 1446 Language.LL( Apply, InvalidResourceIDLinkErrorB, 'InvalidResourceIDLinkErrorB', '). This may be from another file.' ); 1447 1448 Language.LL( Apply, OpenedTopicMsg, 'OpenedTopicMsg', 'Opened topic #' ); 1449 1450 Language.LL( Apply, AddNoteTitle, 'AddNoteTitle', 'Add Note' ); 1451 Language.LL( Apply, AddNoteCursorError, 'AddNoteCursorError', 'Before adding a note, position the cursor where you want the note to be placed.' ); 1452 Language.LL( Apply, NoteWithinNoteError, 'NoteWithinNoteError', 'You can''t add a note within a link or another note' ); 1453 Language.LL( Apply, LoadNotesTitle, 'LoadNotesTitle', 'Load Notes' ); 1454 Language.LL( Apply, LoadNotesError, 'LoadNotesError', 'Error loading notes from ' ); 1455 Language.LL( Apply, SaveNotesTitle, 'SaveNotesTitle', 'Save Notes' ); 1456 Language.LL( Apply, SaveNotesError, 'SaveNotesError', 'Error saving notes to ' ); 1457 1458 Language.LL( Apply, UntitledBookmarkName, 'UntitledBookmarkName', '(Untitled)' ); 1459 Language.LL( Apply, LoadBookmarksTitle, 'LoadBookmarksTitle', 'Load Bookmarks' ); 1460 Language.LL( Apply, LoadBookmarksError, 'LoadBookmarksError', 'Could not load bookmarks: ' ); 1461 Language.LL( Apply, SaveBookmarksTitle, 'SaveBookmarksTitle', 'Save Bookmarks' ); 1462 Language.LL( Apply, SaveBookmarksError, 'SaveBookmarksError', 'Could not save bookmarks: ' ); 1463 1464 Language.LL( Apply, ApplicationErrorTitle, 'ApplicationErrorTitle', 'Application Error - Close?' ); 1465 Language.LL( Apply, ApplicationErrorA, 'ApplicationErrorA', 'This application has crashed. ' ); 1466 Language.LL( Apply, ApplicationErrorB, 'ApplicationErrorB', '(Details logged to ' ); 1467 Language.LL( Apply, ApplicationErrorC, 'ApplicationErrorC', 'Close application? ' ); 1468 1469 Language.LL( Apply, EnvironmentVarErrorTitle, 'EnvironmentVarErrorTitle', 'Environment Variable Warning' ); 1393 tmpPrefix := 'MainForm' + LANGUAGE_LABEL_DELIMITER; 1394 1395 Language.LL( Apply, FileOpenTitle, tmpPrefix + 'FileOpenTitle', 'Open Help Files' ); 1396 Language.LL( Apply, LoadingFileMsg, tmpPrefix + 'LoadingFileMsg', 'Loading file ' ); 1397 Language.LL( Apply, HelpFileError, tmpPrefix + 'HelpFileError', 'Could not open ' ); 1398 Language.LL( Apply, LoadingStatusDisplaying, tmpPrefix + 'LoadingStatusDisplaying', 'Displaying...' ); 1399 Language.LL( Apply, LoadingStatusNotesAndBookmarks, tmpPrefix + 'LoadingStatusNotesAndBookmarks', 'Loading notes/bookmarks...' ); 1400 Language.LL( Apply, LoadingStatusContents, tmpPrefix + 'LoadingStatusContents', 'Display contents... ' ); 1401 Language.LL( Apply, LoadingStatusIndex, tmpPrefix + 'LoadingStatusIndex', 'Display index... ' ); 1402 Language.LL( Apply, LoadingStatusDone, tmpPrefix + 'LoadingStatusDone', 'Done' ); 1403 1404 Language.LL( Apply, HelpFilesDesc, tmpPrefix + 'HelpFilesDesc', 'Help Files (*.inf,*.hlp)' ); 1405 Language.LL( Apply, AllFilesDesc, tmpPrefix + 'AllFilesDesc', 'All Files (*)' ); 1406 Language.LL( Apply, LanguageFilesDesc, tmpPrefix + 'LanguageFilesDesc', 'NewView Language Files (*.lng)' ); 1407 1408 Language.LL( Apply, SaveLanguageTitle, tmpPrefix + 'SaveLanguageTitle', 'Save/Update Language File' ); 1409 Language.LL( Apply, OpenLanguageTitle, tmpPrefix + 'OpenLanguageTitle', 'Open Language File' ); 1410 Language.LL( Apply, SaveLanguageError, tmpPrefix + 'SaveLanguageError', 'Error saving language file: ' ); 1411 1412 Language.LL( Apply, HelpManagerVersionTitle, tmpPrefix + 'HelpManagerVersionTitle', 'Help Manager Version' ); 1413 1414 Language.LL( Apply, FindResourceIDTitle, tmpPrefix + 'FindResourceIDTitle', 'Find Resource ID' ); 1415 Language.LL( Apply, FindResourceIDPrompt, tmpPrefix + 'FindResourceIDPrompt', 'Enter the resource ID to find' ); 1416 Language.LL( Apply, InvalidResourceIDError, tmpPrefix + 'InvalidResourceIDError', 'Invalid resource ID entered' ); 1417 Language.LL( Apply, ResourceIDNotFoundError, tmpPrefix + 'ResourceIDNotFoundError', 'Resource ID not found' ); 1418 1419 Language.LL( Apply, OpenSpecialTitle, tmpPrefix + 'OpenSpecialTitle', 'Open Special' ); 1420 Language.LL( Apply, OpenSpecialPrompt, tmpPrefix + 'OpenSpecialPrompt', 'Enter help filename/environment variable name' ); 1421 1422 Language.LL( Apply, PrintTopicTitle, tmpPrefix + 'PrintTopicTitle', 'Print Topic' ); 1423 Language.LL( Apply, NoPrinterError, tmpPrefix + 'NoPrinterError', 'You don''t have a printer configured.' ); 1424 Language.LL( Apply, SelectWindowToPrintError, tmpPrefix + 'SelectWindowToPrintError', 'You must select the window you want to print.' ); 1425 Language.LL( Apply, PrintingError, tmpPrefix + 'PrintingError', 'Error while printing: ' ); 1426 Language.LL( Apply, StoppingPrintMsg, tmpPrefix + 'StoppingPrintMsg', 'Stopping print...' ); 1427 Language.LL( Apply, PrintStoppedMsg, tmpPrefix + 'PrintStoppedMsg', 'Printing stopped' ); 1428 Language.LL( Apply, CheckStopPrintTitle, tmpPrefix + 'CheckStopPrintTitle', 'Stop Print?' ); 1429 Language.LL( Apply, CheckStopPrintMsg, tmpPrefix + 'CheckStopPrintMsg', 'Printing is still in progress. It will be stopped if you close.' ); 1430 1431 Language.LL( Apply, TopicInfoTitle, tmpPrefix + 'TopicInfo.Title', 'Topic Information' ); 1432 Language.LL( Apply, TopicInfoTopicTitle, tmpPrefix + 'TopicInfo.TopicTitle', 'Title: ' ); 1433 Language.LL( Apply, TopicInfoIndex, tmpPrefix + 'TopicInfo.Index', 'Index: ' ); 1434 Language.LL( Apply, TopicInfoFile, tmpPrefix + 'TopicInfo.File', 'File: ' ); 1435 Language.LL( Apply, TopicInfoResourceIDs, tmpPrefix + 'TopicInfo.ResourceIDs', 'Resource IDs:' ); 1436 Language.LL( Apply, TopicInfoNoResourceIDs, tmpPrefix + 'TopicInfo.NoResourceIDs', ' (None)' ); 1437 1438 Language.LL( Apply, ParameterCountLabel, tmpPrefix + 'ParameterCountLabel', 'Parameter Count: ' ); 1439 1440 Language.LL( Apply, NewViewHelpTitle, tmpPrefix + 'NewViewHelpTitle', 'NewView Help' ); 1441 Language.LL( Apply, AlreadyNewviewHelp, tmpPrefix + 'AlreadyNewviewHelp', 'You are already viewing the NewView help file' ); 1442 Language.LL( Apply, NewViewHelpNotFound, tmpPrefix + 'NewViewHelpNotFound', 'Couldn''t find the NewView helpfile: ' ); 1443 1444 Language.LL( Apply, InvalidLinkErrorTitle, tmpPrefix + 'InvalidLinkErrorTitle', 'Invalid Link' ); 1445 Language.LL( Apply, InvalidLinkError, tmpPrefix + 'InvalidLinkError', 'Cannot follow link to nonexistent topic' ); 1446 Language.LL( Apply, InvalidResourceIDLinkErrorA, tmpPrefix + 'InvalidResourceIDLinkErrorA', 'Could not find linked topic (Resource #' ); 1447 Language.LL( Apply, InvalidResourceIDLinkErrorB, tmpPrefix + 'InvalidResourceIDLinkErrorB', '). This may be from another file.' ); 1448 1449 Language.LL( Apply, OpenedTopicMsg, tmpPrefix + 'OpenedTopicMsg', 'Opened topic #' ); 1450 1451 Language.LL( Apply, AddNoteTitle, tmpPrefix + 'AddNoteTitle', 'Add Note' ); 1452 Language.LL( Apply, AddNoteCursorError, tmpPrefix + 'AddNoteCursorError', 'Before adding a note, position the cursor where you want the note to be placed.' ); 1453 Language.LL( Apply, NoteWithinNoteError, tmpPrefix + 'NoteWithinNoteError', 'You can''t add a note within a link or another note' ); 1454 Language.LL( Apply, LoadNotesTitle, tmpPrefix + 'LoadNotesTitle', 'Load Notes' ); 1455 Language.LL( Apply, LoadNotesError, tmpPrefix + 'LoadNotesError', 'Error loading notes from ' ); 1456 Language.LL( Apply, SaveNotesTitle, tmpPrefix + 'SaveNotesTitle', 'Save Notes' ); 1457 Language.LL( Apply, SaveNotesError, tmpPrefix + 'SaveNotesError', 'Error saving notes to ' ); 1458 1459 Language.LL( Apply, UntitledBookmarkName, tmpPrefix + 'UntitledBookmarkName', '(Untitled)' ); 1460 Language.LL( Apply, LoadBookmarksTitle, tmpPrefix + 'LoadBookmarksTitle', 'Load Bookmarks' ); 1461 Language.LL( Apply, LoadBookmarksError, tmpPrefix + 'LoadBookmarksError', 'Could not load bookmarks: ' ); 1462 Language.LL( Apply, SaveBookmarksTitle, tmpPrefix + 'SaveBookmarksTitle', 'Save Bookmarks' ); 1463 Language.LL( Apply, SaveBookmarksError, tmpPrefix + 'SaveBookmarksError', 'Could not save bookmarks: ' ); 1464 1465 Language.LL( Apply, ApplicationErrorTitle, tmpPrefix + 'ApplicationErrorTitle', 'Application Error - Close?' ); 1466 Language.LL( Apply, ApplicationErrorA, tmpPrefix + 'ApplicationErrorA', 'This application has crashed. ' ); 1467 Language.LL( Apply, ApplicationErrorB, tmpPrefix + 'ApplicationErrorB', '(Details logged to ' ); 1468 Language.LL( Apply, ApplicationErrorC, tmpPrefix + 'ApplicationErrorC', 'Close application? ' ); 1469 1470 Language.LL( Apply, EnvironmentVarErrorTitle, tmpPrefix + 'EnvironmentVarErrorTitle', 'Environment Variable Warning' ); 1470 1471 Language.LL( Apply, EnvironmentVarError, 1471 'EnvironmentVarError',1472 tmpPrefix + 'EnvironmentVarError', 1472 1473 'NewView found a problem with environment variables. ' 1473 1474 + 'These are used when finding help files. ' 1474 1475 + 'You may have problems launching help.' ); 1475 Language.LL( Apply, EnvironmentVarUndefined, 'EnvironmentVarUndefined', 'Undefined: ' ); 1476 1477 Language.LL( Apply, FindTitle, 'FindTitle', 'Find' ); 1478 Language.LL( Apply, FindSelectWindowError, 'FindSelectWindowError', 'Click in a window first' ); 1479 Language.LL( Apply, FindPrompt, 'FindPrompt', 'Enter the text to find' ); 1480 Language.LL( Apply, TextNotFoundMsg, 'TextNotFoundMsg', 'Text not found' ); 1481 1482 Language.LL( Apply, FilesInfoTitle, 'FilesInfoTitle', 'Open Files Information' ); 1483 Language.LL( Apply, FilesInfoOverallTitle, 'FilesInfoOverallTitle', 'Title: ' ); 1484 Language.LL( Apply, FilesInfoFilename, 'FilesInfoFilename', 'Filename: ' ); 1485 Language.LL( Apply, FilesInfoFileTitle, 'FilesInfoFileTitle', ' Title: ' ); 1486 Language.LL( Apply, FilesInfoTopicCount, 'FilesInfoTopicCount', ' Topic Count: ' ); 1487 Language.LL( Apply, FilesInfoIndexCount, 'FilesInfoIndexCount', ' Index Count: ' ); 1488 Language.LL( Apply, FilesInfoDictionaryCount, 'FilesInfoDictionaryCount', ' Dictionary Count: ' ); 1489 Language.LL( Apply, FilesInfoFileSize, 'FilesInfoFileSize', ' Size: ' ); 1490 Language.LL( Apply, FilesInfoTotalTopicCount, 'FilesInfoTotalTopicCount', 'Total Topic Count: ' ); 1491 Language.LL( Apply, FilesInfoTotalIndexCount, 'FilesInfoTotalIndexCount', 'Total Index Count: ' ); 1492 Language.LL( Apply, FilesInfoTotalFileSize, 'FilesInfoTotalFileSize', 'Total File Size: ' ); 1493 1494 Language.LL( Apply, SearchTitle, 'SearchTitle', 'Search' ); 1495 Language.LL( Apply, SearchSyntaxError, 'SearchSyntaxError', 'Error in search syntax: ' ); 1496 Language.LL( Apply, SearchingMsg, 'SearchingMsg', 'Searching...' ); 1497 Language.LL( Apply, NoSearchMatchesMsg, 'NoSearchMatchesMsg', 'No matches found for ' ); 1498 Language.LL( Apply, SearchFoundMsgA, 'SearchFoundMsgA', 'Found ' ); 1499 Language.LL( Apply, SearchFoundMsgB, 'SearchFoundMsgB', ' matches for ' ); 1500 1501 Language.LL( Apply, FileSaveTitle, 'FileSaveTitle', 'Save Topic' ); 1502 Language.LL( Apply, FileSaveSelectWindowError, 'FileSaveSelectWindowError', 'Before saving, click in the window you want to save.' ); 1503 Language.LL( Apply, DefaultSaveTopicFilename, 'DefaultSaveTopicFilename', 'topic.txt' ); 1504 1505 Language.LL( Apply, ReplaceFilePromptA, 'ReplaceFilePromptA', 'Replace existing file ' ); 1506 Language.LL( Apply, ReplaceFilePromptB, 'ReplaceFilePromptB', '?' ); 1507 Language.LL( Apply, UnableToSaveError, 'UnableToSaveError', 'Unable to save file: ' ); 1508 1509 Language.LL( Apply, UsageTitle, 'UsageTitle', 'NewView Command Line' ); 1510 Language.LL( Apply, UsageText1, 'UsageText1', 'Usage: ' ); 1511 Language.LL( Apply, UsageText2, 'UsageText2', 'NewView <filename> [<topic>]' ); 1512 Language.LL( Apply, UsageText3, 'UsageText3', ' /s Do search for <topic>' ); 1513 Language.LL( Apply, UsageText4, 'UsageText4', ' /g Do global search for <topic>' ); 1514 Language.LL( Apply, UsageText5, 'UsageText5', ' /pos:l,b,w,h Set window position' ); 1515 Language.LL( Apply, UsageText6, 'UsageText6', ' /lang:<lang> Load UI language' ); 1516 Language.LL( Apply, UsageText7, 'UsageText7', ' /title:<title> Set window title' ); 1517 Language.LL( Apply, UsageText8, 'UsageText8', 'See help for details' ); 1518 1519 Language.LL( Apply, GoBackHint, 'GoBackHint', 'Go back to ' ); 1520 1521 Language.LL( Apply, SelectAllTitle, 'SelectAllTitle', 'Select All' ); 1522 Language.LL( Apply, SelectAllWindowError, 'SelectAllWindowError', 'Click in a text window first' ); 1523 1524 Language.LL( Apply, EditNoteMsg, 'EditNoteMsg', 'Click to edit note' ); 1525 Language.LL( Apply, ExternalLinkMsg, 'ExternalLinkMsg', 'Link to another file' ); 1526 Language.LL( Apply, LinkMsg, 'LinkMsg', 'Link to' ); 1527 Language.LL( Apply, UnknownLinkMsg, 'UnknownLinkMsg', 'Unknown link' ); 1528 Language.LL( Apply, FootnoteMsg, 'FootnoteMsg', 'Footnote' ); 1529 1530 Language.LL( Apply, ExternalLinkTitle, 'ExternalLinkTitle', 'File Link' ); 1531 Language.LL( Apply, ExternalLinkError, 'ExternalLinkError', 'Sorry, this is a link to another file, which is not currently implemented in NewView' ); 1532 1533 Language.LL( Apply, MRUMultipleFilesHint, 'MRUMultipleFilesHint', 'files' ); 1534 Language.LL( Apply, HelpProgramTitle, 'HelpProgramTitle', 'Help' ); 1535 1536 Language.LL( Apply, WindowsHelpTitle, 'WindowsHelpTitle', 'Windows Help' ); 1476 Language.LL( Apply, EnvironmentVarUndefined, tmpPrefix + 'EnvironmentVarUndefined', 'Undefined: ' ); 1477 1478 Language.LL( Apply, FindTitle, tmpPrefix + 'FindTitle', 'Find' ); 1479 Language.LL( Apply, FindSelectWindowError, tmpPrefix + 'FindSelectWindowError', 'Click in a window first' ); 1480 Language.LL( Apply, FindPrompt, tmpPrefix + 'FindPrompt', 'Enter the text to find' ); 1481 Language.LL( Apply, TextNotFoundMsg, tmpPrefix + 'TextNotFoundMsg', 'Text not found' ); 1482 1483 Language.LL( Apply, FilesInfoTitle, tmpPrefix + 'FilesInfoTitle', 'Open Files Information' ); 1484 Language.LL( Apply, FilesInfoOverallTitle, tmpPrefix + 'FilesInfoOverallTitle', 'Title: ' ); 1485 Language.LL( Apply, FilesInfoFilename, tmpPrefix + 'FilesInfoFilename', 'Filename: ' ); 1486 Language.LL( Apply, FilesInfoFileTitle, tmpPrefix + 'FilesInfoFileTitle', ' Title: ' ); 1487 Language.LL( Apply, FilesInfoTopicCount, tmpPrefix + 'FilesInfoTopicCount', ' Topic Count: ' ); 1488 Language.LL( Apply, FilesInfoIndexCount, tmpPrefix + 'FilesInfoIndexCount', ' Index Count: ' ); 1489 Language.LL( Apply, FilesInfoDictionaryCount, tmpPrefix + 'FilesInfoDictionaryCount', ' Dictionary Count: ' ); 1490 Language.LL( Apply, FilesInfoFileSize, tmpPrefix + 'FilesInfoFileSize', ' Size: ' ); 1491 Language.LL( Apply, FilesInfoTotalTopicCount, tmpPrefix + 'FilesInfoTotalTopicCount', 'Total Topic Count: ' ); 1492 Language.LL( Apply, FilesInfoTotalIndexCount, tmpPrefix + 'FilesInfoTotalIndexCount', 'Total Index Count: ' ); 1493 Language.LL( Apply, FilesInfoTotalFileSize, tmpPrefix + 'FilesInfoTotalFileSize', 'Total File Size: ' ); 1494 1495 Language.LL( Apply, SearchTitle, tmpPrefix + 'SearchTitle', 'Search' ); 1496 Language.LL( Apply, SearchSyntaxError, tmpPrefix + 'SearchSyntaxError', 'Error in search syntax: ' ); 1497 Language.LL( Apply, SearchingMsg, tmpPrefix + 'SearchingMsg', 'Searching...' ); 1498 Language.LL( Apply, NoSearchMatchesMsg, tmpPrefix + 'NoSearchMatchesMsg', 'No matches found for ' ); 1499 Language.LL( Apply, SearchFoundMsgA, tmpPrefix + 'SearchFoundMsgA', 'Found ' ); 1500 Language.LL( Apply, SearchFoundMsgB, tmpPrefix + 'SearchFoundMsgB', ' matches for ' ); 1501 1502 Language.LL( Apply, FileSaveTitle, tmpPrefix + 'FileSaveTitle', 'Save Topic' ); 1503 Language.LL( Apply, FileSaveSelectWindowError, tmpPrefix + 'FileSaveSelectWindowError', 'Before saving, click in the window you want to save.' ); 1504 Language.LL( Apply, DefaultSaveTopicFilename, tmpPrefix + 'DefaultSaveTopicFilename', 'topic.txt' ); 1505 1506 Language.LL( Apply, ReplaceFilePromptA, tmpPrefix + 'ReplaceFilePromptA', 'Replace existing file ' ); 1507 Language.LL( Apply, ReplaceFilePromptB, tmpPrefix + 'ReplaceFilePromptB', '?' ); 1508 Language.LL( Apply, UnableToSaveError, tmpPrefix + 'UnableToSaveError', 'Unable to save file: ' ); 1509 1510 Language.LL( Apply, UsageTitle, tmpPrefix + 'UsageTitle', 'NewView Command Line' ); 1511 Language.LL( Apply, UsageText1, tmpPrefix + 'UsageText1', 'Usage: ' ); 1512 Language.LL( Apply, UsageText2, tmpPrefix + 'UsageText2', 'NewView <filename> [<topic>]' ); 1513 Language.LL( Apply, UsageText3, tmpPrefix + 'UsageText3', ' /s Do search for <topic>' ); 1514 Language.LL( Apply, UsageText4, tmpPrefix + 'UsageText4', ' /g Do global search for <topic>' ); 1515 Language.LL( Apply, UsageText5, tmpPrefix + 'UsageText5', ' /pos:l,b,w,h Set window position' ); 1516 Language.LL( Apply, UsageText6, tmpPrefix + 'UsageText6', ' /lang:<lang> Load UI language' ); 1517 Language.LL( Apply, UsageText7, tmpPrefix + 'UsageText7', ' /title:<title> Set window title' ); 1518 Language.LL( Apply, UsageText8, tmpPrefix + 'UsageText8', 'See help for details' ); 1519 1520 Language.LL( Apply, GoBackHint, tmpPrefix + 'GoBackHint', 'Go back to ' ); 1521 1522 Language.LL( Apply, SelectAllTitle, tmpPrefix + 'SelectAllTitle', 'Select All' ); 1523 Language.LL( Apply, SelectAllWindowError, tmpPrefix + 'SelectAllWindowError', 'Click in a text window first' ); 1524 1525 Language.LL( Apply, EditNoteMsg, tmpPrefix + 'EditNoteMsg', 'Click to edit note' ); 1526 Language.LL( Apply, ExternalLinkMsg, tmpPrefix + 'ExternalLinkMsg', 'Link to another file' ); 1527 Language.LL( Apply, LinkMsg, tmpPrefix + 'LinkMsg', 'Link to' ); 1528 Language.LL( Apply, UnknownLinkMsg, tmpPrefix + 'UnknownLinkMsg', 'Unknown link' ); 1529 Language.LL( Apply, FootnoteMsg, tmpPrefix + 'FootnoteMsg', 'Footnote' ); 1530 1531 Language.LL( Apply, ExternalLinkTitle, tmpPrefix + 'ExternalLinkTitle', 'File Link' ); 1532 Language.LL( Apply, ExternalLinkError, tmpPrefix + 'ExternalLinkError', 'Sorry, this is a link to another file, which is not currently implemented in NewView' ); 1533 1534 Language.LL( Apply, MRUMultipleFilesHint, tmpPrefix + 'MRUMultipleFilesHint', 'files' ); 1535 Language.LL( Apply, HelpProgramTitle, tmpPrefix + 'HelpProgramTitle', 'Help' ); 1536 1537 Language.LL( Apply, WindowsHelpTitle, tmpPrefix + 'WindowsHelpTitle', 'Windows Help' ); 1538 // TODO 1537 1539 Language.LL( Apply, 1538 1540 WindowsHelpPrompt, 1539 'WindowsHelpPrompt',1541 tmpPrefix + 'WindowsHelpPrompt', 1540 1542 'This file is a Windows help file. ' 1541 1543 + 'Would you like to start Windows Help viewer?' ); 1542 1544 1543 Language.LL( Apply, ErrorTitle, 'ErrorTitle', 'Error' );1544 1545 Language.LL( Apply, FindTopicNameTitle, 'FindTopicNameTitle', 'Find Topic By Name' );1546 Language.LL( Apply, FindTopicNamePrompt, 'FindTopicNamePrompt', 'Enter the topic name to search for' );1547 Language.LL( Apply, TopicNameNotFoundError, 'TopicNameNotFoundError', 'Topic name not found' );1548 Language.LL( Apply, SplitBarDblClickToShow, 'SplitBarDblClickToShow', 'Double-click to show left panel' );1549 Language.LL( Apply, SplitBarDblClickToHide, 'SplitBarDblClickToHide', 'Double-click to hide left panel' );1545 Language.LL( Apply, ErrorTitle, tmpPrefix + 'ErrorTitle', 'Error' ); 1546 1547 Language.LL( Apply, FindTopicNameTitle, tmpPrefix + 'FindTopicNameTitle', 'Find Topic By Name' ); 1548 Language.LL( Apply, FindTopicNamePrompt, tmpPrefix + 'FindTopicNamePrompt', 'Enter the topic name to search for' ); 1549 Language.LL( Apply, TopicNameNotFoundError, tmpPrefix + 'TopicNameNotFoundError', 'Topic name not found' ); 1550 Language.LL( Apply, SplitBarDblClickToShow, tmpPrefix + 'SplitBarDblClickToShow', 'Double-click to show left panel' ); 1551 Language.LL( Apply, SplitBarDblClickToHide, tmpPrefix + 'SplitBarDblClickToHide', 'Double-click to hide left panel' ); 1550 1552 1551 1553 SetMainCaption; … … 1576 1578 Procedure TMainForm.DebugSaveLanguageFileMIOnClick (Sender: TObject); 1577 1579 Var 1578 LanguageFile: TLanguageFile;1580 // LanguageFile: TLanguageFile; 1579 1581 Dir: string; 1580 1582 Filename: string; … … 1596 1598 1597 1599 try 1598 LanguageFile := TLanguageFile.Create( Filename ); 1599 1600 UpdateLanguage( LanguageFile ); 1600 // first touch all 1601 UpdateLanguage(g_CurrentLanguageFile); 1602 // then save 1603 g_CurrentLanguageFile.writeToFile(Filename); 1601 1604 except 1602 1605 on E: Exception do … … 1607 1610 end; 1608 1611 end; 1609 1610 LanguageFile.Destroy; 1611 1612 1612 1613 CreateMRUMenuItems; 1613 1614 End; … … 3829 3830 Application.OnHelp := OnHelp; 3830 3831 3831 Register ForLanguages( OnLanguageEvent );3832 RegisterEventForLanguages( OnLanguageEvent ); 3832 3833 3833 3834 // if debug is not enabled, get rid of the debug menu and separator. … … 3914 3915 if CmdLineParameters.getLanguage <> '' then 3915 3916 begin 3916 if not Load AutoLanguage('newview', CmdLineParameters.getLanguage) then3917 if not LoadLanguageForSpec('newview', CmdLineParameters.getLanguage) then 3917 3918 begin 3918 3919 LoadDefaultLanguage('newview'); -
trunk/NewView/NewView.spr
r209 r228 48 48 File29=INIFILES 49 49 File30=ACLUTILITY 50 File31=ACLSTRINGUTILITY 51 File32=ACLFILEIOUTILITY 52 File33=CHARUTILSUNIT 53 File34=ACLSTRING 54 File35=SEMAPHORES 55 File36=SHAREDMEMORYUNIT 56 File37=COOLBAR2 57 File38=CUSTOMHEADERCONTROL 58 File39=MULTICOLUMNLISTBOX 59 File40=BSEDEV 60 File41=DEBUGUNIT 61 File42=STRINGUTILSUNIT 62 File43=FILEUTILSUNIT 63 File44=ACLLANGUAGEUNIT 64 File45=GENERICTHREAD 65 File46=VERSIONUNIT 66 File47=CMDLINEPARAMETERUNIT 67 File48=SPLITBAR 68 File49=CONTROLSCROLLING 69 File50=OUTLINE2 70 File51=CANVASFONTMANAGER 71 File52=RICHTEXTDOCUMENTUNIT 72 File53=RICHTEXTSTYLEUNIT 73 File54=CLIPBRD 74 File55=RICHTEXTLAYOUTUNIT 75 File56=CONTROLSUTILITY 76 File57=RICHTEXTDISPLAYUNIT 77 File58=RICHTEXTVIEW 78 File59=CUSTOMLISTBOX 79 File60=IPFFILEFORMATUNIT 80 File61=HELPWINDOWDIMENSIONS 81 File62=NEWVIEWCONSTANTSUNIT 82 File63=ASTRINGUTILITYUNIT 83 File64=SETTINGSUNIT 84 File65=HELPTOPIC 85 File66=CUSTOMMEMO 86 File67=SYSTEMICONUNIT 87 File68=ACLMESSAGEFORM 88 File69=ACLDIALOGS 89 File70=HELPBITMAP 90 File71=SEARCHTABLE 91 File72=HELPFILE 92 File73=HELPWINDOWUNIT 93 File74=NAVIGATEPOINTUNIT 94 File75=MISCUNIT 95 File76=HELPMANAGERUNIT 96 File77=TEXTSEARCHQUERY 97 File78=TABSET2UNIT 98 File79=RUNPROGRAMUNIT 99 File80=RICHTEXTPRINTUNIT 100 File81=INFORMATIONFORMUNIT 101 File82=COLORMAPPING 102 File83=COLORWHEEL 103 File84=CUSTOMFONTDIALOG 104 File85=BITMAPUTILITY 105 File86=CUSTOMFILECONTROLS 106 File87=FILEDIALOGFORM 107 File88=OPTIONSFORM 108 File89=WEBBROWSERUNIT 109 File90=PRODUCTINFORMATIONFORMUNIT 110 File91=NOTEFORM 111 File92=LED 112 File93=SEARCHUNIT 113 File94=SEARCHDIRECTORIESFORMUNIT 114 File95=GLOBALSEARCHFORM 115 File96=BOOKMARKSFORMUNIT 116 File97=PRINTDIALOGUNIT 117 File98=GLOBALFILELISTUNIT 118 File99=STARTUPUNIT 119 File100=MAINFORM 50 File31=CHARUTILSUNIT 51 File32=DEBUGUNIT 52 File33=STRINGUTILSUNIT 53 File34=ACLFILEIOUTILITY 54 File35=ACLSTRING 55 File36=SEMAPHORES 56 File37=SHAREDMEMORYUNIT 57 File38=BSEDEV 58 File39=FILEUTILSUNIT 59 File40=COOLBAR2 60 File41=CUSTOMHEADERCONTROL 61 File42=MULTICOLUMNLISTBOX 62 File43=ACLLANGUAGEUNIT 63 File44=GENERICTHREAD 64 File45=VERSIONUNIT 65 File46=CMDLINEPARAMETERUNIT 66 File47=SPLITBAR 67 File48=CONTROLSCROLLING 68 File49=OUTLINE2 69 File50=CANVASFONTMANAGER 70 File51=RICHTEXTDOCUMENTUNIT 71 File52=RICHTEXTSTYLEUNIT 72 File53=CLIPBRD 73 File54=RICHTEXTLAYOUTUNIT 74 File55=CONTROLSUTILITY 75 File56=RICHTEXTDISPLAYUNIT 76 File57=RICHTEXTVIEW 77 File58=CUSTOMLISTBOX 78 File59=IPFFILEFORMATUNIT 79 File60=HELPWINDOWDIMENSIONS 80 File61=NEWVIEWCONSTANTSUNIT 81 File62=ASTRINGUTILITYUNIT 82 File63=SETTINGSUNIT 83 File64=HELPTOPIC 84 File65=CUSTOMMEMO 85 File66=SYSTEMICONUNIT 86 File67=ACLMESSAGEFORM 87 File68=ACLDIALOGS 88 File69=HELPBITMAP 89 File70=SEARCHTABLE 90 File71=HELPFILE 91 File72=HELPWINDOWUNIT 92 File73=NAVIGATEPOINTUNIT 93 File74=MISCUNIT 94 File75=HELPMANAGERUNIT 95 File76=TEXTSEARCHQUERY 96 File77=TABSET2UNIT 97 File78=RUNPROGRAMUNIT 98 File79=RICHTEXTPRINTUNIT 99 File80=INFORMATIONFORMUNIT 100 File81=COLORMAPPING 101 File82=COLORWHEEL 102 File83=CUSTOMFONTDIALOG 103 File84=BITMAPUTILITY 104 File85=CUSTOMFILECONTROLS 105 File86=FILEDIALOGFORM 106 File87=OPTIONSFORM 107 File88=WEBBROWSERUNIT 108 File89=PRODUCTINFORMATIONFORMUNIT 109 File90=NOTEFORM 110 File91=LED 111 File92=SEARCHUNIT 112 File93=SEARCHDIRECTORIESFORMUNIT 113 File94=GLOBALSEARCHFORM 114 File95=BOOKMARKSFORMUNIT 115 File96=PRINTDIALOGUNIT 116 File97=GLOBALFILELISTUNIT 117 File98=STARTUPUNIT 118 File99=MAINFORM 120 119 121 120 [Compiler Options] … … 165 164 [Find History] 166 165 167 Find0= getdrivetype168 Find1= Unit169 Find2= ExtractNextValue170 Find3= StrLeft171 Find4= PCharPointerDiff172 Find5= PCharDiff173 Find6= beta1174 Find7= Filename175 Find8= FilesInfoFilename176 Find9= FindTopicByGlobalName177 Find10= Unable to find topic with global name178 Find11= GetNextQuotedValue179 Find12= pValue180 Find13= Used181 Find14= LoadL182 Find15= startupdate166 Find0=OpenWindowsHelp 167 Find1=WINDOWSHELPPROMPT 168 Find2=TLanguageItemList.get 169 Find3=TlanguageItemList 170 Find4=LoadLanguage 171 Find5=DebugLoadLanguageMIOnClick 172 Find6=loadlang 173 Find7=ApplyLanguage 174 Find8=updatelang 175 Find9=updatel 176 Find10=open 177 Find11=RegisterUpdateProcForLanguages 178 Find12=g_LanguageUpdateCallbacks 179 Find13=writeToFile 180 Find14=saveTo 181 Find15=debugfind 183 182 184 183 [General] 185 184 186 185 Version=Sibyl Project Ver2.02 187 ProjectName=P:\NEWVIEW_DEV\N EWVIEW\NewView.spr186 ProjectName=P:\NEWVIEW_DEV\NewView\NewView.spr 188 187 ProjectType=Visual 189 188 CompLibName=D:\progs\Sibyl\Bin\CompLib.dll 190 189 Win32CompLibName=D:\progs\Sibyl\Bin\CompLib.dll 191 RunParameter=-lang: en190 RunParameter=-lang:de 192 191 InActiveLanguages= 193 192 CurrentLanguage=Default … … 196 195 [Last Closed Files] 197 196 198 File0=..\.\Components\Outline2.PAS 199 File1=..\.\library\DebugUnit.pas 200 File2=.\SettingsUnit.pas 201 File3=..\.\Components\RichTextDisplayUnit.pas 197 File0=.\FileDialogForm.pas 198 File1=.\GlobalSearchForm.pas 199 File2=.\InformationFormUnit.pas 200 File3=.\NoteForm.pas 201 File4=.\PrintDialogUnit.pas 202 File5=.\ProductInformationFormUnit.pas 202 203 203 204 [Last Open Files] 204 205 205 File0=.\ MainForm.pas206 File0=.\VersionUnit.pas 206 207 File0.Left=-4 207 File0.Bottom=- 5208 File0.Width=1 399208 File0.Bottom=-4 209 File0.Width=1296 209 210 File0.Height=629 210 File0.Column= 29211 File0.Line= 5524212 File1=.\ VersionUnit.pas211 File0.Column=57 212 File0.Line=11 213 File1=.\NewView.pas 213 214 File1.Left=-4 214 File1.Bottom=- 5215 File1.Width=1 399215 File1.Bottom=-4 216 File1.Width=1296 216 217 File1.Height=629 217 File1.Column=3 2218 File1.Line= 18218 File1.Column=31 219 File1.Line=24 219 220 File2=..\.\Components\ACLLanguageUnit.pas 220 221 File2.Left=-4 221 File2.Bottom=- 5222 File2.Width=1 399222 File2.Bottom=-4 223 File2.Width=1296 223 224 File2.Height=629 224 File2.Column= 44225 File2.Line= 526226 File3=.\ NewView.pas225 File2.Column=28 226 File2.Line=626 227 File3=.\MainForm.pas 227 228 File3.Left=-4 228 File3.Bottom=- 5229 File3.Width=1 399229 File3.Bottom=-4 230 File3.Width=1296 230 231 File3.Height=629 231 File3.Column=3 232 File3.Line= 13233 File4=.\ CmdLineParameterUnit.pas232 File3.Column=35 233 File3.Line=6483 234 File4=.\HelpTopic.pas 234 235 File4.Left=-4 235 File4.Bottom=- 5236 File4.Width=1 399236 File4.Bottom=-4 237 File4.Width=1296 237 238 File4.Height=629 238 File4.Column= 3239 File4.Line= 19240 File5=. .\.\Library\ACLString.pas239 File4.Column=1 240 File4.Line=2744 241 File5=.\HelpFile.pas 241 242 File5.Left=-4 242 File5.Bottom=- 5243 File5.Width=1 399243 File5.Bottom=-4 244 File5.Width=1296 244 245 File5.Height=629 245 File5.Column=3 246 File5.Line=182 247 File6=..\.\Library\ACLStringUtility.pas 248 File6.Left=-4 249 File6.Bottom=-5 250 File6.Width=1399 251 File6.Height=629 252 File6.Column=3 253 File6.Line=291 254 File7=..\.\Library\CharUtilsUnit.pas 255 File7.Left=-4 256 File7.Bottom=-5 257 File7.Width=1399 258 File7.Height=629 259 File7.Column=17 260 File7.Line=54 261 File8=..\.\Library\StringUtilsUnit.pas 262 File8.Left=-4 263 File8.Bottom=-5 264 File8.Width=1399 265 File8.Height=629 266 File8.Column=76 267 File8.Line=435 268 File9=..\.\Library\ACLFileIOUtility.pas 269 File9.Left=-4 270 File9.Bottom=-5 271 File9.Width=1399 272 File9.Height=629 273 File9.Column=1 274 File9.Line=1 275 File10=..\.\Library\ACLUtility.pas 276 File10.Left=-4 277 File10.Bottom=-5 278 File10.Width=1399 279 File10.Height=629 280 File10.Column=1 281 File10.Line=1 282 File11=.\GlobalSearchForm.pas 283 File11.Left=-4 284 File11.Bottom=-5 285 File11.Width=1399 286 File11.Height=629 287 File11.Column=1 288 File11.Line=753 289 File12=..\.\library\SharedMemoryUnit.pas 290 File12.Left=-4 291 File12.Bottom=-5 292 File12.Width=1399 293 File12.Height=629 294 File12.Column=3 295 File12.Line=7 296 File13=..\.\library\Semaphores.pas 297 File13.Left=-4 298 File13.Bottom=-5 299 File13.Width=1399 300 File13.Height=629 301 File13.Column=1 302 File13.Line=1 303 File14=..\.\library\RunProgramUnit.pas 304 File14.Left=-4 305 File14.Bottom=-5 306 File14.Width=1399 307 File14.Height=629 308 File14.Column=1 309 File14.Line=1 310 File15=.\HelpTopic.pas 311 File15.Left=-4 312 File15.Bottom=-5 313 File15.Width=1399 314 File15.Height=629 315 File15.Column=3 316 File15.Line=256 317 File16=..\.\library\AStringUtilityUnit.pas 318 File16.Left=-4 319 File16.Bottom=-5 320 File16.Width=1399 321 File16.Height=629 322 File16.Column=1 323 File16.Line=1 324 File17=.\SearchDirectoriesFormUnit.pas 325 File17.Left=-4 326 File17.Bottom=-5 327 File17.Width=1399 328 File17.Height=629 329 File17.Column=64 330 File17.Line=63 246 File5.Column=37 247 File5.Line=1063 331 248 332 249 [Linker Options] … … 349 266 MainFile0=.\NewView.pas 350 267 MainFile0.Ext=.EXE 351 MainFile0.Checksum=26 368268 MainFile0.Checksum=26112 352 269 MainFile0.Expanded=False 353 270 MainFile0.File0=.\BookmarksFormUnit.pas … … 411 328 MainFile0.Dependency29=..\.\sibyl\spcc\INIFILES.PAS 412 329 MainFile0.Dependency30=..\.\library\ACLUTILITY.PAS 413 MainFile0.Dependency31=..\.\library\ACLSTRINGUTILITY.PAS 414 MainFile0.Dependency32=..\.\library\ACLFILEIOUTILITY.PAS 415 MainFile0.Dependency33=..\.\library\CHARUTILSUNIT.PAS 416 MainFile0.Dependency34=..\.\library\ACLSTRING.PAS 417 MainFile0.Dependency35=..\.\library\SEMAPHORES.PAS 418 MainFile0.Dependency36=..\.\library\SHAREDMEMORYUNIT.PAS 419 MainFile0.Dependency37=..\.\components\COOLBAR2.PAS 420 MainFile0.Dependency38=..\.\components\CUSTOMHEADERCONTROL.PAS 421 MainFile0.Dependency39=..\.\components\MULTICOLUMNLISTBOX.PAS 422 MainFile0.Dependency40=..\.\sibyl\rtl\BSEDEV.PAS 423 MainFile0.Dependency41=..\.\library\DEBUGUNIT.PAS 424 MainFile0.Dependency42=..\.\library\STRINGUTILSUNIT.PAS 425 MainFile0.Dependency43=..\.\library\FILEUTILSUNIT.PAS 426 MainFile0.Dependency44=..\.\components\ACLLANGUAGEUNIT.PAS 427 MainFile0.Dependency45=..\.\components\GENERICTHREAD.PAS 428 MainFile0.Dependency46=.\VERSIONUNIT.PAS 429 MainFile0.Dependency47=.\CMDLINEPARAMETERUNIT.PAS 430 MainFile0.Dependency48=..\.\components\SPLITBAR.PAS 431 MainFile0.Dependency49=..\.\components\CONTROLSCROLLING.PAS 432 MainFile0.Dependency50=..\.\components\OUTLINE2.PAS 433 MainFile0.Dependency51=..\.\components\CANVASFONTMANAGER.PAS 434 MainFile0.Dependency52=..\.\components\RICHTEXTDOCUMENTUNIT.PAS 435 MainFile0.Dependency53=..\.\components\RICHTEXTSTYLEUNIT.PAS 436 MainFile0.Dependency54=..\.\sibyl\spcc\CLIPBRD.PAS 437 MainFile0.Dependency55=..\.\components\RICHTEXTLAYOUTUNIT.PAS 438 MainFile0.Dependency56=..\.\components\CONTROLSUTILITY.PAS 439 MainFile0.Dependency57=..\.\components\RICHTEXTDISPLAYUNIT.PAS 440 MainFile0.Dependency58=..\.\components\RICHTEXTVIEW.PAS 441 MainFile0.Dependency59=..\.\components\CUSTOMLISTBOX.PAS 442 MainFile0.Dependency60=.\IPFFILEFORMATUNIT.PAS 443 MainFile0.Dependency61=.\HELPWINDOWDIMENSIONS.PAS 444 MainFile0.Dependency62=.\NEWVIEWCONSTANTSUNIT.PAS 445 MainFile0.Dependency63=..\.\library\ASTRINGUTILITYUNIT.PAS 446 MainFile0.Dependency64=.\SETTINGSUNIT.PAS 447 MainFile0.Dependency65=.\HELPTOPIC.PAS 448 MainFile0.Dependency66=..\.\components\CUSTOMMEMO.PAS 449 MainFile0.Dependency67=..\.\components\SYSTEMICONUNIT.PAS 450 MainFile0.Dependency68=..\.\components\ACLMESSAGEFORM.PAS 451 MainFile0.Dependency69=..\.\components\ACLDIALOGS.PAS 452 MainFile0.Dependency70=.\HELPBITMAP.PAS 453 MainFile0.Dependency71=.\SEARCHTABLE.PAS 454 MainFile0.Dependency72=.\HELPFILE.PAS 455 MainFile0.Dependency73=.\HELPWINDOWUNIT.PAS 456 MainFile0.Dependency74=.\NAVIGATEPOINTUNIT.PAS 457 MainFile0.Dependency75=.\MISCUNIT.PAS 458 MainFile0.Dependency76=.\HELPMANAGERUNIT.PAS 459 MainFile0.Dependency77=.\TEXTSEARCHQUERY.PAS 460 MainFile0.Dependency78=..\.\components\TABSET2UNIT.PAS 461 MainFile0.Dependency79=..\.\library\RUNPROGRAMUNIT.PAS 462 MainFile0.Dependency80=..\.\components\RICHTEXTPRINTUNIT.PAS 463 MainFile0.Dependency81=.\INFORMATIONFORMUNIT.PAS 464 MainFile0.Dependency82=..\.\components\COLORMAPPING.PAS 465 MainFile0.Dependency83=..\.\components\COLORWHEEL.PAS 466 MainFile0.Dependency84=..\.\components\CUSTOMFONTDIALOG.PAS 467 MainFile0.Dependency85=..\.\components\BITMAPUTILITY.PAS 468 MainFile0.Dependency86=..\.\components\CUSTOMFILECONTROLS.PAS 469 MainFile0.Dependency87=.\FILEDIALOGFORM.PAS 470 MainFile0.Dependency88=.\OPTIONSFORM.PAS 471 MainFile0.Dependency89=.\WEBBROWSERUNIT.PAS 472 MainFile0.Dependency90=.\PRODUCTINFORMATIONFORMUNIT.PAS 473 MainFile0.Dependency91=.\NOTEFORM.PAS 474 MainFile0.Dependency92=.\SEARCHUNIT.PAS 475 MainFile0.Dependency93=.\SEARCHDIRECTORIESFORMUNIT.PAS 476 MainFile0.Dependency94=.\GLOBALSEARCHFORM.PAS 477 MainFile0.Dependency95=.\BOOKMARKSFORMUNIT.PAS 478 MainFile0.Dependency96=.\PRINTDIALOGUNIT.PAS 479 MainFile0.Dependency97=.\GLOBALFILELISTUNIT.PAS 480 MainFile0.Dependency98=.\STARTUPUNIT.PAS 481 MainFile0.Dependency99=.\MAINFORM.PAS 482 MainFile0.Dependency100=.\NewView.scu 330 MainFile0.Dependency31=..\.\library\CHARUTILSUNIT.PAS 331 MainFile0.Dependency32=..\.\library\DEBUGUNIT.PAS 332 MainFile0.Dependency33=..\.\library\STRINGUTILSUNIT.PAS 333 MainFile0.Dependency34=..\.\library\ACLFILEIOUTILITY.PAS 334 MainFile0.Dependency35=..\.\library\ACLSTRING.PAS 335 MainFile0.Dependency36=..\.\library\SEMAPHORES.PAS 336 MainFile0.Dependency37=..\.\library\SHAREDMEMORYUNIT.PAS 337 MainFile0.Dependency38=..\.\sibyl\rtl\BSEDEV.PAS 338 MainFile0.Dependency39=..\.\library\FILEUTILSUNIT.PAS 339 MainFile0.Dependency40=..\.\components\COOLBAR2.PAS 340 MainFile0.Dependency41=..\.\components\CUSTOMHEADERCONTROL.PAS 341 MainFile0.Dependency42=..\.\components\MULTICOLUMNLISTBOX.PAS 342 MainFile0.Dependency43=..\.\components\ACLLANGUAGEUNIT.PAS 343 MainFile0.Dependency44=..\.\components\GENERICTHREAD.PAS 344 MainFile0.Dependency45=.\VERSIONUNIT.PAS 345 MainFile0.Dependency46=.\CMDLINEPARAMETERUNIT.PAS 346 MainFile0.Dependency47=..\.\components\SPLITBAR.PAS 347 MainFile0.Dependency48=..\.\components\CONTROLSCROLLING.PAS 348 MainFile0.Dependency49=..\.\components\OUTLINE2.PAS 349 MainFile0.Dependency50=..\.\components\CANVASFONTMANAGER.PAS 350 MainFile0.Dependency51=..\.\components\RICHTEXTDOCUMENTUNIT.PAS 351 MainFile0.Dependency52=..\.\components\RICHTEXTSTYLEUNIT.PAS 352 MainFile0.Dependency53=..\.\sibyl\spcc\CLIPBRD.PAS 353 MainFile0.Dependency54=..\.\components\RICHTEXTLAYOUTUNIT.PAS 354 MainFile0.Dependency55=..\.\components\CONTROLSUTILITY.PAS 355 MainFile0.Dependency56=..\.\components\RICHTEXTDISPLAYUNIT.PAS 356 MainFile0.Dependency57=..\.\components\RICHTEXTVIEW.PAS 357 MainFile0.Dependency58=..\.\components\CUSTOMLISTBOX.PAS 358 MainFile0.Dependency59=.\IPFFILEFORMATUNIT.PAS 359 MainFile0.Dependency60=.\HELPWINDOWDIMENSIONS.PAS 360 MainFile0.Dependency61=.\NEWVIEWCONSTANTSUNIT.PAS 361 MainFile0.Dependency62=..\.\library\ASTRINGUTILITYUNIT.PAS 362 MainFile0.Dependency63=.\SETTINGSUNIT.PAS 363 MainFile0.Dependency64=.\HELPTOPIC.PAS 364 MainFile0.Dependency65=..\.\components\CUSTOMMEMO.PAS 365 MainFile0.Dependency66=..\.\components\SYSTEMICONUNIT.PAS 366 MainFile0.Dependency67=..\.\components\ACLMESSAGEFORM.PAS 367 MainFile0.Dependency68=..\.\components\ACLDIALOGS.PAS 368 MainFile0.Dependency69=.\HELPBITMAP.PAS 369 MainFile0.Dependency70=.\SEARCHTABLE.PAS 370 MainFile0.Dependency71=.\HELPFILE.PAS 371 MainFile0.Dependency72=.\HELPWINDOWUNIT.PAS 372 MainFile0.Dependency73=.\NAVIGATEPOINTUNIT.PAS 373 MainFile0.Dependency74=.\MISCUNIT.PAS 374 MainFile0.Dependency75=.\HELPMANAGERUNIT.PAS 375 MainFile0.Dependency76=.\TEXTSEARCHQUERY.PAS 376 MainFile0.Dependency77=..\.\components\TABSET2UNIT.PAS 377 MainFile0.Dependency78=..\.\library\RUNPROGRAMUNIT.PAS 378 MainFile0.Dependency79=..\.\components\RICHTEXTPRINTUNIT.PAS 379 MainFile0.Dependency80=.\INFORMATIONFORMUNIT.PAS 380 MainFile0.Dependency81=..\.\components\COLORMAPPING.PAS 381 MainFile0.Dependency82=..\.\components\COLORWHEEL.PAS 382 MainFile0.Dependency83=..\.\components\CUSTOMFONTDIALOG.PAS 383 MainFile0.Dependency84=..\.\components\BITMAPUTILITY.PAS 384 MainFile0.Dependency85=..\.\components\CUSTOMFILECONTROLS.PAS 385 MainFile0.Dependency86=.\FILEDIALOGFORM.PAS 386 MainFile0.Dependency87=.\OPTIONSFORM.PAS 387 MainFile0.Dependency88=.\WEBBROWSERUNIT.PAS 388 MainFile0.Dependency89=.\PRODUCTINFORMATIONFORMUNIT.PAS 389 MainFile0.Dependency90=.\NOTEFORM.PAS 390 MainFile0.Dependency91=.\SEARCHUNIT.PAS 391 MainFile0.Dependency92=.\SEARCHDIRECTORIESFORMUNIT.PAS 392 MainFile0.Dependency93=.\GLOBALSEARCHFORM.PAS 393 MainFile0.Dependency94=.\BOOKMARKSFORMUNIT.PAS 394 MainFile0.Dependency95=.\PRINTDIALOGUNIT.PAS 395 MainFile0.Dependency96=.\GLOBALFILELISTUNIT.PAS 396 MainFile0.Dependency97=.\STARTUPUNIT.PAS 397 MainFile0.Dependency98=.\MAINFORM.PAS 398 MainFile0.Dependency99=.\NewView.scu 483 399 484 400 [Replace History] -
trunk/NewView/NoteForm.pas
r94 r228 54 54 const Apply: boolean ); 55 55 begin 56 LogEvent(LogI18n, 'TNoteForm.OnLanguageEvent apply: "' + BoolToStr(Apply) + '"');56 // LogEvent(LogI18n, 'TNoteForm.OnLanguageEvent apply: "' + BoolToStr(Apply) + '"'); 57 57 Language.LoadComponentLanguage( self, Apply ); 58 58 end; … … 65 65 Procedure TNoteForm.NoteFormOnCreate (Sender: TObject); 66 66 Begin 67 Register ForLanguages( OnLanguageEvent );67 RegisterEventForLanguages( OnLanguageEvent ); 68 68 69 69 Text := TAString.Create; -
trunk/NewView/OptionsForm.pas
r94 r228 198 198 i: longint; 199 199 ColorItemName: string; 200 tmpPrefix : String; 200 201 begin 201 LogEvent(LogI18n, 'TOptionsForm.OnLanguageEvent apply: "' + BoolToStr(Apply) + '"');202 // LogEvent(LogI18n, 'TOptionsForm.OnLanguageEvent apply: "' + BoolToStr(Apply) + '"'); 202 203 Language.LoadComponentLanguage( self, Apply ); 203 204 … … 208 209 end; 209 210 211 tmpPrefix := 'OptionsForm' + LANGUAGE_LABEL_DELIMITER; 212 210 213 for i := 0 to NumColorSettings - 1 do 211 214 begin 212 215 Language.LL( Apply, 213 216 ColorItemName, 214 'ColorItemName' + IntToStr( i ),217 tmpPrefix + 'ColorItemName' + IntToStr( i ), 215 218 DefaultColorItemNames[ i ] ); 216 219 if Apply then … … 221 224 ColorItemsListBox.EndUpdate; 222 225 223 Language.LL( Apply, SelectBitmapTitle, 'SelectBitmapTitle', 'Select Bitmap File' );224 Language.LL( Apply, BitmapFilesDesc, 'BitmapFilesDesc', 'Bitmaps (*.bmp)' );225 Language.LL( Apply, BoldFontSuffix, 'BoldFontSuffix', ' Bold' );226 Language.LL( Apply, ItalicFontSuffix, 'ItalicFontSuffix', ' Italic' );226 Language.LL( Apply, SelectBitmapTitle, tmpPrefix + 'SelectBitmapTitle', 'Select Bitmap File' ); 227 Language.LL( Apply, BitmapFilesDesc, tmpPrefix + 'BitmapFilesDesc', 'Bitmaps (*.bmp)' ); 228 Language.LL( Apply, BoldFontSuffix, tmpPrefix + 'BoldFontSuffix', ' Bold' ); 229 Language.LL( Apply, ItalicFontSuffix, tmpPrefix + 'ItalicFontSuffix', ' Italic' ); 227 230 end; 228 231 … … 358 361 Procedure TOptionsForm.OptionsFormOnCreate (Sender: TObject); 359 362 Begin 360 Register ForLanguages( OnLanguageEvent );363 RegisterEventForLanguages( OnLanguageEvent ); 361 364 362 365 TabbedNoteBook.ShowPageHint := false; -
trunk/NewView/PrintDialogUnit.pas
r94 r228 70 70 Procedure TNewViewPrintDialog.NewViewPrintDialogOnCreate (Sender: TObject); 71 71 Begin 72 Register ForLanguages( OnLanguageEvent );72 RegisterEventForLanguages( OnLanguageEvent ); 73 73 End; 74 74 75 75 Procedure TNewViewPrintDialog.OnLanguageEvent( Language: TLanguageFile; 76 76 const Apply: boolean ); 77 var 78 tmpPrefix : String; 77 79 begin 78 LogEvent(LogI18n, 'TNewViewPrintDialog.OnLanguageEvent apply: "' + BoolToStr(Apply) + '"');80 // LogEvent(LogI18n, 'TNewViewPrintDialog.OnLanguageEvent apply: "' + BoolToStr(Apply) + '"'); 79 81 Language.LoadComponentLanguage( self, Apply ); 80 82 81 Language.LL( Apply, SetupPrinterErrorTitle, 'SetupPrinterErrorTitle', 'Setup Printer' ); 82 Language.LL( Apply, SetupPrinterError, 'SetupPrinterError', 'Error displaying printer options: ' ); 83 tmpPrefix := 'NewViewPrintDialog' + LANGUAGE_LABEL_DELIMITER; 84 85 Language.LL( Apply, SetupPrinterErrorTitle, tmpPrefix + 'SetupPrinterErrorTitle', 'Setup Printer' ); 86 Language.LL( Apply, SetupPrinterError, tmpPrefix + 'SetupPrinterError', 'Error displaying printer options: ' ); 83 87 end; 84 88 -
trunk/NewView/ProductInformationFormUnit.pas
r94 r228 67 67 Procedure TProductInformationForm.OnLanguageEvent( Language: TLanguageFile; 68 68 const Apply: boolean ); 69 var 70 tmpPrefix : String; 69 71 begin 70 LogEvent(LogI18n, 'TProductInformationForm.OnLanguageEvent apply: "' + BoolToStr(Apply) + '"');72 // LogEvent(LogI18n, 'TProductInformationForm.OnLanguageEvent apply: "' + BoolToStr(Apply) + '"'); 71 73 Language.LoadComponentLanguage( self, Apply ); 72 74 73 Language.LL( Apply, VersionMsg, 'VersionMsg', 'Version: ' ); 75 tmpPrefix := 'ProductInformationForm' + LANGUAGE_LABEL_DELIMITER; 76 77 Language.LL( Apply, VersionMsg, tmpPrefix + 'VersionMsg', 'Version: ' ); 74 78 end; 75 79 76 80 Procedure TProductInformationForm.AboutBoxOnCreate (Sender: TObject); 77 81 Begin 78 Register ForLanguages( OnLanguageEvent );82 RegisterEventForLanguages( OnLanguageEvent ); 79 83 80 84 NameAndVersionEdit.Text := 'NewView ' + GetAppVersion; … … 107 111 RegisterClasses ([TProductInformationForm, TButton, 108 112 TEdit, TImage, TLabel, TBevel]); 113 109 114 RegisterUpdateProcForLanguages( EnsureProductInformationFormLoaded ); 110 115 End. -
trunk/NewView/SearchDirectoriesFormUnit.pas
r104 r228 112 112 const Apply: boolean ); 113 113 begin 114 LogEvent(LogI18n, 'TSearchDirectoriesForm.OnLanguageEvent apply: "' + BoolToStr(Apply) + '"');114 // LogEvent(LogI18n, 'TSearchDirectoriesForm.OnLanguageEvent apply: "' + BoolToStr(Apply) + '"'); 115 115 Language.LoadComponentLanguage( self, Apply ); 116 116 end; … … 118 118 Procedure TSearchDirectoriesForm.SearchDirectoriesFormOnCreate (Sender: TObject); 119 119 Begin 120 Register ForLanguages( OnLanguageEvent );120 RegisterEventForLanguages( OnLanguageEvent ); 121 121 ClientWidth := DirectoriesListBox.Left + DirectoriesListBox.Width + DirectoriesListBox.Left; 122 122 -
trunk/NewView/TextSearchQuery.pas
r116 r228 62 62 Procedure OnLanguageEvent( Language: TLanguageFile; 63 63 const Apply: boolean ); 64 begin 65 66 Language.Prefix := 'SearchQuery.'; 67 Language.LL( Apply, QueryErrorMissingWord1, 'QueryErrorMissingWord1', 'No search word given after ' ); 68 Language.LL( Apply, QueryErrorMissingWord2, 'QueryErrorMissingWord2', ' before ' ); 64 var 65 tmpPrefix : String; 66 begin 67 tmpPrefix := 'SearchQuery' + LANGUAGE_LABEL_DELIMITER; 68 Language.LL( Apply, QueryErrorMissingWord1, tmpPrefix + 'QueryErrorMissingWord1', 'No search word given after ' ); 69 Language.LL( Apply, QueryErrorMissingWord2, tmpPrefix + 'QueryErrorMissingWord2', ' before ' ); 69 70 end; 70 71 -
trunk/NewView/VersionUnit.pas
r194 r228 15 15 16 16 const 17 Version = 'V2.20.beta 1'; // $SS_REQUIRE_NEW_VERSION$18 BldLevelVersion = '2.20.beta 1'; // Embedded for IBM BLDLEVEL tool17 Version = 'V2.20.beta2'; // $SS_REQUIRE_NEW_VERSION$ 18 BldLevelVersion = '2.20.beta2'; // Embedded for IBM BLDLEVEL tool 19 19 20 20 // RELEASE PROCESS
Note:
See TracChangeset
for help on using the changeset viewer.