Changeset 226 for trunk/Components/ACLDialogs.pas
- Timestamp:
- Sep 9, 2007, 1:58:38 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Components/ACLDialogs.pas
r210 r226 303 303 CancelButtonCaption: string; 304 304 305 Procedure OnLanguageEvent( Language: TLanguageFile; 306 const Apply: boolean ); 305 Procedure OnLanguageEvent(Language: TLanguageFile; const Apply: boolean); 306 var 307 tmpPrefix : String; 307 308 begin 308 if Language <> nil then 309 Language.Prefix := 'TextInputForm.'; 310 311 LoadString( Language, Apply, OKButtonCaption, 'OKButtonCaption', '~OK' ); 312 LoadString( Language, Apply, CancelButtonCaption, 'CancelButtonCaption', '~Cancel' ); 309 tmpPrefix := ''; 310 if Language = nil then 311 begin 312 OKButtonCaption := '~OK'; 313 CancelButtonCaption :='~Cancel'; 314 end 315 else 316 begin 317 tmpPrefix := 'TextInputForm' + LANGUAGE_LABEL_DELIMITER; // use messageform captions 318 Language.LL(Apply, OKButtonCaption, tmpPrefix + 'OKButtonCaption', '~OK'); 319 Language.LL(Apply, CancelButtonCaption, tmpPrefix + 'CancelButtonCaption', '~Cancel'); 320 end; 313 321 end; 314 322
Note:
See TracChangeset
for help on using the changeset viewer.