Add change background option to Desktop Menu
This commit is contained in:
parent
13004d0793
commit
30c43607b0
4 changed files with 509 additions and 36 deletions
|
@ -825,8 +825,8 @@ void FolderModel::openContextMenu(QQuickItem *visualParent, Qt::KeyboardModifier
|
||||||
const QModelIndexList indexes = m_selectionModel->selectedIndexes();
|
const QModelIndexList indexes = m_selectionModel->selectedIndexes();
|
||||||
QMenu *menu = new QMenu;
|
QMenu *menu = new QMenu;
|
||||||
|
|
||||||
|
// Open folder menu.
|
||||||
if (indexes.isEmpty()) {
|
if (indexes.isEmpty()) {
|
||||||
// Open folder menu.
|
|
||||||
QAction *selectAll = new QAction(tr("Select All"), this);
|
QAction *selectAll = new QAction(tr("Select All"), this);
|
||||||
connect(selectAll, &QAction::triggered, this, &FolderModel::selectAll);
|
connect(selectAll, &QAction::triggered, this, &FolderModel::selectAll);
|
||||||
|
|
||||||
|
@ -838,6 +838,11 @@ void FolderModel::openContextMenu(QQuickItem *visualParent, Qt::KeyboardModifier
|
||||||
menu->addSeparator();
|
menu->addSeparator();
|
||||||
menu->addAction(m_actionCollection.action("terminal"));
|
menu->addAction(m_actionCollection.action("terminal"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (m_isDesktop) {
|
||||||
|
menu->addAction(m_actionCollection.action("changeBackground"));
|
||||||
|
}
|
||||||
|
|
||||||
menu->addSeparator();
|
menu->addSeparator();
|
||||||
menu->addAction(m_actionCollection.action("emptyTrash"));
|
menu->addAction(m_actionCollection.action("emptyTrash"));
|
||||||
menu->addAction(m_actionCollection.action("properties"));
|
menu->addAction(m_actionCollection.action("properties"));
|
||||||
|
@ -912,6 +917,11 @@ void FolderModel::openInTerminal()
|
||||||
KToolInvocation::invokeTerminal(QString(), url);
|
KToolInvocation::invokeTerminal(QString(), url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void FolderModel::openChangeWallpaperDialog()
|
||||||
|
{
|
||||||
|
QProcess::startDetached("cutefish-settings", QStringList() << "-m" << "background");
|
||||||
|
}
|
||||||
|
|
||||||
void FolderModel::selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
|
void FolderModel::selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
|
||||||
{
|
{
|
||||||
QModelIndexList indices = selected.indexes();
|
QModelIndexList indices = selected.indexes();
|
||||||
|
@ -1065,6 +1075,9 @@ void FolderModel::createActions()
|
||||||
QAction *properties = new QAction(tr("Properties"), this);
|
QAction *properties = new QAction(tr("Properties"), this);
|
||||||
QObject::connect(properties, &QAction::triggered, this, &FolderModel::openPropertiesDialog);
|
QObject::connect(properties, &QAction::triggered, this, &FolderModel::openPropertiesDialog);
|
||||||
|
|
||||||
|
QAction *changeBackground = new QAction(tr("Change background"), this);
|
||||||
|
QObject::connect(changeBackground, &QAction::triggered, this, &FolderModel::openChangeWallpaperDialog);
|
||||||
|
|
||||||
m_actionCollection.addAction(QStringLiteral("open"), open);
|
m_actionCollection.addAction(QStringLiteral("open"), open);
|
||||||
m_actionCollection.addAction(QStringLiteral("cut"), cut);
|
m_actionCollection.addAction(QStringLiteral("cut"), cut);
|
||||||
m_actionCollection.addAction(QStringLiteral("copy"), copy);
|
m_actionCollection.addAction(QStringLiteral("copy"), copy);
|
||||||
|
@ -1077,6 +1090,7 @@ void FolderModel::createActions()
|
||||||
m_actionCollection.addAction(QStringLiteral("terminal"), terminal);
|
m_actionCollection.addAction(QStringLiteral("terminal"), terminal);
|
||||||
m_actionCollection.addAction(QStringLiteral("wallpaper"), wallpaper);
|
m_actionCollection.addAction(QStringLiteral("wallpaper"), wallpaper);
|
||||||
m_actionCollection.addAction(QStringLiteral("properties"), properties);
|
m_actionCollection.addAction(QStringLiteral("properties"), properties);
|
||||||
|
m_actionCollection.addAction(QStringLiteral("changeBackground"), changeBackground);
|
||||||
}
|
}
|
||||||
|
|
||||||
void FolderModel::updateActions()
|
void FolderModel::updateActions()
|
||||||
|
|
|
@ -177,6 +177,7 @@ public:
|
||||||
Q_INVOKABLE void openContextMenu(QQuickItem *visualParent = nullptr, Qt::KeyboardModifiers modifiers = Qt::NoModifier);
|
Q_INVOKABLE void openContextMenu(QQuickItem *visualParent = nullptr, Qt::KeyboardModifiers modifiers = Qt::NoModifier);
|
||||||
Q_INVOKABLE void openPropertiesDialog();
|
Q_INVOKABLE void openPropertiesDialog();
|
||||||
Q_INVOKABLE void openInTerminal();
|
Q_INVOKABLE void openInTerminal();
|
||||||
|
Q_INVOKABLE void openChangeWallpaperDialog();
|
||||||
|
|
||||||
bool isDesktop() const;
|
bool isDesktop() const;
|
||||||
void setIsDesktop(bool isDesktop);
|
void setIsDesktop(bool isDesktop);
|
||||||
|
|
354
translations/en_US.ts
Normal file
354
translations/en_US.ts
Normal file
|
@ -0,0 +1,354 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE TS>
|
||||||
|
<TS version="2.1">
|
||||||
|
<context>
|
||||||
|
<name>CreateFolderDialog</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/Dialogs/CreateFolderDialog.qml" line="29"/>
|
||||||
|
<source>New folder name</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/Dialogs/CreateFolderDialog.qml" line="57"/>
|
||||||
|
<source>New folder</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/Dialogs/CreateFolderDialog.qml" line="72"/>
|
||||||
|
<source>Cancel</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/Dialogs/CreateFolderDialog.qml" line="78"/>
|
||||||
|
<source>OK</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>DateHelper</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../helper/datehelper.cpp" line="15"/>
|
||||||
|
<source>Now</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../helper/datehelper.cpp" line="17"/>
|
||||||
|
<source>1 minute ago</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../helper/datehelper.cpp" line="19"/>
|
||||||
|
<source>%1 minutes ago</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../helper/datehelper.cpp" line="23"/>
|
||||||
|
<source>1 hour ago</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../helper/datehelper.cpp" line="25"/>
|
||||||
|
<source>%1 hours ago</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../helper/datehelper.cpp" line="29"/>
|
||||||
|
<source>1 day ago</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../helper/datehelper.cpp" line="31"/>
|
||||||
|
<source>%1 days ago</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>DesktopView</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../desktop/desktopview.cpp" line="44"/>
|
||||||
|
<source>Desktop</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>EmptyTrashDialog</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/Dialogs/EmptyTrashDialog.qml" line="30"/>
|
||||||
|
<source>File Manager</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/Dialogs/EmptyTrashDialog.qml" line="60"/>
|
||||||
|
<source>Do you want to permanently delete all files from the Trash?</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/Dialogs/EmptyTrashDialog.qml" line="69"/>
|
||||||
|
<source>Cancel</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/Dialogs/EmptyTrashDialog.qml" line="75"/>
|
||||||
|
<source>Empty Trash</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>FolderModel</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../model/foldermodel.cpp" line="166"/>
|
||||||
|
<source>%1 item</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../model/foldermodel.cpp" line="166"/>
|
||||||
|
<source>%1 items</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../model/foldermodel.cpp" line="830"/>
|
||||||
|
<source>Select All</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../model/foldermodel.cpp" line="1042"/>
|
||||||
|
<source>Open</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../model/foldermodel.cpp" line="1045"/>
|
||||||
|
<source>Cut</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../model/foldermodel.cpp" line="1048"/>
|
||||||
|
<source>Copy</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../model/foldermodel.cpp" line="1051"/>
|
||||||
|
<source>Paste</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../model/foldermodel.cpp" line="1054"/>
|
||||||
|
<source>New Folder</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../model/foldermodel.cpp" line="1057"/>
|
||||||
|
<source>Move To Trash</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../model/foldermodel.cpp" line="1060"/>
|
||||||
|
<source>Empty Trash</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../model/foldermodel.cpp" line="1063"/>
|
||||||
|
<source>Delete</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../model/foldermodel.cpp" line="1066"/>
|
||||||
|
<source>Rename</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../model/foldermodel.cpp" line="1069"/>
|
||||||
|
<source>Open in Terminal</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../model/foldermodel.cpp" line="1072"/>
|
||||||
|
<source>Set as Wallpaper</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../model/foldermodel.cpp" line="1075"/>
|
||||||
|
<source>Properties</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../model/foldermodel.cpp" line="1078"/>
|
||||||
|
<source>Change background</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>FolderPage</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/FolderPage.qml" line="54"/>
|
||||||
|
<source>Empty folder</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/FolderPage.qml" line="85"/>
|
||||||
|
<source>Open</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/FolderPage.qml" line="90"/>
|
||||||
|
<source>Properties</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/FolderPage.qml" line="146"/>
|
||||||
|
<source>%1 item</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/FolderPage.qml" line="147"/>
|
||||||
|
<source>%1 items</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/FolderPage.qml" line="153"/>
|
||||||
|
<source>%1 selected</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/FolderPage.qml" line="164"/>
|
||||||
|
<source>Empty Trash</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>OptionsMenu</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/OptionsMenu.qml" line="45"/>
|
||||||
|
<source>Icons</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/OptionsMenu.qml" line="79"/>
|
||||||
|
<source>List</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/OptionsMenu.qml" line="115"/>
|
||||||
|
<source>Name</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/OptionsMenu.qml" line="149"/>
|
||||||
|
<source>Date</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/OptionsMenu.qml" line="183"/>
|
||||||
|
<source>Size</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>PlacesModel</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../model/placesmodel.cpp" line="39"/>
|
||||||
|
<source>Home</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../model/placesmodel.cpp" line="46"/>
|
||||||
|
<source>Desktop</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../model/placesmodel.cpp" line="53"/>
|
||||||
|
<source>Documents</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../model/placesmodel.cpp" line="60"/>
|
||||||
|
<source>Downloads</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../model/placesmodel.cpp" line="67"/>
|
||||||
|
<source>Music</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../model/placesmodel.cpp" line="74"/>
|
||||||
|
<source>Pictures</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../model/placesmodel.cpp" line="81"/>
|
||||||
|
<source>Videos</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../model/placesmodel.cpp" line="86"/>
|
||||||
|
<source>Trash</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>PropertiesDialog</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/Dialogs/PropertiesDialog.qml" line="28"/>
|
||||||
|
<source>Properties</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/Dialogs/PropertiesDialog.qml" line="103"/>
|
||||||
|
<source>Type:</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/Dialogs/PropertiesDialog.qml" line="116"/>
|
||||||
|
<source>Location:</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/Dialogs/PropertiesDialog.qml" line="127"/>
|
||||||
|
<source>Size:</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/Dialogs/PropertiesDialog.qml" line="135"/>
|
||||||
|
<source>Calculating...</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/Dialogs/PropertiesDialog.qml" line="140"/>
|
||||||
|
<source>Created:</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/Dialogs/PropertiesDialog.qml" line="153"/>
|
||||||
|
<source>Modified:</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/Dialogs/PropertiesDialog.qml" line="166"/>
|
||||||
|
<source>Accessed:</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/Dialogs/PropertiesDialog.qml" line="188"/>
|
||||||
|
<source>Cancel</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/Dialogs/PropertiesDialog.qml" line="197"/>
|
||||||
|
<source>OK</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../dialogs/propertiesdialog.cpp" line="209"/>
|
||||||
|
<source>%1 files</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>main</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/main.qml" line="35"/>
|
||||||
|
<source>File Manager</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
</TS>
|
|
@ -4,26 +4,64 @@
|
||||||
<context>
|
<context>
|
||||||
<name>CreateFolderDialog</name>
|
<name>CreateFolderDialog</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/Dialogs/CreateFolderDialog.qml" line="10"/>
|
<location filename="../qml/Dialogs/CreateFolderDialog.qml" line="29"/>
|
||||||
<source>New folder name</source>
|
<source>New folder name</source>
|
||||||
<translation>新文件夹名</translation>
|
<translation>新文件夹名</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/Dialogs/CreateFolderDialog.qml" line="38"/>
|
<location filename="../qml/Dialogs/CreateFolderDialog.qml" line="57"/>
|
||||||
<source>New folder</source>
|
<source>New folder</source>
|
||||||
<translation>新文件夹</translation>
|
<translation>新文件夹</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/Dialogs/CreateFolderDialog.qml" line="48"/>
|
<location filename="../qml/Dialogs/CreateFolderDialog.qml" line="72"/>
|
||||||
<source>Cancel</source>
|
<source>Cancel</source>
|
||||||
<translation>取消</translation>
|
<translation>取消</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/Dialogs/CreateFolderDialog.qml" line="54"/>
|
<location filename="../qml/Dialogs/CreateFolderDialog.qml" line="78"/>
|
||||||
<source>OK</source>
|
<source>OK</source>
|
||||||
<translation>确定</translation>
|
<translation>确定</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>DateHelper</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../helper/datehelper.cpp" line="15"/>
|
||||||
|
<source>Now</source>
|
||||||
|
<translation>现在</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../helper/datehelper.cpp" line="17"/>
|
||||||
|
<source>1 minute ago</source>
|
||||||
|
<translation>一分钟前</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../helper/datehelper.cpp" line="19"/>
|
||||||
|
<source>%1 minutes ago</source>
|
||||||
|
<translation>%1分钟前</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../helper/datehelper.cpp" line="23"/>
|
||||||
|
<source>1 hour ago</source>
|
||||||
|
<translation>一小时前</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../helper/datehelper.cpp" line="25"/>
|
||||||
|
<source>%1 hours ago</source>
|
||||||
|
<translation>%1小时前</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../helper/datehelper.cpp" line="29"/>
|
||||||
|
<source>1 day ago</source>
|
||||||
|
<translation>一天前</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../helper/datehelper.cpp" line="31"/>
|
||||||
|
<source>%1 days ago</source>
|
||||||
|
<translation>%1天前</translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>DesktopView</name>
|
<name>DesktopView</name>
|
||||||
<message>
|
<message>
|
||||||
|
@ -32,112 +70,178 @@
|
||||||
<translation>桌面</translation>
|
<translation>桌面</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>EmptyTrashDialog</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/Dialogs/EmptyTrashDialog.qml" line="30"/>
|
||||||
|
<source>File Manager</source>
|
||||||
|
<translation>文件管理器</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/Dialogs/EmptyTrashDialog.qml" line="60"/>
|
||||||
|
<source>Do you want to permanently delete all files from the Trash?</source>
|
||||||
|
<translation>是否要从回收站中永久删除所有文件?</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/Dialogs/EmptyTrashDialog.qml" line="69"/>
|
||||||
|
<source>Cancel</source>
|
||||||
|
<translation>取消</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/Dialogs/EmptyTrashDialog.qml" line="75"/>
|
||||||
|
<source>Empty Trash</source>
|
||||||
|
<translation>清空回收站</translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>FolderModel</name>
|
<name>FolderModel</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../model/foldermodel.cpp" line="139"/>
|
<location filename="../model/foldermodel.cpp" line="166"/>
|
||||||
<source>%1 item</source>
|
<source>%1 item</source>
|
||||||
<translation>%1 项</translation>
|
<translation>%1 项</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../model/foldermodel.cpp" line="139"/>
|
<location filename="../model/foldermodel.cpp" line="166"/>
|
||||||
<source>%1 items</source>
|
<source>%1 items</source>
|
||||||
<translation>%1 项</translation>
|
<translation>%1 项</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../model/foldermodel.cpp" line="807"/>
|
<location filename="../model/foldermodel.cpp" line="830"/>
|
||||||
<source>Select All</source>
|
<source>Select All</source>
|
||||||
<translation>全选</translation>
|
<translation>全选</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../model/foldermodel.cpp" line="1009"/>
|
<location filename="../model/foldermodel.cpp" line="1042"/>
|
||||||
<source>Open</source>
|
<source>Open</source>
|
||||||
<translation>打开</translation>
|
<translation>打开</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../model/foldermodel.cpp" line="1012"/>
|
<location filename="../model/foldermodel.cpp" line="1045"/>
|
||||||
<source>Cut</source>
|
<source>Cut</source>
|
||||||
<translation>剪切</translation>
|
<translation>剪切</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../model/foldermodel.cpp" line="1015"/>
|
<location filename="../model/foldermodel.cpp" line="1048"/>
|
||||||
<source>Copy</source>
|
<source>Copy</source>
|
||||||
<translation>复制</translation>
|
<translation>复制</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../model/foldermodel.cpp" line="1018"/>
|
<location filename="../model/foldermodel.cpp" line="1051"/>
|
||||||
<source>Paste</source>
|
<source>Paste</source>
|
||||||
<translation>粘贴</translation>
|
<translation>粘贴</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../model/foldermodel.cpp" line="1021"/>
|
<location filename="../model/foldermodel.cpp" line="1054"/>
|
||||||
<source>New Folder</source>
|
<source>New Folder</source>
|
||||||
<translation>新建文件夹</translation>
|
<translation>新建文件夹</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../model/foldermodel.cpp" line="1024"/>
|
<location filename="../model/foldermodel.cpp" line="1057"/>
|
||||||
<source>Move To Trash</source>
|
<source>Move To Trash</source>
|
||||||
<translation>移动到回收站</translation>
|
<translation>移动到回收站</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../model/foldermodel.cpp" line="1027"/>
|
<location filename="../model/foldermodel.cpp" line="1060"/>
|
||||||
<source>Empty Trash</source>
|
<source>Empty Trash</source>
|
||||||
<translation>清空回收站</translation>
|
<translation>清空回收站</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../model/foldermodel.cpp" line="1030"/>
|
<location filename="../model/foldermodel.cpp" line="1063"/>
|
||||||
<source>Delete</source>
|
<source>Delete</source>
|
||||||
<translation>删除</translation>
|
<translation>删除</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../model/foldermodel.cpp" line="1033"/>
|
<location filename="../model/foldermodel.cpp" line="1066"/>
|
||||||
<source>Rename</source>
|
<source>Rename</source>
|
||||||
<translation>重命名</translation>
|
<translation>重命名</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../model/foldermodel.cpp" line="1036"/>
|
<location filename="../model/foldermodel.cpp" line="1069"/>
|
||||||
<source>Open in Terminal</source>
|
<source>Open in Terminal</source>
|
||||||
<translation>在终端中打开</translation>
|
<translation>在终端中打开</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../model/foldermodel.cpp" line="1039"/>
|
<location filename="../model/foldermodel.cpp" line="1072"/>
|
||||||
<source>Set as Wallpaper</source>
|
<source>Set as Wallpaper</source>
|
||||||
<translation>设置为壁纸</translation>
|
<translation>设置为壁纸</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../model/foldermodel.cpp" line="1042"/>
|
<location filename="../model/foldermodel.cpp" line="1075"/>
|
||||||
<source>Properties</source>
|
<source>Properties</source>
|
||||||
<translation>属性</translation>
|
<translation>属性</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../model/foldermodel.cpp" line="1078"/>
|
||||||
|
<source>Change background</source>
|
||||||
|
<translation>更改桌面背景</translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>FolderPage</name>
|
<name>FolderPage</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/FolderPage.qml" line="34"/>
|
<location filename="../qml/FolderPage.qml" line="54"/>
|
||||||
<source>Empty folder</source>
|
<source>Empty folder</source>
|
||||||
<translation>空文件夹</translation>
|
<translation>空文件夹</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/FolderPage.qml" line="106"/>
|
<location filename="../qml/FolderPage.qml" line="85"/>
|
||||||
|
<source>Open</source>
|
||||||
|
<translation>打开</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/FolderPage.qml" line="90"/>
|
||||||
|
<source>Properties</source>
|
||||||
|
<translation>属性</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/FolderPage.qml" line="146"/>
|
||||||
<source>%1 item</source>
|
<source>%1 item</source>
|
||||||
<translation>%1 项</translation>
|
<translation>%1 项</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/FolderPage.qml" line="107"/>
|
<location filename="../qml/FolderPage.qml" line="147"/>
|
||||||
<source>%1 items</source>
|
<source>%1 items</source>
|
||||||
<translation>%1 项</translation>
|
<translation>%1 项</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/FolderPage.qml" line="112"/>
|
<location filename="../qml/FolderPage.qml" line="153"/>
|
||||||
<source>%1 selected</source>
|
<source>%1 selected</source>
|
||||||
<translation>选中了 %1 项</translation>
|
<translation>选中了 %1 项</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/FolderPage.qml" line="123"/>
|
<location filename="../qml/FolderPage.qml" line="164"/>
|
||||||
<source>Empty Trash</source>
|
<source>Empty Trash</source>
|
||||||
<translation>清空回收站</translation>
|
<translation>清空回收站</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>OptionsMenu</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/OptionsMenu.qml" line="45"/>
|
||||||
|
<source>Icons</source>
|
||||||
|
<translation>图标视图</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/OptionsMenu.qml" line="79"/>
|
||||||
|
<source>List</source>
|
||||||
|
<translation>列表视图</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/OptionsMenu.qml" line="115"/>
|
||||||
|
<source>Name</source>
|
||||||
|
<translation>名称</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/OptionsMenu.qml" line="149"/>
|
||||||
|
<source>Date</source>
|
||||||
|
<translation>日期</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../qml/OptionsMenu.qml" line="183"/>
|
||||||
|
<source>Size</source>
|
||||||
|
<translation>大小</translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>PlacesModel</name>
|
<name>PlacesModel</name>
|
||||||
<message>
|
<message>
|
||||||
|
@ -184,52 +288,52 @@
|
||||||
<context>
|
<context>
|
||||||
<name>PropertiesDialog</name>
|
<name>PropertiesDialog</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/Dialogs/PropertiesDialog.qml" line="9"/>
|
<location filename="../qml/Dialogs/PropertiesDialog.qml" line="28"/>
|
||||||
<source>Properties</source>
|
<source>Properties</source>
|
||||||
<translation>属性</translation>
|
<translation>属性</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/Dialogs/PropertiesDialog.qml" line="84"/>
|
<location filename="../qml/Dialogs/PropertiesDialog.qml" line="103"/>
|
||||||
<source>Type:</source>
|
<source>Type:</source>
|
||||||
<translation>类型:</translation>
|
<translation>类型:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/Dialogs/PropertiesDialog.qml" line="97"/>
|
<location filename="../qml/Dialogs/PropertiesDialog.qml" line="116"/>
|
||||||
<source>Location:</source>
|
<source>Location:</source>
|
||||||
<translation>位置:</translation>
|
<translation>位置:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/Dialogs/PropertiesDialog.qml" line="108"/>
|
<location filename="../qml/Dialogs/PropertiesDialog.qml" line="127"/>
|
||||||
<source>Size:</source>
|
<source>Size:</source>
|
||||||
<translation>大小:</translation>
|
<translation>大小:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/Dialogs/PropertiesDialog.qml" line="116"/>
|
<location filename="../qml/Dialogs/PropertiesDialog.qml" line="135"/>
|
||||||
<source>Calculating...</source>
|
<source>Calculating...</source>
|
||||||
<translation>计算中...</translation>
|
<translation>计算中...</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/Dialogs/PropertiesDialog.qml" line="121"/>
|
<location filename="../qml/Dialogs/PropertiesDialog.qml" line="140"/>
|
||||||
<source>Created:</source>
|
<source>Created:</source>
|
||||||
<translation>创建时间:</translation>
|
<translation>创建时间:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/Dialogs/PropertiesDialog.qml" line="134"/>
|
<location filename="../qml/Dialogs/PropertiesDialog.qml" line="153"/>
|
||||||
<source>Modified:</source>
|
<source>Modified:</source>
|
||||||
<translation>修改时间:</translation>
|
<translation>修改时间:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/Dialogs/PropertiesDialog.qml" line="147"/>
|
<location filename="../qml/Dialogs/PropertiesDialog.qml" line="166"/>
|
||||||
<source>Accessed:</source>
|
<source>Accessed:</source>
|
||||||
<translation>访问时间:</translation>
|
<translation>访问时间:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/Dialogs/PropertiesDialog.qml" line="169"/>
|
<location filename="../qml/Dialogs/PropertiesDialog.qml" line="188"/>
|
||||||
<source>Cancel</source>
|
<source>Cancel</source>
|
||||||
<translation>取消</translation>
|
<translation>取消</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/Dialogs/PropertiesDialog.qml" line="178"/>
|
<location filename="../qml/Dialogs/PropertiesDialog.qml" line="197"/>
|
||||||
<source>OK</source>
|
<source>OK</source>
|
||||||
<translation>确定</translation>
|
<translation>确定</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -242,7 +346,7 @@
|
||||||
<context>
|
<context>
|
||||||
<name>main</name>
|
<name>main</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/main.qml" line="16"/>
|
<location filename="../qml/main.qml" line="35"/>
|
||||||
<source>File Manager</source>
|
<source>File Manager</source>
|
||||||
<translation>文件管理器</translation>
|
<translation>文件管理器</translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
Loading…
Reference in a new issue