mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 05:34:36 +00:00
Added prompt in folders dialog under Qt.
This commit is contained in:
parent
b6f56721cb
commit
f45997afe4
@ -9,7 +9,7 @@
|
||||
from PyQt4.QtCore import QRect
|
||||
from PyQt4.QtGui import (QWidget, QFileDialog, QHeaderView, QVBoxLayout, QHBoxLayout, QTreeView,
|
||||
QAbstractItemView, QSpacerItem, QSizePolicy, QPushButton, QApplication, QMessageBox, QMainWindow,
|
||||
QMenuBar, QMenu, QIcon, QPixmap)
|
||||
QMenuBar, QMenu, QIcon, QPixmap, QLabel)
|
||||
|
||||
from hscommon.trans import tr, trmsg
|
||||
from qtlib.recent import Recent
|
||||
@ -100,6 +100,8 @@ class DirectoriesDialog(QMainWindow):
|
||||
self.resize(420, 338)
|
||||
self.centralwidget = QWidget(self)
|
||||
self.verticalLayout = QVBoxLayout(self.centralwidget)
|
||||
self.promptLabel = QLabel(trmsg("SelectFolderToScanMsg"), self.centralwidget)
|
||||
self.verticalLayout.addWidget(self.promptLabel)
|
||||
self.treeView = QTreeView(self.centralwidget)
|
||||
self.treeView.setItemDelegate(self.directoriesDelegate)
|
||||
self.treeView.setModel(self.directoriesModel)
|
||||
@ -222,6 +224,7 @@ class DirectoriesDialog(QMainWindow):
|
||||
|
||||
if __name__ == '__main__':
|
||||
import sys
|
||||
from . import dg_rc
|
||||
from ..testapp import TestApp
|
||||
app = QApplication([])
|
||||
dgapp = TestApp()
|
||||
|
@ -3,6 +3,10 @@
|
||||
<TS version="2.0" language="en_US">
|
||||
<context>
|
||||
<name>message</name>
|
||||
<message>
|
||||
<source>SelectFolderToScanMsg</source>
|
||||
<translation>Select folders to scan and press "Scan".</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>TaskHangingMsg</source>
|
||||
<translation>A previous action is still hanging in there. You can't start a new one yet. Wait a few seconds, then try again.</translation>
|
||||
|
@ -539,6 +539,10 @@
|
||||
<!-- ******** Message ******** -->
|
||||
<context>
|
||||
<name>message</name>
|
||||
<message>
|
||||
<source>SelectFolderToScanMsg</source>
|
||||
<translation>Sélectionnez les dossiers à scanner puis faites "Scan".</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>TaskHangingMsg</source>
|
||||
<translation>Une action précédente est encore en cours. Attendez quelques secondes avant d'en repartir une nouvelle.</translation>
|
||||
|
Loading…
x
Reference in New Issue
Block a user