From e0d5f8b861f9591cf4010dbd1e1c6c0a9de4fcf5 Mon Sep 17 00:00:00 2001 From: Mike Gelfand Date: Wed, 31 Dec 2014 21:00:34 +0000 Subject: [PATCH] Add new TrPathButton class (Qt client) Make use of new button class in torrent options dialog. Rework Utils::removeTrailingDirSeparator to return correct value for "/". --- qt/CMakeLists.txt | 2 + qt/options.cc | 106 ++++++--------------- qt/options.h | 9 +- qt/options.ui | 9 +- qt/path-button.cc | 128 ++++++++++++++++++++++++++ qt/path-button.h | 56 +++++++++++ qt/qtr.pro | 1 + qt/translations/transmission_en.ts | 82 ++++++++++------- qt/translations/transmission_es.ts | 78 ++++++++++------ qt/translations/transmission_eu.ts | 82 ++++++++++------- qt/translations/transmission_fr.ts | 82 ++++++++++------- qt/translations/transmission_hu.ts | 70 ++++++++------ qt/translations/transmission_kk.ts | 82 ++++++++++------- qt/translations/transmission_lt.ts | 104 ++++++++++++--------- qt/translations/transmission_pt_BR.ts | 82 ++++++++++------- qt/translations/transmission_ru.ts | 78 ++++++++++------ qt/translations/transmission_uk.ts | 82 ++++++++++------- qt/utils.cc | 5 +- 18 files changed, 729 insertions(+), 409 deletions(-) create mode 100644 qt/path-button.cc create mode 100644 qt/path-button.h diff --git a/qt/CMakeLists.txt b/qt/CMakeLists.txt index 8f816acea..50a427fd7 100644 --- a/qt/CMakeLists.txt +++ b/qt/CMakeLists.txt @@ -41,6 +41,7 @@ set(${PROJECT_NAME}_SOURCES mainwin.cc make-dialog.cc options.cc + path-button.cc prefs-dialog.cc prefs.cc relocate.cc @@ -79,6 +80,7 @@ set(${PROJECT_NAME}_HEADERS mainwin.h make-dialog.h options.h + path-button.h prefs-dialog.h prefs.h relocate.h diff --git a/qt/options.cc b/qt/options.cc index 2809f1890..18c8d8c0c 100644 --- a/qt/options.cc +++ b/qt/options.cc @@ -50,20 +50,23 @@ OptionsDialog::OptionsDialog (Session& session, const Prefs& prefs, const AddDat myEditTimer.setInterval (2000); myEditTimer.setSingleShot (true); - connect (&myEditTimer, SIGNAL (timeout ()), this, SLOT (onDestinationEdited ())); + connect (&myEditTimer, SIGNAL (timeout ()), this, SLOT (onDestinationChanged ())); if (myAdd.type == AddData::FILENAME) { ui.sourceStack->setCurrentWidget (ui.sourceButton); - onSourceSelected (myAdd.filename); - connect (ui.sourceButton, SIGNAL (clicked ()), this, SLOT (onSourceClicked ())); + ui.sourceButton->setMode (TrPathButton::FileMode); + ui.sourceButton->setTitle (tr ("Open Torrent")); + ui.sourceButton->setNameFilter (tr ("Torrent Files (*.torrent);;All Files (*.*)")); + ui.sourceButton->setPath (myAdd.filename); + connect (ui.sourceButton, SIGNAL (pathChanged (QString)), this, SLOT (onSourceChanged ())); } else { ui.sourceStack->setCurrentWidget (ui.sourceEdit); ui.sourceEdit->setText (myAdd.readableName ()); ui.sourceEdit->selectAll (); - connect (ui.sourceEdit, SIGNAL (editingFinished ()), this, SLOT (onSourceEdited ())); + connect (ui.sourceEdit, SIGNAL (editingFinished ()), this, SLOT (onSourceChanged ())); } ui.sourceStack->setFixedHeight (ui.sourceStack->currentWidget ()->sizeHint ().height ()); @@ -73,14 +76,18 @@ OptionsDialog::OptionsDialog (Session& session, const Prefs& prefs, const AddDat const int width = fontMetrics.size (0, QString::fromUtf8 ("This is a pretty long torrent filename indeed.torrent")).width (); ui.sourceStack->setMinimumWidth (width); - const QString downloadDir (prefs.getString (Prefs::DOWNLOAD_DIR)); + const QString downloadDir (Utils::removeTrailingDirSeparator (prefs.getString (Prefs::DOWNLOAD_DIR))); ui.freeSpaceLabel->setSession (mySession); + ui.freeSpaceLabel->setPath (downloadDir); if (session.isLocal ()) { ui.destinationStack->setCurrentWidget (ui.destinationButton); - onDestinationSelected (downloadDir); - connect (ui.destinationButton, SIGNAL (clicked ()), this, SLOT (onDestinationClicked ())); + ui.destinationButton->setMode (TrPathButton::DirectoryMode); + ui.destinationButton->setTitle (tr ("Select Destination")); + ui.destinationButton->setPath (downloadDir); + myLocalDestination = downloadDir; + connect (ui.destinationButton, SIGNAL (pathChanged (QString)), this, SLOT (onDestinationChanged ())); } else { @@ -88,7 +95,7 @@ OptionsDialog::OptionsDialog (Session& session, const Prefs& prefs, const AddDat ui.destinationEdit->setText (downloadDir); ui.freeSpaceLabel->setPath (downloadDir); connect (ui.destinationEdit, SIGNAL (textEdited (QString)), &myEditTimer, SLOT (start ())); - connect (ui.destinationEdit, SIGNAL (editingFinished ()), this, SLOT (onDestinationEdited ())); + connect (ui.destinationEdit, SIGNAL (editingFinished ()), this, SLOT (onDestinationChanged ())); } ui.destinationStack->setFixedHeight (ui.destinationStack->currentWidget ()->sizeHint ().height ()); @@ -287,81 +294,28 @@ OptionsDialog::onAccepted () } void -OptionsDialog::onSourceClicked () +OptionsDialog::onSourceChanged () { - if (myAdd.type == AddData::FILENAME) - { - QFileDialog * d = new QFileDialog (this, - tr ("Open Torrent"), - QFileInfo (myAdd.filename).absolutePath (), - tr ("Torrent Files (*.torrent);;All Files (*.*)")); - d->setFileMode (QFileDialog::ExistingFile); - d->setAttribute (Qt::WA_DeleteOnClose); - connect (d, SIGNAL (fileSelected (QString)), this, SLOT (onSourceSelected (QString))); - d->show (); - } -} - -void -OptionsDialog::onSourceSelected (const QString& path) -{ - if (path.isEmpty ()) - return; - - myAdd.set (path); - - const QFileInfo pathInfo (path); - - const int iconSize (style ()->pixelMetric (QStyle::PM_SmallIconSize)); - const QFileIconProvider iconProvider; - - ui.sourceButton->setIconSize (QSize (iconSize, iconSize)); - ui.sourceButton->setIcon (iconProvider.icon (path)); - ui.sourceButton->setText (pathInfo.fileName ().isEmpty () ? path : pathInfo.fileName ()); - ui.sourceButton->setToolTip (path); + if (ui.sourceStack->currentWidget () == ui.sourceButton) + myAdd.set (ui.sourceButton->path ()); + else + myAdd.set (ui.sourceEdit->text ()); reload (); } void -OptionsDialog::onSourceEdited () +OptionsDialog::onDestinationChanged () { - myAdd.set (ui.sourceEdit->text ()); -} - -void -OptionsDialog::onDestinationClicked () -{ - QFileDialog * d = new QFileDialog (this, tr ("Select Destination"), myLocalDestination.absolutePath ()); - d->setFileMode (QFileDialog::Directory); - d->setAttribute (Qt::WA_DeleteOnClose); - connect (d, SIGNAL (fileSelected (QString)), this, SLOT (onDestinationSelected (QString))); - d->show (); -} - -void -OptionsDialog::onDestinationSelected (const QString& path) -{ - if (path.isEmpty ()) - return; - - myLocalDestination.setPath (Utils::removeTrailingDirSeparator (path)); - - const int iconSize (style ()->pixelMetric (QStyle::PM_SmallIconSize)); - const QFileIconProvider iconProvider; - - ui.destinationButton->setIconSize (QSize (iconSize, iconSize)); - ui.destinationButton->setIcon (iconProvider.icon (path)); - ui.destinationButton->setText (myLocalDestination.dirName ().isEmpty () ? path : myLocalDestination.dirName ()); - ui.destinationButton->setToolTip (path); - - ui.freeSpaceLabel->setPath (path); -} - -void -OptionsDialog::onDestinationEdited () -{ - ui.freeSpaceLabel->setPath (ui.destinationEdit->text ()); + if (ui.destinationStack->currentWidget () == ui.destinationButton) + { + myLocalDestination = ui.destinationButton->path (); + ui.freeSpaceLabel->setPath (myLocalDestination.absolutePath ()); + } + else + { + ui.freeSpaceLabel->setPath (ui.destinationEdit->text ()); + } } /*** diff --git a/qt/options.h b/qt/options.h index 0f613f30d..9fcf44ceb 100644 --- a/qt/options.h +++ b/qt/options.h @@ -53,13 +53,8 @@ class OptionsDialog: public QDialog void onVerify (); void onTimeout (); - void onSourceClicked (); - void onSourceSelected (const QString&); - void onSourceEdited (); - - void onDestinationClicked (); - void onDestinationSelected (const QString&); - void onDestinationEdited (); + void onSourceChanged (); + void onDestinationChanged (); private: Session& mySession; diff --git a/qt/options.ui b/qt/options.ui index 35fa12d22..4f2d06105 100644 --- a/qt/options.ui +++ b/qt/options.ui @@ -29,7 +29,7 @@ 0 - + Qt::ToolButtonTextBesideIcon @@ -55,7 +55,7 @@ 0 - + Qt::ToolButtonTextBesideIcon @@ -126,6 +126,11 @@ QLabel
freespace-label.h
+ + TrPathButton + QToolButton +
path-button.h
+
diff --git a/qt/path-button.cc b/qt/path-button.cc new file mode 100644 index 000000000..ea37f7bea --- /dev/null +++ b/qt/path-button.cc @@ -0,0 +1,128 @@ +/* + * This file Copyright (C) 2014 Mnemosyne LLC + * + * It may be used under the GNU GPL versions 2 or 3 + * or any future license endorsed by Mnemosyne LLC. + * + * $Id$ + */ + +#include +#include +#include +#include + +#include "path-button.h" +#include "utils.h" + +TrPathButton::TrPathButton (QWidget * parent): + QToolButton (parent), + myMode (DirectoryMode), + myTitle (), + myNameFilter (), + myPath () +{ + updateAppearance (); + + connect (this, SIGNAL (clicked ()), this, SLOT (onClicked ())); +} + +void +TrPathButton::setMode (Mode mode) +{ + if (myMode == mode) + return; + + myMode = mode; + + updateAppearance (); +} + +void +TrPathButton::setTitle (const QString& title) +{ + myTitle = title; +} + +void +TrPathButton::setNameFilter (const QString& nameFilter) +{ + myNameFilter = nameFilter; +} + +void +TrPathButton::setPath (const QString& path) +{ + if (myPath == path) + return; + + myPath = Utils::removeTrailingDirSeparator (path); + + updateAppearance (); + + emit pathChanged (myPath); +} + +const QString& +TrPathButton::path () const +{ + return myPath; +} + +void +TrPathButton::onClicked () +{ + QFileDialog * dialog = new QFileDialog (window (), effectiveTitle ()); + dialog->setFileMode (isDirMode () ? QFileDialog::Directory : QFileDialog::ExistingFile); + if (isDirMode ()) + dialog->setOption (QFileDialog::ShowDirsOnly); + dialog->setNameFilter (myNameFilter); + dialog->selectFile (myPath); + + connect (dialog, SIGNAL (fileSelected (QString)), this, SLOT (onFileSelected (QString))); + + dialog->setAttribute (Qt::WA_DeleteOnClose); + dialog->open (); +} + +void +TrPathButton::onFileSelected (const QString& path) +{ + if (!path.isEmpty ()) + setPath (path); +} + +void +TrPathButton::updateAppearance () +{ + const QFileInfo pathInfo (myPath); + + const int iconSize (style ()->pixelMetric (QStyle::PM_SmallIconSize)); + const QFileIconProvider iconProvider; + + QIcon icon; + if (!myPath.isEmpty () && pathInfo.exists ()) + icon = iconProvider.icon (myPath); + if (icon.isNull ()) + icon = iconProvider.icon (isDirMode () ? QFileIconProvider::Folder : QFileIconProvider::File); + + setIconSize (QSize (iconSize, iconSize)); + setIcon (icon); + setText (myPath.isEmpty () ? tr ("(None)") : (pathInfo.fileName ().isEmpty () ? myPath : pathInfo.fileName ())); + setToolTip (myPath == text () ? QString () : myPath); +} + +bool +TrPathButton::isDirMode () const +{ + return myMode == DirectoryMode; +} + +QString +TrPathButton::effectiveTitle () const +{ + if (!myTitle.isEmpty ()) + return myTitle; + + return isDirMode () ? tr ("Select Folder") : tr ("Select File"); +} diff --git a/qt/path-button.h b/qt/path-button.h new file mode 100644 index 000000000..6b420d63f --- /dev/null +++ b/qt/path-button.h @@ -0,0 +1,56 @@ +/* + * This file Copyright (C) 2014 Mnemosyne LLC + * + * It may be used under the GNU GPL versions 2 or 3 + * or any future license endorsed by Mnemosyne LLC. + * + * $Id$ + */ + +#ifndef QTR_PATH_BUTTON_H +#define QTR_PATH_BUTTON_H + +#include + +class TrPathButton: public QToolButton +{ + Q_OBJECT + + public: + enum Mode + { + DirectoryMode, + FileMode + }; + + public: + TrPathButton (QWidget * parent = nullptr); + + void setMode (Mode mode); + void setTitle (const QString& title); + void setNameFilter (const QString& nameFilter); + + void setPath (const QString& path); + const QString& path () const; + + signals: + void pathChanged (const QString& path); + + private slots: + void onClicked (); + void onFileSelected (const QString& path); + + private: + void updateAppearance (); + + bool isDirMode () const; + QString effectiveTitle () const; + + private: + Mode myMode; + QString myTitle; + QString myNameFilter; + QString myPath; +}; + +#endif // QTR_PATH_BUTTON_H diff --git a/qt/qtr.pro b/qt/qtr.pro index 3846e0e09..4ff70a0ad 100644 --- a/qt/qtr.pro +++ b/qt/qtr.pro @@ -70,6 +70,7 @@ SOURCES += about.cc \ mainwin.cc \ make-dialog.cc \ options.cc \ + path-button.cc \ prefs.cc \ prefs-dialog.cc \ relocate.cc \ diff --git a/qt/translations/transmission_en.ts b/qt/translations/transmission_en.ts index c25f845b9..87ce56a4c 100644 --- a/qt/translations/transmission_en.ts +++ b/qt/translations/transmission_en.ts @@ -524,7 +524,7 @@ FileAdded - + Add Torrent @@ -565,7 +565,7 @@ FileTreeModel - + File @@ -781,12 +781,12 @@ FreespaceLabel - + <i>Calculating Free Space...</i> - + %1 free @@ -1424,12 +1424,12 @@ To add another primary URL, add it after a blank line. OptionsDialog - + Open Torrent - + Open Torrent from File @@ -1439,17 +1439,17 @@ To add another primary URL, add it after a blank line. - + &Source: - + &Destination folder: - + High @@ -1464,32 +1464,32 @@ To add another primary URL, add it after a blank line. - + &Priority: - + S&tart when added - + &Verify Local Data - + Mo&ve .torrent file to the trash - + Torrent Files (*.torrent);;All Files (*.*) - + Select Destination @@ -1608,12 +1608,12 @@ To add another primary URL, add it after a blank line. - + Status unknown - + &Port for incoming connections: @@ -1666,7 +1666,7 @@ To add another primary URL, add it after a blank line. - + Download Queue @@ -1704,7 +1704,7 @@ To add another primary URL, add it after a blank line. - + Pick a &random port every time Transmission is started @@ -1762,23 +1762,23 @@ To add another primary URL, add it after a blank line. - + Privacy - + &to - + Desktop - + Show Transmission icon in the &notification area @@ -1943,7 +1943,7 @@ To add another primary URL, add it after a blank line. - + Downloading @@ -1958,17 +1958,17 @@ To add another primary URL, add it after a blank line. - + Save to &Location: - + Call scrip&t when torrent is completed: - + Stop seeding at &ratio: @@ -1978,7 +1978,7 @@ To add another primary URL, add it after a blank line. - + Transmission Preferences @@ -2009,7 +2009,7 @@ To add another primary URL, add it after a blank line. RelocateDialog - + Select Location @@ -2029,7 +2029,7 @@ To add another primary URL, add it after a blank line. - + &Move from the current folder @@ -2042,7 +2042,7 @@ To add another primary URL, add it after a blank line. Session - + Error Renaming Path @@ -2052,7 +2052,7 @@ To add another primary URL, add it after a blank line. - + Add Torrent @@ -2521,6 +2521,24 @@ To add another primary URL, add it after a blank line. + + TrPathButton + + + (None) + + + + + Select Folder + + + + + Select File + + + TrackerDelegate diff --git a/qt/translations/transmission_es.ts b/qt/translations/transmission_es.ts index e048cbaf7..2f8395bd1 100644 --- a/qt/translations/transmission_es.ts +++ b/qt/translations/transmission_es.ts @@ -526,7 +526,7 @@ FileAdded - + Add Torrent Agregar torrent @@ -567,7 +567,7 @@ FileTreeModel - + File Archivo @@ -783,12 +783,12 @@ FreespaceLabel - + <i>Calculating Free Space...</i> - + %1 free @@ -1426,12 +1426,12 @@ Para agregar otro URL primario, agrueguelo después de una línea en blanco. OptionsDialog - + Open Torrent Abrir Torrent - + Open Torrent from File @@ -1441,17 +1441,17 @@ Para agregar otro URL primario, agrueguelo después de una línea en blanco. - + &Source: - + &Destination folder: Folder de &destino: - + High Alta @@ -1466,32 +1466,32 @@ Para agregar otro URL primario, agrueguelo después de una línea en blanco.Baja - + &Priority: - + S&tart when added - + &Verify Local Data &Verificar datos locales - + Mo&ve .torrent file to the trash M&over archivo .torrent al basurero - + Torrent Files (*.torrent);;All Files (*.*) Archivos torrent (*.torrent);;Todos los archivos (*.*) - + Select Destination Seleccione destino @@ -1600,12 +1600,12 @@ Para agregar otro URL primario, agrueguelo después de una línea en blanco. - + Desktop Escritorio - + Show Transmission icon in the &notification area Mostrar ícono de Transmission en el área de &notificaciones @@ -1642,12 +1642,12 @@ Para agregar otro URL primario, agrueguelo después de una línea en blanco. - + Status unknown Estado desconocido - + &Port for incoming connections: &Puerto para recibir conexiones: @@ -1828,7 +1828,7 @@ Para agregar otro URL primario, agrueguelo después de una línea en blanco. - + Download Queue @@ -1863,7 +1863,7 @@ Para agregar otro URL primario, agrueguelo después de una línea en blanco. - + Allow encryption Permitir cifrado @@ -1938,17 +1938,17 @@ Para agregar otro URL primario, agrueguelo después de una línea en blanco.Al agregar - + Append ".&part" to incomplete files' names Agregar .&part al nombre de archivos incompletos - + Save to &Location: Guardar en &locación: - + Keep &incomplete files in: Mantener archivos &incompletos en: @@ -1958,7 +1958,7 @@ Para agregar otro URL primario, agrueguelo después de una línea en blanco.Ejecutar scrip&t cuando el torrent esté completo: - + Stop seeding at &ratio: Dejar de compartir llegando a &proporción: @@ -1968,7 +1968,7 @@ Para agregar otro URL primario, agrueguelo después de una línea en blanco.Dejar de compartir si está i&nactivo: - + Incomplete Incompleto @@ -2012,7 +2012,7 @@ Para agregar otro URL primario, agrueguelo después de una línea en blanco. RelocateDialog - + Select Location Seleccione localización @@ -2032,7 +2032,7 @@ Para agregar otro URL primario, agrueguelo después de una línea en blanco.Nueva &localización: - + &Move from the current folder &Mover del directorio actual @@ -2045,7 +2045,7 @@ Para agregar otro URL primario, agrueguelo después de una línea en blanco. Session - + Error Renaming Path @@ -2055,7 +2055,7 @@ Para agregar otro URL primario, agrueguelo después de una línea en blanco. - + Add Torrent Agregar torrent @@ -2527,6 +2527,24 @@ Para agregar otro URL primario, agrueguelo después de una línea en blanco.Algunos de estos torrents no han terminado su descarga. + + TrPathButton + + + (None) + (Ninguno) + + + + Select Folder + Seleccione folder + + + + Select File + Seleccione archivo + + TrackerDelegate diff --git a/qt/translations/transmission_eu.ts b/qt/translations/transmission_eu.ts index 639a70356..31f74794e 100644 --- a/qt/translations/transmission_eu.ts +++ b/qt/translations/transmission_eu.ts @@ -524,7 +524,7 @@ FileAdded - + Add Torrent Gehitu Torrenta @@ -565,7 +565,7 @@ FileTreeModel - + File Agiria @@ -781,12 +781,12 @@ FreespaceLabel - + <i>Calculating Free Space...</i> <i>Toki Askea Kalkulatzen...</i> - + %1 free %1 aske @@ -1424,12 +1424,12 @@ Beste lehen URL bat gehitzeko, gehitu hura lerro huts baten ondoren. OptionsDialog - + Open Torrent Ireki Torrenta - + Open Torrent from File Ireki Torrenta Agiritik @@ -1439,17 +1439,17 @@ Beste lehen URL bat gehitzeko, gehitu hura lerro huts baten ondoren.Ireki Torrenta URL edo Magnet Loturatik - + &Source: &Iturburua: - + &Destination folder: &Helmuga agiritegia: - + High Handia @@ -1464,32 +1464,32 @@ Beste lehen URL bat gehitzeko, gehitu hura lerro huts baten ondoren.Apala - + &Priority: &Lehentasuna: - + S&tart when added H&asi gehitutakoan - + &Verify Local Data &Egiaztatu Tokiko Datuak - + Mo&ve .torrent file to the trash &Mugitu .torrent agiria zakarrontzira - + Torrent Files (*.torrent);;All Files (*.*) Torrent Agiriak (*.torrent);;Agiri Denak (*.*) - + Select Destination Hautatu Helmuga @@ -1638,12 +1638,12 @@ Beste lehen URL bat gehitzeko, gehitu hura lerro huts baten ondoren. - + Status unknown Egoera ezezaguna - + &Port for incoming connections: &Barrurako elkarketentzako ataka: @@ -1706,7 +1706,7 @@ Beste lehen URL bat gehitzeko, gehitu hura lerro huts baten ondoren.&Mugitu .torrent agiriak zakarrontzira - + Download Queue Jeisketa Lerroa @@ -1744,7 +1744,7 @@ Beste lehen URL bat gehitzeko, gehitu hura lerro huts baten ondoren. - + Pick a &random port every time Transmission is started &Hautatu zorizko ataka bat Transmission abiarazten den bakoitzean @@ -1802,23 +1802,23 @@ Beste lehen URL bat gehitzeko, gehitu hura lerro huts baten ondoren.Beharrezkoa enkriptaketa - + Privacy Pribatutasuna - + &to &hona - + Desktop Mahaigaina - + Show Transmission icon in the &notification area Erakutsi &Transmission ikurra jakinarazpen eremuan @@ -1943,7 +1943,7 @@ Beste lehen URL bat gehitzeko, gehitu hura lerro huts baten ondoren.Gehiketa - + Append ".&part" to incomplete files' names &Erantsi ".part" osatugabeko agiri izenei @@ -1953,17 +1953,17 @@ Beste lehen URL bat gehitzeko, gehitu hura lerro huts baten ondoren.&Gorde osatugabeko agiriak hemen: - + Save to &Location: Gorde &Kokaleku honetan: - + Call scrip&t when torrent is completed: &Deitu eskripta torrenta osatutakoan: - + Stop seeding at &ratio: &Gelditu emaritza maila honetan: @@ -1973,7 +1973,7 @@ Beste lehen URL bat gehitzeko, gehitu hura lerro huts baten ondoren.Gelditu emarit&za jardungabe badago: - + Incomplete Osatugabe @@ -2009,7 +2009,7 @@ Beste lehen URL bat gehitzeko, gehitu hura lerro huts baten ondoren. RelocateDialog - + Select Location Hautatu Kokalekua @@ -2029,7 +2029,7 @@ Beste lehen URL bat gehitzeko, gehitu hura lerro huts baten ondoren.&Kokaleku berria: - + &Move from the current folder &Mugitu oraingo agiritegitik @@ -2042,7 +2042,7 @@ Beste lehen URL bat gehitzeko, gehitu hura lerro huts baten ondoren. Session - + Error Renaming Path Akatsa Helburua Berrizendatzerakoan @@ -2052,7 +2052,7 @@ Beste lehen URL bat gehitzeko, gehitu hura lerro huts baten ondoren.<p><b>Ezinezkoa berreizendatzea "%1" -> "%2": %3.</b></p> <p>Mesedez zuzendu akatsak eta saiatu berriro.</p> - + Add Torrent Gehitu Torrenta @@ -2523,6 +2523,24 @@ Beste lehen URL bat gehitzeko, gehitu hura lerro huts baten ondoren.Lerroa + + TrPathButton + + + (None) + (Ezer ez) + + + + Select Folder + Hautatu Agiritegia + + + + Select File + Hautatu Agiria + + TrackerDelegate diff --git a/qt/translations/transmission_fr.ts b/qt/translations/transmission_fr.ts index e3ba6bed1..f7fab0f69 100644 --- a/qt/translations/transmission_fr.ts +++ b/qt/translations/transmission_fr.ts @@ -524,7 +524,7 @@ FileAdded - + Add Torrent Ajouter un torrent @@ -565,7 +565,7 @@ FileTreeModel - + File Fichiers @@ -781,12 +781,12 @@ FreespaceLabel - + <i>Calculating Free Space...</i> <i>Calcul de l'espace libre...</i> - + %1 free %1 libre @@ -1424,12 +1424,12 @@ Pour ajouter une autre URL primaire, placez-la après une ligne vide. OptionsDialog - + Open Torrent Ouvrir un torrent - + Open Torrent from File Ouvrir un torrent à partir d'un fichier @@ -1439,17 +1439,17 @@ Pour ajouter une autre URL primaire, placez-la après une ligne vide.Ouvrir un torrent à partir d'une URL ou d'un lien Magnet - + &Source: &Source: - + &Destination folder: Dossier de &destination: - + High Haute @@ -1464,32 +1464,32 @@ Pour ajouter une autre URL primaire, placez-la après une ligne vide.Basse - + &Priority: &Priorité: - + S&tart when added &Commencer à l'ajout - + &Verify Local Data &Vérifier les données locales - + Mo&ve .torrent file to the trash &Déplacer .torrent vers la corbeille - + Torrent Files (*.torrent);;All Files (*.*) Fichers Torrent (*.torrent);;Tous les fichiers (*.*) - + Select Destination Sélectionner la destination @@ -1633,12 +1633,12 @@ Pour ajouter une autre URL primaire, placez-la après une ligne vide. - + Status unknown État inconnu - + &Port for incoming connections: &Port pour les connexions entrantes: @@ -1701,7 +1701,7 @@ Pour ajouter une autre URL primaire, placez-la après une ligne vide.Déplacez le fichier .torrent à la poubelle - + Download Queue File de téléchargement @@ -1739,7 +1739,7 @@ Pour ajouter une autre URL primaire, placez-la après une ligne vide. - + Pick a &random port every time Transmission is started Choisir un port au hasa&rd à chaque lancement de Transmission @@ -1797,23 +1797,23 @@ Pour ajouter une autre URL primaire, placez-la après une ligne vide.Exiger le chiffrement - + Privacy Confidentialité - + &to - + Desktop Bureau - + Show Transmission icon in the &notification area Afficher l'icône de Transmission dans la zone de &notification @@ -1943,7 +1943,7 @@ Pour ajouter une autre URL primaire, placez-la après une ligne vide.Ajout - + Append ".&part" to incomplete files' names &Ajouter ".part" aux fichiers incomplets @@ -1953,17 +1953,17 @@ Pour ajouter une autre URL primaire, placez-la après une ligne vide.Garder les fichiers &incomplets dans: - + Save to &Location: Sauvegarder dans l'emp&lacement: - + Call scrip&t when torrent is completed: Appeler ce scrip&t quand un torrent est terminé: - + Stop seeding at &ratio: Partager jusqu’à un &ratio de: @@ -1973,7 +1973,7 @@ Pour ajouter une autre URL primaire, placez-la après une ligne vide.Arrêter de partager si i&nactif depuis: - + Incomplete Incomplet @@ -2009,7 +2009,7 @@ Pour ajouter une autre URL primaire, placez-la après une ligne vide. RelocateDialog - + Select Location Séléctionner l'emplacement @@ -2029,7 +2029,7 @@ Pour ajouter une autre URL primaire, placez-la après une ligne vide.Nouvel emp&lacement: - + &Move from the current folder &Déplacer depuis le dossier courant @@ -2042,7 +2042,7 @@ Pour ajouter une autre URL primaire, placez-la après une ligne vide. Session - + Error Renaming Path Can't find the actual meaning in english, but the french translation doesn't mean anything Renommer le fichier d'erreur @@ -2053,7 +2053,7 @@ Pour ajouter une autre URL primaire, placez-la après une ligne vide.<p><b>Impossible de renommer "%1" en "%2": %3.</b></p> <p>Corrigez les erreurs et essayez à nouveau.</p> - + Add Torrent Ajouter un torrent @@ -2525,6 +2525,24 @@ Pour ajouter une autre URL primaire, placez-la après une ligne vide.File d'attente + + TrPathButton + + + (None) + (Aucun) + + + + Select Folder + Sélectionner le dossier + + + + Select File + Sélectionner le fichier + + TrackerDelegate diff --git a/qt/translations/transmission_hu.ts b/qt/translations/transmission_hu.ts index a4835964a..75c34d9f8 100644 --- a/qt/translations/transmission_hu.ts +++ b/qt/translations/transmission_hu.ts @@ -521,7 +521,7 @@ FileAdded - + Add Torrent Torrent hozzáadása @@ -562,7 +562,7 @@ FileTreeModel - + File Fájl @@ -773,12 +773,12 @@ FreespaceLabel - + <i>Calculating Free Space...</i> - + %1 free @@ -1414,12 +1414,12 @@ Másik elsődleges URL-t új sorba írva adhatsz hozzá. OptionsDialog - + Open Torrent Torrent megnyitása - + Open Torrent from File @@ -1429,17 +1429,17 @@ Másik elsődleges URL-t új sorba írva adhatsz hozzá. - + &Source: - + &Destination folder: &Célmappa: - + High Magas @@ -1454,32 +1454,32 @@ Másik elsődleges URL-t új sorba írva adhatsz hozzá. Alacsony - + &Priority: - + S&tart when added - + &Verify Local Data Hely adat &ellenőrzése - + Mo&ve .torrent file to the trash Torrent fájl &lomtárba helyezése - + Torrent Files (*.torrent);;All Files (*.*) Torrent fájlok (*.torrent);;Minden fájl (*.*) - + Select Destination Célmappa kiválasztása @@ -1593,12 +1593,12 @@ Másik elsődleges URL-t új sorba írva adhatsz hozzá. - + Desktop Asztal - + Show Transmission icon in the &notification area Ikon mutatása a &tálcán @@ -1629,12 +1629,12 @@ Másik elsődleges URL-t új sorba írva adhatsz hozzá. - + Status unknown Státusz nem ismert - + &Port for incoming connections: &Bejövő kapcsolatok portja: @@ -1813,7 +1813,7 @@ Másik elsődleges URL-t új sorba írva adhatsz hozzá. - + Download Queue @@ -1848,7 +1848,7 @@ Másik elsődleges URL-t új sorba írva adhatsz hozzá. - + Allow encryption Titkosítás engedélyezése @@ -1938,7 +1938,7 @@ Másik elsődleges URL-t új sorba írva adhatsz hozzá. Mentés &ide: - + Incomplete Félkész @@ -1996,7 +1996,7 @@ Másik elsődleges URL-t új sorba írva adhatsz hozzá. RelocateDialog - + Select Location Válaszd ki a mappát @@ -2016,7 +2016,7 @@ Másik elsődleges URL-t új sorba írva adhatsz hozzá. Új &hely: - + &Move from the current folder Áthelyezés a &jelenlegi mappából @@ -2029,7 +2029,7 @@ Másik elsődleges URL-t új sorba írva adhatsz hozzá. Session - + Error Renaming Path @@ -2039,7 +2039,7 @@ Másik elsődleges URL-t új sorba írva adhatsz hozzá. - + Add Torrent Torrent hozzáadása @@ -2503,6 +2503,24 @@ Másik elsődleges URL-t új sorba írva adhatsz hozzá. Sor + + TrPathButton + + + (None) + (Nincs) + + + + Select Folder + Mapp kiválasztása + + + + Select File + Fájl kiválasztása + + TrackerDelegate diff --git a/qt/translations/transmission_kk.ts b/qt/translations/transmission_kk.ts index 5d3d9bcec..8ee9a9f86 100644 --- a/qt/translations/transmission_kk.ts +++ b/qt/translations/transmission_kk.ts @@ -524,7 +524,7 @@ FileAdded - + Add Torrent Торрентті қосу @@ -565,7 +565,7 @@ FileTreeModel - + File Файл @@ -781,12 +781,12 @@ FreespaceLabel - + <i>Calculating Free Space...</i> - + %1 free @@ -1425,12 +1425,12 @@ To add another primary URL, add it after a blank line. OptionsDialog - + Open Torrent - + Open Torrent from File @@ -1440,17 +1440,17 @@ To add another primary URL, add it after a blank line. - + &Source: - + &Destination folder: &Мақсат бумасы: - + High Жоғары @@ -1465,32 +1465,32 @@ To add another primary URL, add it after a blank line. Төмен - + &Priority: - + S&tart when added - + &Verify Local Data Жергі&лікті мәліметтерді тексеріп шығу - + Mo&ve .torrent file to the trash Қосқаннан &кейін .torrent файлын қоқыс шелегіне тастау - + Torrent Files (*.torrent);;All Files (*.*) - + Select Destination Мақсат бумасын таңдаңыз @@ -1609,12 +1609,12 @@ To add another primary URL, add it after a blank line. - + Status unknown Қалып-күйі белгісіз - + &Port for incoming connections: Кіріс байланыстар &порты: @@ -1667,7 +1667,7 @@ To add another primary URL, add it after a blank line. - + Download Queue @@ -1705,7 +1705,7 @@ To add another primary URL, add it after a blank line. - + Pick a &random port every time Transmission is started Әр р&ет Transmission қосылғанда, кездейсоқ портты таңдау @@ -1763,23 +1763,23 @@ To add another primary URL, add it after a blank line. Шифрлеуді талап ету - + Privacy Жекелігі - + &to - + Desktop Жұмыс үстелі - + Show Transmission icon in the &notification area Transmission таңбашас&ын трейде көрсету @@ -1944,7 +1944,7 @@ To add another primary URL, add it after a blank line. Қосу - + Downloading Жүктелуде @@ -1959,17 +1959,17 @@ To add another primary URL, add it after a blank line. Аяқтал&маған торренттерді сақтау орны: - + Save to &Location: Қай&да сақтау: - + Call scrip&t when torrent is completed: Торрент аяқталған кезде скрипт&ті орындау: - + Stop seeding at &ratio: Рейтинг &мәні келесідей болғанда, таратуды тоқтату: @@ -1979,7 +1979,7 @@ To add another primary URL, add it after a blank line. Белсенді е&мес болса, таратуды тоқтату: - + Transmission Preferences Transmission баптаулары @@ -2010,7 +2010,7 @@ To add another primary URL, add it after a blank line. RelocateDialog - + Select Location @@ -2030,7 +2030,7 @@ To add another primary URL, add it after a blank line. - + &Move from the current folder &Ағымдағы бумадан жылжыту @@ -2043,7 +2043,7 @@ To add another primary URL, add it after a blank line. Session - + Error Renaming Path @@ -2053,7 +2053,7 @@ To add another primary URL, add it after a blank line. - + Add Torrent Торрентті қосу @@ -2522,6 +2522,24 @@ To add another primary URL, add it after a blank line. + + TrPathButton + + + (None) + (Ешнәрсе) + + + + Select Folder + Бумадан жасау + + + + Select File + Файлдан жасау + + TrackerDelegate diff --git a/qt/translations/transmission_lt.ts b/qt/translations/transmission_lt.ts index 7b095eab6..6458e12f2 100644 --- a/qt/translations/transmission_lt.ts +++ b/qt/translations/transmission_lt.ts @@ -527,7 +527,7 @@ FileAdded - + Add Torrent Torento pridėjimas @@ -568,7 +568,7 @@ FileTreeModel - + Download Atsiuntimas @@ -789,12 +789,12 @@ FreespaceLabel - + <i>Calculating Free Space...</i> - + %1 free @@ -1434,22 +1434,22 @@ Papildomą pirminį URL adresą galite įvesti, palikę prieš jį tuščią eil OptionsDialog - + &Destination folder: Paskirties &aplankas: - + &Verify Local Data Pa&tikrinti turimus duomenis - + High aukštas - + Open Torrent from File @@ -1459,47 +1459,47 @@ Papildomą pirminį URL adresą galite įvesti, palikę prieš jį tuščią eil - + &Source: - + Low žemas - + &Priority: - + S&tart when added - + Mo&ve .torrent file to the trash Per&kelti .torrent failą į šiukšlinę - + Normal normalus - + Open Torrent Torento atvėrimas - + Select Destination Parinkite paskirties vietą - + Torrent Files (*.torrent);;All Files (*.*) Torentų failai (*.torrent);;Visi failai (*.*) @@ -1561,7 +1561,7 @@ Papildomą pirminį URL adresą galite įvesti, palikę prieš jį tuščią eil - + <i>Blocklist contains %Ln rules</i> <i>Blokavimo sąraše yra %Ln taisyklė</i> @@ -1570,7 +1570,7 @@ Papildomą pirminį URL adresą galite įvesti, palikę prieš jį tuščią eil - + <small>Override normal speed limits manually or at scheduled times</small> <small>Taikomi vietoje įprastų greičio ribojimų rankiniu būdu arba numatytuoju laiku</small> @@ -1590,33 +1590,33 @@ Papildomą pirminį URL adresą galite įvesti, palikę prieš jį tuščią eil leisti šifravimą - + Append ".&part" to incomplete files' names Nebaigtų failų varduose naudoti „.part“ &prievardį - + Blocklist Blokavimo sąrašas - + Call scrip&t when torrent is completed: Baigus siųsti torentą, vykdyti s&cenarijų: - + DHT is a tool for finding peers without a tracker. DHT – tai priemonė, skirta siuntėjams be sekiklio rasti. - + Desktop Aplinka - + Enable &automatic updates Įjungti &automatinius naujinimus @@ -1755,7 +1755,7 @@ Papildomą pirminį URL adresą galite įvesti, palikę prieš jį tuščią eil - + Download Queue @@ -1775,7 +1775,7 @@ Papildomą pirminį URL adresą galite įvesti, palikę prieš jį tuščią eil Įrašyti &nebaigtus torentus į: - + LPD is a tool for finding peers on your local network. VSA – tai priemonė, skirta siuntėjams Jūsų vietiniame tinkle rasti. @@ -1800,7 +1800,7 @@ Papildomą pirminį URL adresą galite įvesti, palikę prieš jį tuščią eil pirmadieniais - + Network Tinklas @@ -1815,7 +1815,7 @@ Papildomą pirminį URL adresą galite įvesti, palikę prieš jį tuščią eil Nepalaikoma nuotolinių seansų - + Options Nuostatos @@ -1850,7 +1850,7 @@ Papildomą pirminį URL adresą galite įvesti, palikę prieš jį tuščią eil teikti pirmenybę šifravimui - + Downloading @@ -1865,7 +1865,7 @@ Papildomą pirminį URL adresą galite įvesti, palikę prieš jį tuščią eil Privatumas - + Require encryption reikalauti šifravimo @@ -1905,23 +1905,23 @@ Papildomą pirminį URL adresą galite įvesti, palikę prieš jį tuščią eil Rodyti „Transmission“ piktogramą pranešimų &srityje - + Speed Greitis - + Speed Limits Greičio ribojimai - + Status unknown Būsena nežinoma - + Stop seeding at &ratio: Nebeskleisti esant &santykiui: @@ -1946,12 +1946,12 @@ Papildomą pirminį URL adresą galite įvesti, palikę prieš jį tuščią eil ketvirtadieniais - + Transmission Preferences „Transmission“ nuostatos - + Tuesday antradieniais @@ -2006,7 +2006,7 @@ Papildomą pirminį URL adresą galite įvesti, palikę prieš jį tuščią eil Tikrinamas TCP prievadas… - + Incomplete Nebaigtas @@ -2022,7 +2022,7 @@ Papildomą pirminį URL adresą galite įvesti, palikę prieš jį tuščią eil RelocateDialog - + &Move from the current folder &Perkelti iš dabartinio aplanko @@ -2032,12 +2032,12 @@ Papildomą pirminį URL adresą galite įvesti, palikę prieš jį tuščią eil Vietiniai duomenys jau yra &ten - + New &location: Nauja &vieta: - + Select Location Parinkite vietą @@ -2055,7 +2055,7 @@ Papildomą pirminį URL adresą galite įvesti, palikę prieš jį tuščią eil Session - + Error Renaming Path @@ -2065,7 +2065,7 @@ Papildomą pirminį URL adresą galite įvesti, palikę prieš jį tuščią eil - + Add Torrent Torento pridėjimas @@ -2539,6 +2539,24 @@ Papildomą pirminį URL adresą galite įvesti, palikę prieš jį tuščią eil Eilė + + TrPathButton + + + (None) + (Joks) + + + + Select Folder + Parinkite aplanką + + + + Select File + Parinkite failą + + TrackerDelegate diff --git a/qt/translations/transmission_pt_BR.ts b/qt/translations/transmission_pt_BR.ts index 2288cc9cd..7f4b8bf9b 100644 --- a/qt/translations/transmission_pt_BR.ts +++ b/qt/translations/transmission_pt_BR.ts @@ -524,7 +524,7 @@ FileAdded - + Add Torrent Adicionar Torrent @@ -565,7 +565,7 @@ FileTreeModel - + File Arquivo @@ -781,12 +781,12 @@ FreespaceLabel - + <i>Calculating Free Space...</i> - + %1 free @@ -1425,12 +1425,12 @@ Adicione outra URL primária depois de uma linha em branco. OptionsDialog - + Open Torrent - + Open Torrent from File @@ -1440,17 +1440,17 @@ Adicione outra URL primária depois de uma linha em branco. - + &Source: - + &Destination folder: Salvar na pasta: - + High Alta @@ -1465,32 +1465,32 @@ Adicione outra URL primária depois de uma linha em branco. Baixa - + &Priority: - + S&tart when added - + &Verify Local Data Verificar Dados Locais - + Mo&ve .torrent file to the trash Mover arquivo .torrent para a lixeira - + Torrent Files (*.torrent);;All Files (*.*) Arquivos Torrent (*.torrent);;Todos os Arquivos (*.*) - + Select Destination Selecione o Destino @@ -1609,12 +1609,12 @@ Adicione outra URL primária depois de uma linha em branco. - + Status unknown Estado desconhecido - + &Port for incoming connections: Porta para conexões de entrada: @@ -1667,7 +1667,7 @@ Adicione outra URL primária depois de uma linha em branco. - + Download Queue @@ -1705,7 +1705,7 @@ Adicione outra URL primária depois de uma linha em branco. - + Pick a &random port every time Transmission is started Usar uma porta aleatória quando iniciar @@ -1763,23 +1763,23 @@ Adicione outra URL primária depois de uma linha em branco. Exigir - + Privacy Privacidade - + &to - + Desktop - + Show Transmission icon in the &notification area @@ -1944,7 +1944,7 @@ Adicione outra URL primária depois de uma linha em branco. Adicionando - + Downloading Baixando @@ -1959,17 +1959,17 @@ Adicione outra URL primária depois de uma linha em branco. Manter arquivos incompletos em: - + Save to &Location: Salvar em: - + Call scrip&t when torrent is completed: - + Stop seeding at &ratio: Parar de semear na proporção: @@ -1979,7 +1979,7 @@ Adicione outra URL primária depois de uma linha em branco. Parar de semear se ocioso por: - + Transmission Preferences Preferências do Transmission @@ -2010,7 +2010,7 @@ Adicione outra URL primária depois de uma linha em branco. RelocateDialog - + Select Location Selecionar local @@ -2030,7 +2030,7 @@ Adicione outra URL primária depois de uma linha em branco. Novo local: - + &Move from the current folder Mover da pasta atual @@ -2043,7 +2043,7 @@ Adicione outra URL primária depois de uma linha em branco. Session - + Error Renaming Path @@ -2053,7 +2053,7 @@ Adicione outra URL primária depois de uma linha em branco. - + Add Torrent Adicionar Torrent @@ -2522,6 +2522,24 @@ Adicione outra URL primária depois de uma linha em branco. + + TrPathButton + + + (None) + (Nenhuma) + + + + Select Folder + Selecionar Pasta + + + + Select File + Selecionar Arquivo + + TrackerDelegate diff --git a/qt/translations/transmission_ru.ts b/qt/translations/transmission_ru.ts index 2c0c134f1..961c02561 100644 --- a/qt/translations/transmission_ru.ts +++ b/qt/translations/transmission_ru.ts @@ -528,7 +528,7 @@ FileAdded - + Add Torrent Добавить торрент @@ -569,7 +569,7 @@ FileTreeModel - + File Файл @@ -790,12 +790,12 @@ FreespaceLabel - + <i>Calculating Free Space...</i> - + %1 free @@ -1435,12 +1435,12 @@ To add another primary URL, add it after a blank line. OptionsDialog - + Open Torrent Открытие файла - + Open Torrent from File @@ -1450,17 +1450,17 @@ To add another primary URL, add it after a blank line. - + &Source: - + &Destination folder: &Папка назначения: - + High Высокий @@ -1475,32 +1475,32 @@ To add another primary URL, add it after a blank line. Низкий - + &Priority: - + S&tart when added - + &Verify Local Data Про&верить локальные данные - + Mo&ve .torrent file to the trash Пере&местить файл .torrent в корзину - + Torrent Files (*.torrent);;All Files (*.*) Торрент-файлы (*.torrent);;Все файлы (*.*) - + Select Destination Выберите папку назначения @@ -1609,12 +1609,12 @@ To add another primary URL, add it after a blank line. - + Desktop Рабочий стол - + Show Transmission icon in the &notification area Показать значок Transmission в о&бласти уведомлений @@ -1640,12 +1640,12 @@ To add another primary URL, add it after a blank line. - + Status unknown Статус неизвестен - + &Port for incoming connections: &Порт для входящих подключений: @@ -1729,7 +1729,7 @@ To add another primary URL, add it after a blank line. - + Download Queue @@ -1759,7 +1759,7 @@ To add another primary URL, add it after a blank line. Безопасность - + Allow encryption Разрешить шифрование @@ -1943,7 +1943,7 @@ To add another primary URL, add it after a blank line. Добавление - + Remote @@ -1958,12 +1958,12 @@ To add another primary URL, add it after a blank line. Добавлят&ь ".part" к именам не завершенных файлов - + Save to &Location: Сохранять в &этом местоположении: - + Keep &incomplete files in: Сохранять &не завершенные файлы в: @@ -1973,7 +1973,7 @@ To add another primary URL, add it after a blank line. Выполнить с&ценарий, после завершения загрузки: - + Stop seeding at &ratio: Прекратить &раздачу при рейтинге: @@ -1983,7 +1983,7 @@ To add another primary URL, add it after a blank line. Прекратить раздачу при &простое: - + Transmission Preferences Настройки Transmission @@ -2023,7 +2023,7 @@ To add another primary URL, add it after a blank line. RelocateDialog - + Select Location Выберите местоположение @@ -2043,7 +2043,7 @@ To add another primary URL, add it after a blank line. Новое &местоположение: - + &Move from the current folder &Переместить из текущей папки @@ -2056,7 +2056,7 @@ To add another primary URL, add it after a blank line. Session - + Error Renaming Path @@ -2066,7 +2066,7 @@ To add another primary URL, add it after a blank line. - + Add Torrent Добавить торрент @@ -2540,6 +2540,24 @@ To add another primary URL, add it after a blank line. + + TrPathButton + + + (None) + (Не выбран) + + + + Select Folder + Выбор папки + + + + Select File + Выбор файла + + TrackerDelegate diff --git a/qt/translations/transmission_uk.ts b/qt/translations/transmission_uk.ts index cd4472872..1f37bb4bb 100644 --- a/qt/translations/transmission_uk.ts +++ b/qt/translations/transmission_uk.ts @@ -527,7 +527,7 @@ FileAdded - + Add Torrent Додати торент @@ -568,7 +568,7 @@ FileTreeModel - + File Файл @@ -789,12 +789,12 @@ FreespaceLabel - + <i>Calculating Free Space...</i> <i>Обчислення вільного простору...</i> - + %1 free %1 вільно @@ -1435,12 +1435,12 @@ To add another primary URL, add it after a blank line. OptionsDialog - + Open Torrent Відкрити торент - + Open Torrent from File Відкрити торент з файлу @@ -1450,17 +1450,17 @@ To add another primary URL, add it after a blank line. Відкрити торент з посилання чи Маґнет - + &Source: &Джерело: - + &Destination folder: &Тека призначення: - + High Високий @@ -1475,32 +1475,32 @@ To add another primary URL, add it after a blank line. Низький - + &Priority: &Пріоритет: - + S&tart when added &Розпочинати безпосередньо після додавання - + &Verify Local Data &Перевірити локальні дані - + Mo&ve .torrent file to the trash Вилу&чати файли .torrent до смітника - + Torrent Files (*.torrent);;All Files (*.*) Торент файли (*.torrent);;Всі файли (*.*) - + Select Destination Обрати призначення @@ -1619,12 +1619,12 @@ To add another primary URL, add it after a blank line. - + Status unknown Невідомий статус - + &Port for incoming connections: &Порт для вхідних з’єднань: @@ -1678,7 +1678,7 @@ To add another primary URL, add it after a blank line. Вилу&чати файли .torrent до смітника - + Download Queue Черга завантажень @@ -1717,7 +1717,7 @@ To add another primary URL, add it after a blank line. - + Pick a &random port every time Transmission is started Вибирати випадковий порт при кожному запу&ску Transmission @@ -1776,23 +1776,23 @@ To add another primary URL, add it after a blank line. Вимагати шифрування - + Privacy Конфіденційність - + &to &до - + Desktop Робочий стіл - + Show Transmission icon in the &notification area Показувати &значок Transmission в зоні сповіщення @@ -1957,7 +1957,7 @@ To add another primary URL, add it after a blank line. Додавання - + Downloading Завантаження @@ -1972,17 +1972,17 @@ To add another primary URL, add it after a blank line. Зберігати &незавершені файли у: - + Save to &Location: Зберігати до: - + Call scrip&t when torrent is completed: Виконати с&ценарій, після завершення завантаження: - + Stop seeding at &ratio: Припинити поширення при співвідношенні: @@ -1992,7 +1992,7 @@ To add another primary URL, add it after a blank line. Припинити поширення, якщо не буде активності: - + Transmission Preferences Налаштування Transmission @@ -2023,7 +2023,7 @@ To add another primary URL, add it after a blank line. RelocateDialog - + Select Location Обрати розташування @@ -2043,7 +2043,7 @@ To add another primary URL, add it after a blank line. Но&ве розташування: - + &Move from the current folder &Перенести зі старої теки у вказану @@ -2056,7 +2056,7 @@ To add another primary URL, add it after a blank line. Session - + Error Renaming Path Помилка під час перейменування шляху @@ -2066,7 +2066,7 @@ To add another primary URL, add it after a blank line. <p><b>Не вдалося перейменувати «%1» на «%2»: %3.</b></p> <p>Виправте помилку і спробуйте ще раз.</p> - + Add Torrent Додати торент @@ -2542,6 +2542,24 @@ To add another primary URL, add it after a blank line. Черга + + TrPathButton + + + (None) + (Нічого) + + + + Select Folder + Обрати теку + + + + Select File + Обрати файл + + TrackerDelegate diff --git a/qt/utils.cc b/qt/utils.cc index e96a49832..f0667603a 100644 --- a/qt/utils.cc +++ b/qt/utils.cc @@ -213,7 +213,6 @@ Utils::isValidUtf8 (const char * s) QString Utils::removeTrailingDirSeparator (const QString& path) { - return path.endsWith (QDir::separator ()) - ? path.left (path.length()-1) - : path; + const QFileInfo pathInfo (path); + return pathInfo.fileName ().isEmpty () ? pathInfo.absolutePath () : pathInfo.absoluteFilePath (); }