@@ -358,7 +358,7 @@ void ModFactory::create_valid_message_mod()
358
358
{
359
359
chars_view ok_text = TR (trkeys::accepted, language (this ->ini ));
360
360
chars_view cancel = TR (trkeys::refused, language (this ->ini ));
361
- chars_view caption = " Information " _av ;
361
+ chars_view caption = TR (trkeys::information, language ( this -> ini )) ;
362
362
auto mod_pack = Impl::create_dialog (*this , ok_text, cancel, caption);
363
363
Impl::set_mod (*this , ModuleName::valid, mod_pack, false );
364
364
}
@@ -367,14 +367,14 @@ void ModFactory::create_display_message_mod()
367
367
{
368
368
chars_view ok_text = TR (trkeys::OK, language (this ->ini ));
369
369
chars_view cancel = nullptr ;
370
- chars_view caption = " Information " _av ;
370
+ chars_view caption = TR (trkeys::information, language ( this -> ini )) ;
371
371
auto mod_pack = Impl::create_dialog (*this , ok_text, cancel, caption);
372
372
Impl::set_mod (*this , ModuleName::confirm, mod_pack, false );
373
373
}
374
374
375
375
void ModFactory::create_dialog_challenge_mod ()
376
376
{
377
- chars_view caption = " Challenge " _av ;
377
+ chars_view caption = TR (trkeys::challenge, language ( this -> ini )) ;
378
378
const auto challenge = this ->ini .get <cfg::context::authentication_challenge>()
379
379
? DialogWithChallengeMod::ChallengeOpt::Echo
380
380
: DialogWithChallengeMod::ChallengeOpt::Hide;
@@ -398,18 +398,17 @@ void ModFactory::create_dialog_challenge_mod()
398
398
399
399
void ModFactory::create_display_link_mod ()
400
400
{
401
- chars_view caption = " URL Redirection" _av;
402
- chars_view link_label = " Copy to clipboard: " _av;
403
401
auto new_mod = new WidgetDialogWithCopyableLinkMod (
404
402
this ->ini ,
405
403
this ->graphics ,
406
404
this ->client_info .screen_info .width ,
407
405
this ->client_info .screen_info .height ,
408
406
this ->rail_client_execute .adjust_rect (this ->client_info .get_widget_rect ()),
409
- caption ,
407
+ TR (trkeys::link_caption, language (ini)) ,
410
408
this ->ini .get <cfg::context::message>(),
411
409
this ->ini .get <cfg::context::display_link>(),
412
- link_label,
410
+ TR (trkeys::link_label, language (ini)),
411
+ TR (trkeys::link_copied, language (ini)),
413
412
this ->rail_client_execute ,
414
413
this ->glyphs ,
415
414
this ->theme ,
0 commit comments