mirror of
https://github.com/pbatard/rufus.git
synced 2024-08-14 23:57:05 +00:00
[loc] fix RTL display of ISO truncation notification
* Also don't use MessageBoxU where unneeded
This commit is contained in:
parent
d7d6caebe1
commit
d620d8848d
2 changed files with 8 additions and 8 deletions
|
@ -972,8 +972,8 @@ static void DisplayISOProps(void)
|
||||||
if (img_report.mismatch_size > 0) {
|
if (img_report.mismatch_size > 0) {
|
||||||
uprintf(" ERROR: Detected that file on disk has been truncated by %s!",
|
uprintf(" ERROR: Detected that file on disk has been truncated by %s!",
|
||||||
SizeToHumanReadable(img_report.mismatch_size, FALSE, FALSE));
|
SizeToHumanReadable(img_report.mismatch_size, FALSE, FALSE));
|
||||||
MessageBoxU(hMainDialog, lmprintf(MSG_298, SizeToHumanReadable(img_report.mismatch_size, FALSE, FALSE)),
|
MessageBoxExU(hMainDialog, lmprintf(MSG_298, SizeToHumanReadable(img_report.mismatch_size, FALSE, FALSE)),
|
||||||
lmprintf(MSG_297), MB_ICONWARNING);
|
lmprintf(MSG_297), MB_ICONWARNING | MB_IS_RTL, selected_langid);
|
||||||
} else if (img_report.mismatch_size < 0) {
|
} else if (img_report.mismatch_size < 0) {
|
||||||
// Not an error (ISOHybrid?), but we report it just in case
|
// Not an error (ISOHybrid?), but we report it just in case
|
||||||
uprintf(" Note: File on disk is larger than reported ISO size by %s...",
|
uprintf(" Note: File on disk is larger than reported ISO size by %s...",
|
||||||
|
@ -3197,7 +3197,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
|
||||||
if ( (!get_supported_locales(loc_file))
|
if ( (!get_supported_locales(loc_file))
|
||||||
|| ((selected_locale = ((locale_name == NULL)?get_locale_from_lcid(lcid, TRUE):get_locale_from_name(locale_name, TRUE))) == NULL) ) {
|
|| ((selected_locale = ((locale_name == NULL)?get_locale_from_lcid(lcid, TRUE):get_locale_from_name(locale_name, TRUE))) == NULL) ) {
|
||||||
uprintf("FATAL: Could not access locale!");
|
uprintf("FATAL: Could not access locale!");
|
||||||
MessageBoxU(NULL, "The locale data is missing or invalid. This application will now exit.",
|
MessageBoxA(NULL, "The locale data is missing or invalid. This application will now exit.",
|
||||||
"Fatal error", MB_ICONSTOP|MB_SYSTEMMODAL);
|
"Fatal error", MB_ICONSTOP|MB_SYSTEMMODAL);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
10
src/rufus.rc
10
src/rufus.rc
|
@ -33,7 +33,7 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
|
||||||
IDD_DIALOG DIALOGEX 12, 12, 242, 376
|
IDD_DIALOG DIALOGEX 12, 12, 242, 376
|
||||||
STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||||
EXSTYLE WS_EX_ACCEPTFILES
|
EXSTYLE WS_EX_ACCEPTFILES
|
||||||
CAPTION "Rufus 2.16.1167"
|
CAPTION "Rufus 2.16.1168"
|
||||||
FONT 8, "Segoe UI Symbol", 400, 0, 0x0
|
FONT 8, "Segoe UI Symbol", 400, 0, 0x0
|
||||||
BEGIN
|
BEGIN
|
||||||
LTEXT "Device",IDS_DEVICE_TXT,9,6,200,8
|
LTEXT "Device",IDS_DEVICE_TXT,9,6,200,8
|
||||||
|
@ -366,8 +366,8 @@ END
|
||||||
//
|
//
|
||||||
|
|
||||||
VS_VERSION_INFO VERSIONINFO
|
VS_VERSION_INFO VERSIONINFO
|
||||||
FILEVERSION 2,16,1167,0
|
FILEVERSION 2,16,1168,0
|
||||||
PRODUCTVERSION 2,16,1167,0
|
PRODUCTVERSION 2,16,1168,0
|
||||||
FILEFLAGSMASK 0x3fL
|
FILEFLAGSMASK 0x3fL
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
FILEFLAGS 0x1L
|
FILEFLAGS 0x1L
|
||||||
|
@ -384,13 +384,13 @@ BEGIN
|
||||||
BEGIN
|
BEGIN
|
||||||
VALUE "CompanyName", "Akeo Consulting (http://akeo.ie)"
|
VALUE "CompanyName", "Akeo Consulting (http://akeo.ie)"
|
||||||
VALUE "FileDescription", "Rufus"
|
VALUE "FileDescription", "Rufus"
|
||||||
VALUE "FileVersion", "2.16.1167"
|
VALUE "FileVersion", "2.16.1168"
|
||||||
VALUE "InternalName", "Rufus"
|
VALUE "InternalName", "Rufus"
|
||||||
VALUE "LegalCopyright", "© 2011-2017 Pete Batard (GPL v3)"
|
VALUE "LegalCopyright", "© 2011-2017 Pete Batard (GPL v3)"
|
||||||
VALUE "LegalTrademarks", "http://www.gnu.org/copyleft/gpl.html"
|
VALUE "LegalTrademarks", "http://www.gnu.org/copyleft/gpl.html"
|
||||||
VALUE "OriginalFilename", "rufus.exe"
|
VALUE "OriginalFilename", "rufus.exe"
|
||||||
VALUE "ProductName", "Rufus"
|
VALUE "ProductName", "Rufus"
|
||||||
VALUE "ProductVersion", "2.16.1167"
|
VALUE "ProductVersion", "2.16.1168"
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
BLOCK "VarFileInfo"
|
BLOCK "VarFileInfo"
|
||||||
|
|
Loading…
Reference in a new issue