patch from HM to make password question translated

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7424 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2014-07-03 21:03:28 +00:00
parent c5e41f0eaf
commit 2785094c97
3 changed files with 6 additions and 2 deletions

View File

@ -93,7 +93,7 @@ std::string pgp_pwd_callback(void * /*hook*/, const char *uid_hint, const char *
fprintf(stderr, "pgp_pwd_callback() called.\n");
#endif
std::string password;
RsServer::notify()->askForPassword(std::string("Please enter your PGP password for key:\n ")+uid_hint+" :", prev_was_bad, password) ;
RsServer::notify()->askForPassword(std::string("\n ")+uid_hint+" :", prev_was_bad, password) ;
return password ;
}

View File

@ -271,7 +271,7 @@ bool NotifyQt::askForPassword(const std::string& key_details, bool prev_is_bad,
QInputDialog dialog;
dialog.setWindowTitle(tr("PGP key passphrase"));
dialog.setLabelText((prev_is_bad?tr("Wrong password !") + "\n\n" : QString()) + QString::fromUtf8(key_details.c_str()));
dialog.setLabelText(prev_is_bad?tr("Wrong password !") + "\n\n" : tr("Please enter your PGP password for key:") + QString::fromUtf8(key_details.c_str()));
dialog.setTextEchoMode(QLineEdit::Password);
dialog.setWindowIcon(QIcon(":/images/rstray3.png"));
dialog.setModal(true);

View File

@ -10505,6 +10505,10 @@ Welche Ereignisse angezeigt werden sollen kannst du durch klicken auf <b>O
<source>Encrypted message</source>
<translation>Verschlüsselte Nachr.</translation>
</message>
<message>
<source>Please enter your PGP password for key:</source>
<translation>Bitte gib dein Passwort ein für Schlüssel:</translation>
</message>
</context>
<context>
<name>OnlineToaster</name>