Ignore:
Timestamp:
Apr 30, 2012, 7:09:25 PM (14 years ago)
Author:
Silvan Scherrer
Message:

SMPlayer vendor: 0.8.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • smplayer/vendor/current/src/findsubtitles/findsubtitleswindow.cpp

    r127 r130  
    4040#include "quazip.h"
    4141#include "quazipfile.h"
     42
    4243#include <QTemporaryFile>
    4344#include <QBuffer>
     
    130131
    131132        file_downloader = new FileDownloader(this);
    132         file_downloader->setModal(false);
     133file_downloader->setModal(false);
    133134        connect( file_downloader, SIGNAL(downloadFailed(QString)),
    134135             this, SLOT(showError(QString)), Qt::QueuedConnection );
    135136        connect( file_downloader, SIGNAL(downloadFinished(const QByteArray &)),
    136137             this, SLOT(archiveDownloaded(const QByteArray &)), Qt::QueuedConnection );
     138
     139
    137140#endif
    138141
     
    204207        language_filter->clear();
    205208
    206         QMap<QString,QString> l = Languages::list();
    207         QMapIterator<QString, QString> i(l);
    208         while (i.hasNext()) {
    209                 i.next();
    210                 language_filter->addItem( i.value() + " (" + i.key() + ")", i.key() );
    211         }
     209        QMap<QString,QString> l1 = Languages::most_used_list();
     210        QMapIterator<QString, QString> i1(l1);
     211        while (i1.hasNext()) {
     212                i1.next();
     213                language_filter->addItem( i1.value() + " (" + i1.key() + ")", i1.key() );
     214        }
     215        language_filter->addItem( tr("Portuguese - Brasil") + " (pb)", "pb");
    212216        language_filter->model()->sort(0);
     217
     218
     219
     220
     221
     222
     223
     224
     225
     226
     227
     228
     229
    213230        language_filter->insertItem( 0, tr("All"), "*" );
     231
     232
     233
    214234        //language_filter->setCurrentIndex(language_index);
    215235        language_filter->setCurrentIndex(language_filter->findData(current_language));
     
    546566                        if (ok) extracted_count++;
    547567                }
    548                 status->setText(tr("%1 subtitle(s) extracted","", extracted_count).arg(extracted_count));
     568                status->setText(tr("%extracted_count));
    549569                if (extracted_count > 0) {
    550570                        emit subtitleDownloaded( output_path +"/"+ files_to_extract[0] );
     
    596616
    597617        return true;
     618
     619
     620
     621
     622
     623
     624
     625
     626
     627
     628
     629
     630
    598631}
    599632
Note: See TracChangeset for help on using the changeset viewer.