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/TextSearchQuery.pas

    r116 r228  
    6262Procedure OnLanguageEvent( Language: TLanguageFile;
    6363                           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 ' );
     64var
     65  tmpPrefix : String;
     66begin
     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 ' );
    6970end;
    7071
Note: See TracChangeset for help on using the changeset viewer.