Changeset 94
- Timestamp:
- Mar 10, 2007, 8:05:21 PM (18 years ago)
- Location:
- trunk/NewView
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NewView/BookmarksFormUnit.pas
r32 r94 67 67 ControlsUtility, 68 68 ACLDialogs, 69 ACLStringUtility; 69 ACLStringUtility, 70 DebugUnit; 70 71 71 72 Procedure TBookmarksForm.BookmarksFormOnSetupShow (Sender: TObject); … … 84 85 const Apply: boolean ); 85 86 begin 87 LogEvent(LogI18n, 'TBookmarksForm.OnLanguageEvent apply: "' + BoolToStr(Apply) + '"'); 86 88 Language.LoadComponentLanguage( self, Apply ); 87 89 -
trunk/NewView/DebugUnit.pas
r82 r94 22 22 LogShutdown, 23 23 LogSettings, 24 LogI18n, 24 25 LogParse, 25 26 LogDisplay, … … 119 120 Begin 120 121 Case aLogAspect of 121 LogStartup : result := 'Startup'; 122 LogShutdown : result := 'Start'; 123 LogSettings : result := 'Settings'; 124 LogParse : result := 'Parse'; 125 LogDisplay : result := 'Display'; 126 LogSearch : result := 'Search'; 127 LogNHM : result := 'NewHelpManager'; 128 LogViewStub : result := 'ViewStub'; 129 LogObjConstDest : result := 'ObjConstDest'; 130 LogDebug : result := 'Debug'; 131 else result := 'Unknown'; 122 LogStartup : result := 'Startup'; 123 LogShutdown : result := 'Start'; 124 LogSettings : result := 'Settings'; 125 LogI18n : result := 'I18n'; 126 LogParse : result := 'Parse'; 127 LogDisplay : result := 'Display'; 128 LogSearch : result := 'Search'; 129 LogNHM : result := 'NewHelpManager'; 130 LogViewStub : result := 'ViewStub'; 131 LogObjConstDest : result := 'ObjConstDest'; 132 LogDebug : result := 'Debug'; 133 else result := 'Unknown'; 132 134 end; 133 135 End; … … 147 149 if tmpAspects[i] = 'LogShutdown' then activeLogAspects := activeLogAspects + [ LogShutdown ]; 148 150 if tmpAspects[i] = 'LogSettings' then activeLogAspects := activeLogAspects + [ LogSettings ]; 151 if tmpAspects[i] = 'LogI18n' then activeLogAspects := activeLogAspects + [ LogI18n ]; 149 152 if tmpAspects[i] = 'LogParse' then activeLogAspects := activeLogAspects + [ LogParse ]; 150 153 if tmpAspects[i] = 'LogDisplay' then activeLogAspects := activeLogAspects + [ LogDisplay ]; -
trunk/NewView/FileDialogForm.pas
r82 r94 130 130 ControlsUtility, 131 131 SettingsUnit, 132 HelpFile; 132 HelpFile, 133 DebugUnit; 133 134 134 135 Imports … … 559 560 const Apply: boolean ); 560 561 begin 562 LogEvent(LogI18n, 'TFileDialogForm.OnLanguageEvent apply: "' + BoolToStr(Apply) + '"'); 561 563 Language.LoadComponentLanguage( self, Apply ); 562 564 -
trunk/NewView/GlobalSearchForm.pas
r87 r94 337 337 End; 338 338 339 Procedure TGlobalSearchForm.OnLanguageEvent( Language: TLanguageFile; 340 const Apply: boolean ); 341 begin 342 Language.LoadComponentLanguage( self, Apply ); 343 344 Language.LL( Apply, SearchCaption, 'SearchCaption', '~Search' ); 345 Language.LL( Apply, StopCaption, 'StopCaption', '~Stop' ); 346 Language.LL( Apply, NoResultsMsg, 'NoResultsMsg', '(No results found)' ); 347 Language.LL( Apply, ScanDirectoriesMsg, 'ScanDirectoriesMsg', 'Finding help files...' ); 348 Language.LL( Apply, SearchingFileMsg, 'SearchingFileMsg', 'Searching ' ); 349 Language.LL( Apply, OfMsg, 'OfMsg', ' of ' ); 350 Language.LL( Apply, DoneMsg, 'DoneMsg', 'Done' ); 351 Language.LL( Apply, SearchErrorTitle, 'SearchErrorTitle', 'Search' ); 352 Language.LL( Apply, SearchError, 'SearchError', 'Error in search syntax: ' ); 353 354 Language.LL( Apply, StandardHelpPathsLocation, 'StandardHelpPathsLocation', 'Standard Help Paths' ); 355 Language.LL( Apply, FixedDrivesLocation, 'FixedDrivesLocation', 'All Hard Drives' ); 356 Language.LL( Apply, SelectedHelpPathsLocation, 'SelectedHelpPathsLocation', 'Selected Help Paths' ); 357 Language.LL( Apply, CustomPathsLocation, 'CustomPathsLocation', 'Directory List' ); 358 359 end; 339 Procedure TGlobalSearchForm.OnLanguageEvent(Language: TLanguageFile; const Apply: boolean ); 340 begin 341 LogEvent(LogI18n, 'TGlobalSearchForm.OnLanguageEvent apply: "' + BoolToStr(Apply) + '"'); 342 343 Language.LoadComponentLanguage(self, Apply); 344 345 Language.LL(Apply, SearchCaption, 'SearchCaption', '~Search'); 346 Language.LL(Apply, StopCaption, 'StopCaption', '~Stop'); 347 Language.LL(Apply, NoResultsMsg, 'NoResultsMsg', '(No results found)'); 348 Language.LL(Apply, ScanDirectoriesMsg, 'ScanDirectoriesMsg', 'Finding help files...'); 349 Language.LL(Apply, SearchingFileMsg, 'SearchingFileMsg', 'Searching '); 350 Language.LL(Apply, OfMsg, 'OfMsg', ' of '); 351 Language.LL(Apply, DoneMsg, 'DoneMsg', 'Done'); 352 Language.LL(Apply, SearchErrorTitle, 'SearchErrorTitle', 'Search'); 353 Language.LL(Apply, SearchError, 'SearchError', 'Error in search syntax: '); 354 355 Language.LL(Apply, StandardHelpPathsLocation, 'StandardHelpPathsLocation', 'Standard Help Paths'); 356 Language.LL(Apply, FixedDrivesLocation, 'FixedDrivesLocation', 'All Hard Drives'); 357 Language.LL(Apply, SelectedHelpPathsLocation, 'SelectedHelpPathsLocation', 'Selected Help Paths'); 358 Language.LL(Apply, CustomPathsLocation, 'CustomPathsLocation', 'Directory List'); 359 end; 360 360 361 361 362 Procedure TGlobalSearchForm.CancelButtonOnClick (Sender: TObject); -
trunk/NewView/InformationFormUnit.pas
r33 r94 35 35 36 36 Uses 37 ControlsUtility; 37 ControlsUtility, 38 DebugUnit, 39 StringUtilsUnit; 38 40 39 41 Procedure TInformationForm.InformationFormOnSetupShow (Sender: TObject); … … 60 62 const Apply: boolean ); 61 63 begin 64 LogEvent(LogI18n, 'TInformationForm.OnLanguageEvent apply: "' + BoolToStr(Apply) + '"'); 62 65 Language.LoadComponentLanguage( self, Apply ); 63 66 end; -
trunk/NewView/NoteForm.pas
r33 r94 42 42 uses 43 43 SysUtils, 44 ControlsUtility; 44 ControlsUtility, 45 DebugUnit, 46 StringUtilsUnit; 45 47 46 48 Procedure TNoteForm.NoteFormOnSetupShow (Sender: TObject); … … 52 54 const Apply: boolean ); 53 55 begin 56 LogEvent(LogI18n, 'TNoteForm.OnLanguageEvent apply: "' + BoolToStr(Apply) + '"'); 54 57 Language.LoadComponentLanguage( self, Apply ); 55 58 end; -
trunk/NewView/OptionsForm.pas
r33 r94 140 140 ACLUtility, 141 141 ControlsUtility, 142 FileDialogForm; 142 FileDialogForm, 143 DebugUnit, 144 StringUtilsUnit; 143 145 144 146 Procedure TOptionsForm.OptionsFormOnSetupShow (Sender: TObject); … … 197 199 ColorItemName: string; 198 200 begin 201 LogEvent(LogI18n, 'TOptionsForm.OnLanguageEvent apply: "' + BoolToStr(Apply) + '"'); 199 202 Language.LoadComponentLanguage( self, Apply ); 200 203 -
trunk/NewView/PrintDialogUnit.pas
r33 r94 54 54 Printers, 55 55 ACLDialogs, 56 ControlsUtility; 56 ControlsUtility, 57 DebugUnit, 58 StringUtilsUnit; 57 59 58 60 Procedure TNewViewPrintDialog.OKButtonOnClick (Sender: TObject); … … 74 76 const Apply: boolean ); 75 77 begin 78 LogEvent(LogI18n, 'TNewViewPrintDialog.OnLanguageEvent apply: "' + BoolToStr(Apply) + '"'); 76 79 Language.LoadComponentLanguage( self, Apply ); 77 80 -
trunk/NewView/ProductInformationFormUnit.pas
r33 r94 46 46 VersionUnit, 47 47 ControlsUtility, 48 WebBrowserUnit; 48 WebBrowserUnit, 49 DebugUnit, 50 StringUtilsUnit; 49 51 50 52 Procedure TProductInformationForm.EmailEditOnClick (Sender: TObject); … … 66 68 const Apply: boolean ); 67 69 begin 70 LogEvent(LogI18n, 'TProductInformationForm.OnLanguageEvent apply: "' + BoolToStr(Apply) + '"'); 68 71 Language.LoadComponentLanguage( self, Apply ); 69 72 -
trunk/NewView/SearchDirectoriesFormUnit.pas
r33 r94 52 52 53 53 Uses 54 ControlsUtility; 54 ControlsUtility, 55 DebugUnit, 56 StringUtilsUnit; 55 57 56 58 Procedure TSearchDirectoriesForm.SearchDirectoriesFormOnSetupShow (Sender: TObject); … … 110 112 const Apply: boolean ); 111 113 begin 114 LogEvent(LogI18n, 'TSearchDirectoriesForm.OnLanguageEvent apply: "' + BoolToStr(Apply) + '"'); 112 115 Language.LoadComponentLanguage( self, Apply ); 113 116 end;
Note:
See TracChangeset
for help on using the changeset viewer.