Ignore:
Timestamp:
May 3, 2016, 2:14:41 PM (9 years ago)
Author:
Silvan Scherrer
Message:

smplayer: update vendor to version 16.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • smplayer/vendor/current/src/prefadvanced.cpp

    r163 r175  
    11/*  smplayer, GUI front-end for mplayer.
    2     Copyright (C) 2006-2014 Ricardo Villalba <rvm@users.sourceforge.net>
     2    Copyright (C) 2006-2016 Ricardo Villalba <rvm@users.sourceforge.net>
    33
    44    This program is free software; you can redistribute it and/or modify
     
    2222#include "preferences.h"
    2323#include "paths.h"
     24#include "playerid.h"
    2425#include <QColorDialog>
    2526
     
    5152#ifndef LOG_SMPLAYER
    5253        smplayer_log_box->hide();
     54#endif
     55
     56#ifndef MPLAYER_SUPPORT
     57        use_playlist_check->hide();
    5358#endif
    5459
     
    8792        monitoraspect_combo->setItemText(0, tr("Auto") );
    8893
     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
    89106        createHelp();
    90107}
     
    128145
    129146        setMplayerCrashes( pref->report_mplayer_crashes );
     147
     148#ifdef MPLAYER_SUPPORT
     149        use_playlist_check->setChecked(pref->use_playlist_option);
     150#endif
    130151}
    131152
     
    198219
    199220        pref->report_mplayer_crashes = mplayerCrashes();
     221
     222#ifdef MPLAYER_SUPPORT
     223        pref->use_playlist_option = use_playlist_check->isChecked();
     224#endif
    200225}
    201226
     
    427452        tr("Select the aspect ratio of your monitor.") );
    428453
    429         setWhatsThis(mplayer_use_window_check, tr("Run MPlayer in its own window"),
    430         tr("If you check this option, the MPlayer video 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 "
    431456           "embedded in SMPlayer's main window but instead it will use its "
    432457           "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 MPlayer window 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) );
    436461
    437462        setWhatsThis(idx_check, tr("Rebuild index if needed"),
     
    443468
    444469        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."));
    448471
    449472#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) );
    455475#endif
    456476
     
    463483
    464484        setWhatsThis(mplayer_crashes_check,
    465                 tr("Report MPlayer crashes"),
     485                tr("Report %1 crashes").arg(PLAYER_NAME),
    466486                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
    469497
    470498        setWhatsThis(correct_pts_combo, tr("Correct pts"),
    471                 tr("Switches MPlayer to an experimental mode where timestamps for "
     499                tr("Switches %1 to an experimental mode where timestamps for "
    472500           "video frames are calculated differently and video filters which "
    473501           "add new frames or modify timestamps of existing ones are "
     
    476504           "SSA/ASS library enabled. Without correct pts the subtitle timing "
    477505           "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) );
    479507
    480508        setWhatsThis(actions_to_run_edit, tr("Actions list"),
     
    487515                tr("Example:") +" <i>auto_zoom compact true</i><br>" +
    488516                tr("Limitation: the actions are run only when a file is opened and "
    489            "not when the mplayer process 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) );
    491519
    492520#if USE_COLORKEY
     
    502530           "Otherwise only the filename will be shown.") );
    503531
    504         addSectionTitle(tr("Options for MPlayer"));
     532        addSectionTitle(tr("Options for %1").arg(PLAYER_NAME));
    505533
    506534        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."));
    509537
    510538        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!"));
    513541
    514542        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!"));
    517545
    518546        addSectionTitle(tr("Network"));
     
    540568
    541569#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>). "
    545573           "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 MPlayer log 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 "
    550578           "specified file every time a new file starts to play. "
    551579           "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),
    555583                tr("Enter here the path and filename that will be used to save the "
    556            "MPlayer log.") );
     584           "%1 log.").arg(PLAYER_NAME) );
    557585#endif
    558586
Note: See TracChangeset for help on using the changeset viewer.