mirror of
https://github.com/pbatard/rufus.git
synced 2024-08-14 23:57:05 +00:00
[ui] small fixes for RTL languages
This commit is contained in:
parent
0adbbd6f97
commit
c832814af0
4 changed files with 10 additions and 15 deletions
|
@ -1521,14 +1521,9 @@ static void InitDialog(HWND hDlg)
|
||||||
for (i=0; (i<3) && ((token = strtok(NULL, ".")) != NULL); i++)
|
for (i=0; (i<3) && ((token = strtok(NULL, ".")) != NULL); i++)
|
||||||
rufus_version[i] = (uint16_t)atoi(token);
|
rufus_version[i] = (uint16_t)atoi(token);
|
||||||
|
|
||||||
// Redefine the title to be able to add "Alpha" or "Beta" and get the version in the right order for RTL
|
// Redefine the title to be able to add "Alpha" or "Beta"
|
||||||
if (!right_to_left_mode) {
|
|
||||||
static_sprintf(tmp, APPLICATION_NAME " %d.%d.%d%s%s", rufus_version[0], rufus_version[1], rufus_version[2],
|
static_sprintf(tmp, APPLICATION_NAME " %d.%d.%d%s%s", rufus_version[0], rufus_version[1], rufus_version[2],
|
||||||
IsAlphaOrBeta(), (ini_file != NULL)?"(Portable)":"");
|
IsAlphaOrBeta(), (ini_file != NULL)?"(Portable)":"");
|
||||||
} else {
|
|
||||||
static_sprintf(tmp, "%s%s%d.%d.%d " APPLICATION_NAME, (ini_file != NULL)?"(Portable)":"", IsAlphaOrBeta(),
|
|
||||||
rufus_version[0], rufus_version[1], rufus_version[2]);
|
|
||||||
}
|
|
||||||
SetWindowTextU(hDlg, tmp);
|
SetWindowTextU(hDlg, tmp);
|
||||||
// Now that we have a title, we can find the handle of our Dialog
|
// Now that we have a title, we can find the handle of our Dialog
|
||||||
dialog_handle = FindWindowA(NULL, tmp);
|
dialog_handle = FindWindowA(NULL, tmp);
|
||||||
|
|
10
src/rufus.rc
10
src/rufus.rc
|
@ -33,7 +33,7 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
|
||||||
IDD_DIALOG DIALOGEX 12, 12, 232, 326
|
IDD_DIALOG DIALOGEX 12, 12, 232, 326
|
||||||
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 3.2.1371"
|
CAPTION "Rufus 3.2.1372"
|
||||||
FONT 9, "Segoe UI Symbol", 400, 0, 0x0
|
FONT 9, "Segoe UI Symbol", 400, 0, 0x0
|
||||||
BEGIN
|
BEGIN
|
||||||
LTEXT "Drive Properties",IDS_DRIVE_PROPERTIES_TXT,8,6,53,12,NOT WS_GROUP
|
LTEXT "Drive Properties",IDS_DRIVE_PROPERTIES_TXT,8,6,53,12,NOT WS_GROUP
|
||||||
|
@ -392,8 +392,8 @@ END
|
||||||
//
|
//
|
||||||
|
|
||||||
VS_VERSION_INFO VERSIONINFO
|
VS_VERSION_INFO VERSIONINFO
|
||||||
FILEVERSION 3,2,1371,0
|
FILEVERSION 3,2,1372,0
|
||||||
PRODUCTVERSION 3,2,1371,0
|
PRODUCTVERSION 3,2,1372,0
|
||||||
FILEFLAGSMASK 0x3fL
|
FILEFLAGSMASK 0x3fL
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
FILEFLAGS 0x1L
|
FILEFLAGS 0x1L
|
||||||
|
@ -411,13 +411,13 @@ BEGIN
|
||||||
VALUE "Comments", "https://akeo.ie"
|
VALUE "Comments", "https://akeo.ie"
|
||||||
VALUE "CompanyName", "Akeo Consulting"
|
VALUE "CompanyName", "Akeo Consulting"
|
||||||
VALUE "FileDescription", "Rufus"
|
VALUE "FileDescription", "Rufus"
|
||||||
VALUE "FileVersion", "3.2.1371"
|
VALUE "FileVersion", "3.2.1372"
|
||||||
VALUE "InternalName", "Rufus"
|
VALUE "InternalName", "Rufus"
|
||||||
VALUE "LegalCopyright", "© 2011-2018 Pete Batard (GPL v3)"
|
VALUE "LegalCopyright", "© 2011-2018 Pete Batard (GPL v3)"
|
||||||
VALUE "LegalTrademarks", "https://www.gnu.org/copyleft/gpl.html"
|
VALUE "LegalTrademarks", "https://www.gnu.org/copyleft/gpl.html"
|
||||||
VALUE "OriginalFilename", "rufus-3.2.exe"
|
VALUE "OriginalFilename", "rufus-3.2.exe"
|
||||||
VALUE "ProductName", "Rufus"
|
VALUE "ProductName", "Rufus"
|
||||||
VALUE "ProductVersion", "3.2.1371"
|
VALUE "ProductVersion", "3.2.1372"
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
BLOCK "VarFileInfo"
|
BLOCK "VarFileInfo"
|
||||||
|
|
|
@ -571,7 +571,7 @@ INT_PTR CALLBACK AboutCallback(HWND hDlg, UINT message, WPARAM wParam, LPARAM lP
|
||||||
ResizeButtonHeight(hDlg, IDOK);
|
ResizeButtonHeight(hDlg, IDOK);
|
||||||
static_sprintf(about_blurb, about_blurb_format, lmprintf(MSG_174|MSG_RTF),
|
static_sprintf(about_blurb, about_blurb_format, lmprintf(MSG_174|MSG_RTF),
|
||||||
lmprintf(MSG_175|MSG_RTF, rufus_version[0], rufus_version[1], rufus_version[2]),
|
lmprintf(MSG_175|MSG_RTF, rufus_version[0], rufus_version[1], rufus_version[2]),
|
||||||
right_to_left_mode?"Akeo \\\\ Pete Batard 2011-2018 © Copyright":"Copyright © 2011-2018 Pete Batard / Akeo",
|
"Copyright © 2011-2018 Pete Batard / Akeo",
|
||||||
lmprintf(MSG_176|MSG_RTF), lmprintf(MSG_177|MSG_RTF), lmprintf(MSG_178|MSG_RTF));
|
lmprintf(MSG_176|MSG_RTF), lmprintf(MSG_177|MSG_RTF), lmprintf(MSG_178|MSG_RTF));
|
||||||
for (i=0; i<ARRAYSIZE(hEdit); i++) {
|
for (i=0; i<ARRAYSIZE(hEdit); i++) {
|
||||||
hEdit[i] = GetDlgItem(hDlg, edit_id[i]);
|
hEdit[i] = GetDlgItem(hDlg, edit_id[i]);
|
||||||
|
|
Loading…
Reference in a new issue