mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-28 14:03:29 +01:00
Linux/MacOSX: remove unecessary XML resource string replacement of %hs, not needed since Unicode rewrite.
This commit is contained in:
parent
5a555deb74
commit
84ee7076d9
@ -920,7 +920,6 @@ namespace VeraCrypt
|
||||
if (SelectedVolumePath.IsDevice())
|
||||
{
|
||||
wxString confirmMsg = LangString["OVERWRITEPROMPT_DEVICE"];
|
||||
confirmMsg.Replace (L"%hs", L"%s");
|
||||
|
||||
if (!Gui->AskYesNo (wxString::Format (confirmMsg, wxString (_("DEVICE")).c_str(), wstring (SelectedVolumePath).c_str(), L""), false, true))
|
||||
return GetCurrentStep();
|
||||
@ -928,7 +927,6 @@ namespace VeraCrypt
|
||||
else if (FilesystemPath (wstring (SelectedVolumePath)).IsFile())
|
||||
{
|
||||
wxString confirmMsg = LangString["OVERWRITEPROMPT"];
|
||||
confirmMsg.Replace (L"%hs", L"%s");
|
||||
|
||||
if (!Gui->AskYesNo (wxString::Format (confirmMsg, wstring (SelectedVolumePath).c_str()), false, true))
|
||||
return GetCurrentStep();
|
||||
|
@ -252,7 +252,6 @@ namespace VeraCrypt
|
||||
|
||||
// Ask user to select backup file path
|
||||
wxString confirmMsg = LangString["CONFIRM_VOL_HEADER_BAK"];
|
||||
confirmMsg.Replace (L"%hs", L"%s");
|
||||
|
||||
if (!AskYesNo (wxString::Format (confirmMsg, wstring (*volumePath).c_str()), true))
|
||||
return;
|
||||
@ -1384,7 +1383,6 @@ namespace VeraCrypt
|
||||
// Restore header from an external backup
|
||||
|
||||
wxString confirmMsg = LangString["CONFIRM_VOL_HEADER_RESTORE"];
|
||||
confirmMsg.Replace (L"%hs", L"%s");
|
||||
|
||||
if (!AskYesNo (wxString::Format (confirmMsg, wstring (*volumePath).c_str()), true, true))
|
||||
return;
|
||||
|
@ -341,7 +341,6 @@ namespace VeraCrypt
|
||||
|
||||
// Ask user to select backup file path
|
||||
wxString confirmMsg = L"\n" + LangString["CONFIRM_VOL_HEADER_BAK"] + L"\n";
|
||||
confirmMsg.Replace (L"%hs", L"%s");
|
||||
|
||||
if (!AskYesNo (wxString::Format (confirmMsg, wstring (*volumePath).c_str()), true))
|
||||
return;
|
||||
@ -1418,7 +1417,6 @@ namespace VeraCrypt
|
||||
// Restore header from an external backup
|
||||
|
||||
wxString confirmMsg = L"\n\n" + LangString["CONFIRM_VOL_HEADER_RESTORE"];
|
||||
confirmMsg.Replace (L"%hs", L"%s");
|
||||
|
||||
if (!AskYesNo (wxString::Format (confirmMsg, wstring (*volumePath).c_str()), true, true))
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user