diff options
author | Anne Jan Brouwer <brouwer@annejan.com> | 2015-08-04 00:33:43 +0200 |
---|---|---|
committer | Anne Jan Brouwer <brouwer@annejan.com> | 2015-08-04 00:33:43 +0200 |
commit | 19cc3d881ccebb6bf5d752631e803329c3f23e97 (patch) | |
tree | 94bc34aef49accb38985b584d7571a1c32a55a7e | |
parent | 8eaef8a4df442ea7d215e79b2f0f83b16b587c63 (diff) | |
parent | 8e185cc65e41aa786a11b765db33dce9d2a72e8b (diff) |
Merge branch 'develop'
Fixes: https://github.com/IJHack/qtpass/issues/81
Fixes: https://github.com/IJHack/qtpass/issues/82
-rw-r--r-- | localization/localization_nl_NL.qm | bin | 15305 -> 21827 bytes | |||
-rw-r--r-- | localization/localization_nl_NL.ts | 18 | ||||
-rw-r--r-- | localization/localization_zh_CN.qm | bin | 12315 -> 12319 bytes | |||
-rw-r--r-- | localization/localization_zh_CN.ts | 4 | ||||
-rw-r--r-- | main.cpp | 2 | ||||
-rw-r--r-- | mainwindow.cpp | 5 | ||||
-rw-r--r-- | usersdialog.cpp | 11 |
7 files changed, 29 insertions, 11 deletions
diff --git a/localization/localization_nl_NL.qm b/localization/localization_nl_NL.qm Binary files differindex 83d25523..1c766e4c 100644 --- a/localization/localization_nl_NL.qm +++ b/localization/localization_nl_NL.qm diff --git a/localization/localization_nl_NL.ts b/localization/localization_nl_NL.ts index 5eaa7c72..8e2ef5af 100644 --- a/localization/localization_nl_NL.ts +++ b/localization/localization_nl_NL.ts @@ -260,7 +260,7 @@ <message> <location filename="../keygendialog.ui" line="14"/> <source>Generate GnuPG keypair</source> - <translation>Genereer GnuPG keypair</translation> + <translation>Genereer GnuPG sleutelpaar</translation> </message> <message> <location filename="../keygendialog.ui" line="38"/> @@ -344,7 +344,7 @@ Expire-Date: 0 <message> <location filename="../mainwindow.ui" line="75"/> <source>Push</source> - <translation></translation> + <translation>Uploaden</translation> </message> <message> <location filename="../mainwindow.ui" line="82"/> @@ -368,7 +368,15 @@ p, li { white-space: pre-wrap; } <p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Please report any <a href="https://github.com/IJHack/qtpass/issues"><span style=" text-decoration: underline; color:#4183c4;">issues</span></a> you might have with this software.</p> <p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="http://qtpass.org/"><span style=" font-family:'Helvetica Neue,Helvetica,Segoe UI,Arial,freesans,sans-serif'; text-decoration: underline; color:#4183c4; background-color:transparent;">Documentation</span></a></p> <p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="https://github.com/IJHack/qtpass"><span style=" font-family:'Helvetica Neue,Helvetica,Segoe UI,Arial,freesans,sans-serif'; text-decoration: underline; color:#4183c4; background-color:transparent;">Source code</span></a></p></body></html></source> - <translation type="unfinished"></translation> + <translation><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'.Helvetica Neue DeskInterface'; font-size:13pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Helvetica Neue,Helvetica,Segoe UI,Arial,freesans,sans-serif'; font-weight:600; color:#333333;">QtPass</span><span style=" font-family:'Helvetica Neue,Helvetica,Segoe UI,Arial,freesans,sans-serif'; color:#333333;"> is een GUI voor </span><a href="http://www.passwordstore.org/"><span style=" font-family:'Helvetica Neue,Helvetica,Segoe UI,Arial,freesans,sans-serif'; text-decoration: underline; color:#4183c4; background-color:transparent;">pass</span></a>, de standaard unix password manager.</p> +<p style="-qt-paragraph-type:empty; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> +<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Meld alstublieft eventuele <a href="https://github.com/IJHack/qtpass/issues"><span style=" text-decoration: underline; color:#4183c4;">issues</span></a> die u ondervindt in het gebruik.</p> +<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="http://qtpass.org/"><span style=" font-family:'Helvetica Neue,Helvetica,Segoe UI,Arial,freesans,sans-serif'; text-decoration: underline; color:#4183c4; background-color:transparent;">Documentatie</span></a></p> +<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="https://github.com/IJHack/qtpass"><span style=" font-family:'Helvetica Neue,Helvetica,Segoe UI,Arial,freesans,sans-serif'; text-decoration: underline; color:#4183c4; background-color:transparent;">Broncode</span></a></p></body></html></translation> </message> <message> <location filename="../mainwindow.ui" line="23"/> @@ -383,7 +391,7 @@ p, li { white-space: pre-wrap; } <message> <location filename="../mainwindow.ui" line="147"/> <source>X</source> - <translation></translation> + <translation>Wissen</translation> </message> <message> <source><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> @@ -670,7 +678,7 @@ Rode inzendingen zijn niet geldig, je zult niet in staat zijn om te coderen voor <message> <location filename="../usersdialog.ui" line="62"/> <source>X</source> - <translation></translation> + <translation>Wissen</translation> </message> <message> <location filename="../usersdialog.ui" line="69"/> diff --git a/localization/localization_zh_CN.qm b/localization/localization_zh_CN.qm Binary files differindex ee96be39..4a8c78b6 100644 --- a/localization/localization_zh_CN.qm +++ b/localization/localization_zh_CN.qm diff --git a/localization/localization_zh_CN.ts b/localization/localization_zh_CN.ts index 9c303923..f4e62176 100644 --- a/localization/localization_zh_CN.ts +++ b/localization/localization_zh_CN.ts @@ -210,7 +210,7 @@ <message> <location filename="../dialog.cpp" line="511"/> <source>Would you like to create a password-store at %1?</source> - <translation>您需要在哪里创建密码路径?</translation> + <translation>您需要里创建密码路径%1?</translation> </message> <message> <location filename="../dialog.cpp" line="520"/> @@ -220,7 +220,7 @@ <message> <location filename="../dialog.cpp" line="521"/> <source>The folder %1 doesn't seem to be a password store or is not yet initialised.</source> - <translation>文件夹未找到或未初始化</translation> + <translation>文件夹未%1找到或未初始化</translation> </message> </context> <context> @@ -34,7 +34,7 @@ int main(int argc, char *argv[]) //Setup and load translator for localization QTranslator translator; QString locale = QLocale::system().name(); - //locale = "zh_CN"; + //locale = "nl_NL"; translator.load(QString(":localization/localization_") + locale + QString(".qm")); app.installTranslator(&translator); diff --git a/mainwindow.cpp b/mainwindow.cpp index ff504121..6b74e90d 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -938,7 +938,7 @@ void MainWindow::setPassword(QString file, bool overwrite, bool isNew = false) QString path = file; path.replace(QRegExp("\\.gpg$"), ""); path.replace(QRegExp("^" + passStore), ""); - executeWrapper(gitExecutable, "commit \"" + file + "\" -m \"" + (overwrite ? "Edit" : "Add") + " for " + path + " using QtPass\""); + executeWrapper(gitExecutable, "commit \"" + file + "\" -m \"" + (overwrite ? "Edit" : "Add") + " for " + path + " using QtPass.\""); } } } @@ -985,6 +985,7 @@ void MainWindow::on_deleteButton_clicked() } else { if (useGit) { executeWrapper(gitExecutable, "rm -f \"" + file + '"'); + executeWrapper(gitExecutable, "commit \"" + file + "\" -m \" Remove for " + getFile(ui->treeView->currentIndex(), true) + " using QtPass.\""); } else { QFile(file).remove(); } @@ -1189,7 +1190,7 @@ void MainWindow::on_usersButton_clicked() } QString path = gpgIdFile; path.replace(QRegExp("\\.gpg$"), ""); - executeWrapper(gitExecutable, "commit \"" + gpgIdFile + "\" -m \"Added "+ path + " using QtPass\""); + executeWrapper(gitExecutable, "commit \"" + gpgIdFile + "\" -m \"Added "+ path + " using QtPass.\""); } } diff --git a/usersdialog.cpp b/usersdialog.cpp index ed826fa0..ffc4d996 100644 --- a/usersdialog.cpp +++ b/usersdialog.cpp @@ -63,10 +63,19 @@ void UsersDialog::populateList(const QString &filter) item->setCheckState(user.enabled ? Qt::Checked : Qt::Unchecked); item->setData(Qt::UserRole, QVariant::fromValue(&user)); if (user.have_secret) { + //item->setForeground(QColor(32, 74, 135)); item->setForeground(Qt::blue); + QFont font; + font.setFamily(font.defaultFamily()); + font.setBold(true); + item->setFont(font); } else if (user.validity == '-') { - item->setBackground(Qt::red); + item->setBackground(QColor(164, 0, 0)); + item->setForeground(Qt::white); + } else if (user.expiry.toTime_t() > 0 && user.expiry.daysTo(QDateTime::currentDateTime()) > 0) { + item->setForeground(QColor(164, 0, 0)); } + ui->listWidget->addItem(item); } } |