mirror of
https://github.com/pbatard/rufus.git
synced 2025-06-05 09:13:47 -04:00
[loc] fix various RTL issues
* MSG_002 doesn't display in RTL * Update Policy dialog loses RTL setting after the first paragraph * Some text displayed in native Windows message boxes is not using RTL (even as the Message Box itself will display the rest of the UI elements as RTL) * Detect if the relevant language pack is installed and use MessageBoxEx to display native message box buttons using the selected language. * All theses issues are part of #621 * Also remove trailing whitespaces
This commit is contained in:
parent
236bf77c24
commit
e1f8b276c8
12 changed files with 190 additions and 110 deletions
|
@ -141,11 +141,11 @@ LONG ValidateSignature(HWND hDlg, const char* path)
|
|||
|
||||
// Check the signature name. Make it specific enough (i.e. don't simply check for "Akeo")
|
||||
// so that, besides hacking our server, it'll place an extra hurdle on any malicious entity
|
||||
// into also fooling a C.A. to issue a certificate that passes our test.
|
||||
// into also fooling a C.A. to issue a certificate that passes our test.
|
||||
signature_name = GetSignatureName(path);
|
||||
if (signature_name == NULL) {
|
||||
uprintf("PKI: Could not get signature name");
|
||||
MessageBoxU(hDlg, lmprintf(MSG_284), lmprintf(MSG_283), MB_OK | MB_ICONERROR | MB_IS_RTL);
|
||||
MessageBoxExU(hDlg, lmprintf(MSG_284), lmprintf(MSG_283), MB_OK | MB_ICONERROR | MB_IS_RTL, selected_langid);
|
||||
return TRUST_E_NOSIGNATURE;
|
||||
}
|
||||
for (i = 0; i < ARRAYSIZE(valid_cert_names); i++) {
|
||||
|
@ -158,8 +158,8 @@ LONG ValidateSignature(HWND hDlg, const char* path)
|
|||
}
|
||||
if (i >= ARRAYSIZE(valid_cert_names)) {
|
||||
uprintf("PKI: Signature '%s' is unexpected...", signature_name);
|
||||
if (MessageBoxU(hDlg, lmprintf(MSG_285, signature_name), lmprintf(MSG_283),
|
||||
MB_YESNO | MB_ICONWARNING | MB_IS_RTL) != IDYES)
|
||||
if (MessageBoxExU(hDlg, lmprintf(MSG_285, signature_name), lmprintf(MSG_283),
|
||||
MB_YESNO | MB_ICONWARNING | MB_IS_RTL, selected_langid) != IDYES)
|
||||
return TRUST_E_EXPLICIT_DISTRUST;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue