Changeset 175 for smplayer/vendor/current/src/prefadvanced.cpp
- Timestamp:
- May 3, 2016, 2:14:41 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/vendor/current/src/prefadvanced.cpp
r163 r175 1 1 /* smplayer, GUI front-end for mplayer. 2 Copyright (C) 2006-201 4Ricardo Villalba <rvm@users.sourceforge.net>2 Copyright (C) 2006-2016 Ricardo Villalba <rvm@users.sourceforge.net> 3 3 4 4 This program is free software; you can redistribute it and/or modify … … 22 22 #include "preferences.h" 23 23 #include "paths.h" 24 #include "playerid.h" 24 25 #include <QColorDialog> 25 26 … … 51 52 #ifndef LOG_SMPLAYER 52 53 smplayer_log_box->hide(); 54 #endif 55 56 #ifndef MPLAYER_SUPPORT 57 use_playlist_check->hide(); 53 58 #endif 54 59 … … 87 92 monitoraspect_combo->setItemText(0, tr("Auto") ); 88 93 94 mplayer_use_window_check->setText( tr("&Run %1 in its own window").arg(PLAYER_NAME) ); 95 shortnames_check->setText( tr("&Pass short filenames (8+3) to %1").arg(PLAYER_NAME) ); 96 mplayer_crashes_check->setText( tr("R&eport %1 crashes").arg(PLAYER_NAME) ); 97 advanced_tab->setTabText(1, tr("O&ptions for %1").arg(PLAYER_NAME) ); 98 options_info_label->setText( tr("Here you can pass extra options to %1.").arg(PLAYER_NAME) +"<br>"+ 99 tr("Write them separated by spaces.") + "<br>" + tr("Example:") + " -volume 50 -fps 25" ); 100 mplayer_log_box->setTitle(PLAYER_NAME); 101 log_mplayer_check->setText( tr("Log %1 &output").arg(PLAYER_NAME) ); 102 log_mplayer_save_check->setText( tr("A&utosave %1 log to file").arg(PLAYER_NAME) ); 103 104 use_playlist_check->setText( tr("Pa&ss the %1 option to MPlayer (security risk)").arg("-playlist") ); 105 89 106 createHelp(); 90 107 } … … 128 145 129 146 setMplayerCrashes( pref->report_mplayer_crashes ); 147 148 #ifdef MPLAYER_SUPPORT 149 use_playlist_check->setChecked(pref->use_playlist_option); 150 #endif 130 151 } 131 152 … … 198 219 199 220 pref->report_mplayer_crashes = mplayerCrashes(); 221 222 #ifdef MPLAYER_SUPPORT 223 pref->use_playlist_option = use_playlist_check->isChecked(); 224 #endif 200 225 } 201 226 … … 427 452 tr("Select the aspect ratio of your monitor.") ); 428 453 429 setWhatsThis(mplayer_use_window_check, tr("Run MPlayer in its own window"),430 tr("If you check this option, the MPlayervideo window won't be "454 setWhatsThis(mplayer_use_window_check, tr("Run %1 in its own window").arg(PLAYER_NAME), 455 tr("If you check this option, the %1 video window won't be " 431 456 "embedded in SMPlayer's main window but instead it will use its " 432 457 "own window. Note that mouse and keyboard events will be handled " 433 "directly by MPlayer, that means key shortcuts and mouse clicks "434 "probably won't work as expected when the MPlayerwindow has the "435 "focus.") );458 "directly by %1, that means key shortcuts and mouse clicks " 459 "probably won't work as expected when the %1 window has the " 460 "focus.").arg(PLAYER_NAME) ); 436 461 437 462 setWhatsThis(idx_check, tr("Rebuild index if needed"), … … 443 468 444 469 setWhatsThis(lavf_demuxer_check, tr("Use the lavf demuxer by default"), 445 tr("If this option is checked, the lavf demuxer will be used for all formats.") +" "+ 446 tr("Notice: mplayer2 already uses the lavf demuxer by default so " 447 "enabling this option with mplayer2 won't have any effect.")); 470 tr("If this option is checked, the lavf demuxer will be used for all formats.")); 448 471 449 472 #ifdef Q_OS_WIN 450 setWhatsThis(shortnames_check, tr("Pass short filenames (8+3) to MPlayer"), 451 tr("Currently MPlayer can't open filenames which contains characters " 452 "outside the local codepage. Checking this option will make " 453 "SMPlayer to pass to MPlayer the short version of the filenames, " 454 "and thus it will able to open them.") ); 473 setWhatsThis(shortnames_check, tr("Pass short filenames (8+3) to %1").arg(PLAYER_NAME), 474 tr("If this option is checked, SMPlayer will pass to %1 the short version of the filenames.").arg(PLAYER_NAME) ); 455 475 #endif 456 476 … … 463 483 464 484 setWhatsThis(mplayer_crashes_check, 465 tr("Report MPlayer crashes"),485 tr("Report %1 crashes").arg(PLAYER_NAME), 466 486 tr("If this option is checked, a window will appear to inform " 467 "about MPlayer crashes. Otherwise those failures will be " 468 "silently ignored.") ); 487 "about %1 crashes. Otherwise those failures will be " 488 "silently ignored.").arg(PLAYER_NAME) ); 489 490 #ifdef MPLAYER_SUPPORT 491 setWhatsThis(use_playlist_check, tr("Pass the %1 option to MPlayer (security risk)").arg("-playlist"), 492 tr("This option may be needed to play playlist files (m3u, pls...). " 493 "However it can involve a security risk when playing internet sources because " 494 "the way MPlayer parses and uses playlist files is not " 495 "safe against maliciously constructed files.") ); 496 #endif 469 497 470 498 setWhatsThis(correct_pts_combo, tr("Correct pts"), 471 tr("Switches MPlayerto an experimental mode where timestamps for "499 tr("Switches %1 to an experimental mode where timestamps for " 472 500 "video frames are calculated differently and video filters which " 473 501 "add new frames or modify timestamps of existing ones are " … … 476 504 "SSA/ASS library enabled. Without correct pts the subtitle timing " 477 505 "will typically be off by some frames. This option does not work " 478 "correctly with some demuxers and codecs.") );506 "correctly with some demuxers and codecs.").arg(PLAYER_NAME) ); 479 507 480 508 setWhatsThis(actions_to_run_edit, tr("Actions list"), … … 487 515 tr("Example:") +" <i>auto_zoom compact true</i><br>" + 488 516 tr("Limitation: the actions are run only when a file is opened and " 489 "not when the mplayerprocess is restarted (e.g. you select an "490 "audio or video filter).") );517 "not when the %1 process is restarted (e.g. you select an " 518 "audio or video filter).").arg(PLAYER_NAME) ); 491 519 492 520 #if USE_COLORKEY … … 502 530 "Otherwise only the filename will be shown.") ); 503 531 504 addSectionTitle(tr("Options for MPlayer"));532 addSectionTitle(tr("Options for %1").arg(PLAYER_NAME)); 505 533 506 534 setWhatsThis(mplayer_args_edit, tr("Options"), 507 tr("Here you can type options for MPlayer. Write them separated "508 "by spaces."));535 tr("Here you can type options for %1.").arg(PLAYER_NAME) +" "+ 536 tr("Write them separated by spaces.")); 509 537 510 538 setWhatsThis(mplayer_vfilters_edit, tr("Video filters"), 511 tr("Here you can add video filters for MPlayer. Write them separated "512 "by commas. Don't use spaces!"));539 tr("Here you can add video filters for %1.").arg(PLAYER_NAME) +" "+ 540 tr("Write them separated by commas. Don't use spaces!")); 513 541 514 542 setWhatsThis(mplayer_afilters_edit, tr("Audio filters"), 515 tr("Here you can add audio filters for MPlayer. Write them separated "516 "by commas. Don't use spaces!"));543 tr("Here you can add audio filters for %1.").arg(PLAYER_NAME) +" "+ 544 tr("Write them separated by commas. Don't use spaces!")); 517 545 518 546 addSectionTitle(tr("Network")); … … 540 568 541 569 #ifdef LOG_MPLAYER 542 setWhatsThis(log_mplayer_check, tr("Log MPlayer output"),543 tr("If checked, SMPlayer will store the output of MPlayer"544 "(you can see it in <b>Options -> View logs -> MPlayer</b>). "570 setWhatsThis(log_mplayer_check, tr("Log %1 output").arg(PLAYER_NAME), 571 tr("If checked, SMPlayer will store the output of %1 " 572 "(you can see it in <b>Options -> View logs -> %1</b>). " 545 573 "In case of problems this log can contain important information, " 546 "so it's recommended to keep this option checked.") );547 548 setWhatsThis(log_mplayer_save_check, tr("Autosave MPlayer log"),549 tr("If this option is checked, the MPlayerlog will be saved to the "574 "so it's recommended to keep this option checked.").arg(PLAYER_NAME) ); 575 576 setWhatsThis(log_mplayer_save_check, tr("Autosave %1 log").arg(PLAYER_NAME), 577 tr("If this option is checked, the %1 log will be saved to the " 550 578 "specified file every time a new file starts to play. " 551 579 "It's intended for external applications, so they can get " 552 "info about the file you're playing.") );553 554 setWhatsThis(log_mplayer_save_name, tr("Autosave MPlayer log filename"),580 "info about the file you're playing.").arg(PLAYER_NAME) ); 581 582 setWhatsThis(log_mplayer_save_name, tr("Autosave %1 log filename").arg(PLAYER_NAME), 555 583 tr("Enter here the path and filename that will be used to save the " 556 " MPlayer log.") );584 "%1 log.").arg(PLAYER_NAME) ); 557 585 #endif 558 586
Note:
See TracChangeset
for help on using the changeset viewer.