Ignore:
Timestamp:
Sep 9, 2007, 2:02:29 PM (18 years ago)
Author:
RBRi
Message:

refactoring for language handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NewView/PrintDialogUnit.pas

    r94 r228  
    7070Procedure TNewViewPrintDialog.NewViewPrintDialogOnCreate (Sender: TObject);
    7171Begin
    72   RegisterForLanguages( OnLanguageEvent );
     72  RegisterEventForLanguages( OnLanguageEvent );
    7373End;
    7474
    7575Procedure TNewViewPrintDialog.OnLanguageEvent( Language: TLanguageFile;
    7676                                               const Apply: boolean );
     77var
     78  tmpPrefix : String;
    7779begin
    78   LogEvent(LogI18n, 'TNewViewPrintDialog.OnLanguageEvent apply: "' + BoolToStr(Apply) + '"');
     80  // LogEvent(LogI18n, 'TNewViewPrintDialog.OnLanguageEvent apply: "' + BoolToStr(Apply) + '"');
    7981  Language.LoadComponentLanguage( self, Apply );
    8082
    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: ' );
    8387end;
    8488
Note: See TracChangeset for help on using the changeset viewer.