diff options
author | T-Bonhagen <75760084+T-Bonhagen@users.noreply.github.com> | 2020-12-11 18:42:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-11 18:42:59 +0100 |
commit | 38ad7650ac4f723fd6109e3f55b3ea1c47ec4af9 (patch) | |
tree | 5d70c7e1afc0fe83dae7a55d3dd62af18593aeff /src/Main/Forms/WaitDialog.h | |
parent | cb7adbfa26a5f47c5ef6dfd5bea46545480656f1 (diff) | |
download | VeraCrypt-38ad7650ac4f723fd6109e3f55b3ea1c47ec4af9.tar.gz VeraCrypt-38ad7650ac4f723fd6109e3f55b3ea1c47ec4af9.zip |
new xml Tag for en and de (#708)
* new xml Tag for en and de
* add linux support for env LANG
* precopiled header into TrueCrypt.fdp to substitute '_()' with 'LangString[]'
* more LangString in Code
* add Language xml's to Linux Setup location
* backup language for linux is en
* remove Language.en.xml install
* rearange new xml lines to end
* yes/no dialogs now translated
* All OK/Cancel Button now support international
Co-authored-by: tb@tbon.de <tb@tbon.de>
Diffstat (limited to 'src/Main/Forms/WaitDialog.h')
-rw-r--r-- | src/Main/Forms/WaitDialog.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Main/Forms/WaitDialog.h b/src/Main/Forms/WaitDialog.h index 33f044c9..89de8718 100644 --- a/src/Main/Forms/WaitDialog.h +++ b/src/Main/Forms/WaitDialog.h @@ -13,6 +13,7 @@ #include "Main/Main.h" #include "Main/Application.h" #include <wx/msgqueue.h> +#include <wx/msgdlg.h> namespace VeraCrypt { @@ -165,7 +166,7 @@ namespace VeraCrypt void OnAdminPasswordRequest(wxCommandEvent &) { - wxPasswordEntryDialog dialog (this, _("Enter your user password or administrator password:"), _("Administrator privileges required")); + wxPasswordEntryDialog dialog (this, LangString["LINUX_ADMIN_PW_QUERY"], LangString["LINUX_ADMIN_PW_QUERY_TITLE"]); if (dialog.ShowModal() != wxID_OK) m_queue.Post(wxT("")); else @@ -196,8 +197,9 @@ namespace VeraCrypt pParam->m_style |= wxSTAY_ON_TOP; } - - int iResult = wxMessageBox (pParam->m_message, pParam->m_caption, pParam->m_style, this); + wxMessageDialog cur(this, pParam->m_message, pParam->m_caption, pParam->m_style); + cur.SetYesNoLabels(LangString["UISTR_YES"], LangString["UISTR_NO"]); + int iResult = (cur.ShowModal() == wxID_YES ? wxYES : wxNO); delete pParam; m_queue.Post(wxString::Format(wxT("%d"), iResult)); } |