[HOTPLUG] Add missing string resources for applet (#4689)

Use `IDS_CPLNAME` for the window title.
This also fixes the missing title text on the taskbar.
This commit is contained in:
Thamatip Chitpong 2022-09-15 03:12:50 +07:00 committed by GitHub
parent 781c247bd3
commit 21824a2596
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 120 additions and 11 deletions

View file

@ -360,8 +360,18 @@ SafeRemovalDlgProc(
pHotplugData = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(HOTPLUG_DATA));
if (pHotplugData != NULL)
{
WCHAR szWindowTitle[MAX_PATH];
SetWindowLongPtr(hwndDlg, DWLP_USER, (LONG_PTR)pHotplugData);
if (LoadStringW(hApplet,
IDS_CPLNAME,
szWindowTitle,
ARRAYSIZE(szWindowTitle)))
{
SetWindowTextW(hwndDlg, szWindowTitle);
}
pHotplugData->ImageListData.cbSize = sizeof(pHotplugData->ImageListData);
SetupDiGetClassImageList(&pHotplugData->ImageListData);

View file

@ -1,7 +1,7 @@
LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL
IDD_SAFE_REMOVE_HARDWARE_DIALOG DIALOGEX 0, 0, 278, 245
CAPTION "Hardware sicher entfernen"
CAPTION ""
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
BEGIN
@ -28,3 +28,12 @@ BEGIN
MENUITEM "Eigenschaften", IDM_PROPERTIES
END
END
/* Strings */
STRINGTABLE
BEGIN
IDS_CPLNAME "Hardware sicher entfernen"
IDS_CPLDESCRIPTION "Safely unplug or eject devices from your computer."
END

View file

@ -1,7 +1,7 @@
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
IDD_SAFE_REMOVE_HARDWARE_DIALOG DIALOGEX 0, 0, 278, 245
CAPTION "Safely Remove Hardware"
CAPTION ""
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
BEGIN
@ -28,3 +28,12 @@ BEGIN
MENUITEM "Properties", IDM_PROPERTIES
END
END
/* Strings */
STRINGTABLE
BEGIN
IDS_CPLNAME "Safely Remove Hardware"
IDS_CPLDESCRIPTION "Safely unplug or eject devices from your computer."
END

View file

@ -1,7 +1,7 @@
LANGUAGE LANG_SPANISH, SUBLANG_DEFAULT
IDD_SAFE_REMOVE_HARDWARE_DIALOG DIALOGEX 0, 0, 278, 245
CAPTION "Retirar hardware con seguridad"
CAPTION ""
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
BEGIN
@ -28,3 +28,12 @@ BEGIN
MENUITEM "Propiedades", IDM_PROPERTIES
END
END
/* Strings */
STRINGTABLE
BEGIN
IDS_CPLNAME "Retirar hardware con seguridad"
IDS_CPLDESCRIPTION "Safely unplug or eject devices from your computer."
END

View file

@ -1,7 +1,7 @@
LANGUAGE LANG_INDONESIAN, SUBLANG_DEFAULT
IDD_SAFE_REMOVE_HARDWARE_DIALOG DIALOGEX 0, 0, 278, 245
CAPTION "Hapus perangkat keras dengan aman"
CAPTION ""
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
BEGIN
@ -28,3 +28,12 @@ BEGIN
MENUITEM "Properties", IDM_PROPERTIES
END
END
/* Strings */
STRINGTABLE
BEGIN
IDS_CPLNAME "Hapus perangkat keras dengan aman"
IDS_CPLDESCRIPTION "Safely unplug or eject devices from your computer."
END

View file

@ -1,7 +1,7 @@
LANGUAGE LANG_JAPANESE, SUBLANG_DEFAULT
IDD_SAFE_REMOVE_HARDWARE_DIALOG DIALOGEX 0, 0, 278, 245
CAPTION "安全なハードウェアの取り外し"
CAPTION ""
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
BEGIN
@ -28,3 +28,12 @@ BEGIN
MENUITEM "プロパティ", IDM_PROPERTIES
END
END
/* Strings */
STRINGTABLE
BEGIN
IDS_CPLNAME "安全なハードウェアの取り外し"
IDS_CPLDESCRIPTION "Safely unplug or eject devices from your computer."
END

View file

@ -1,7 +1,7 @@
LANGUAGE LANG_POLISH, SUBLANG_DEFAULT
IDD_SAFE_REMOVE_HARDWARE_DIALOG DIALOGEX 0, 0, 278, 245
CAPTION "Bezpieczne usuwanie sprzętu"
CAPTION ""
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
BEGIN
@ -28,3 +28,12 @@ BEGIN
MENUITEM "Właściwości", IDM_PROPERTIES
END
END
/* Strings */
STRINGTABLE
BEGIN
IDS_CPLNAME "Bezpieczne usuwanie sprzętu"
IDS_CPLDESCRIPTION "Safely unplug or eject devices from your computer."
END

View file

@ -1,7 +1,7 @@
LANGUAGE LANG_PORTUGUESE, SUBLANG_NEUTRAL
IDD_SAFE_REMOVE_HARDWARE_DIALOG DIALOGEX 0, 0, 278, 245
CAPTION "Remover Hardware com segurança"
CAPTION ""
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
BEGIN
@ -28,3 +28,12 @@ BEGIN
MENUITEM "Propriedades", IDM_PROPERTIES
END
END
/* Strings */
STRINGTABLE
BEGIN
IDS_CPLNAME "Remover Hardware com segurança"
IDS_CPLDESCRIPTION "Safely unplug or eject devices from your computer."
END

View file

@ -1,7 +1,7 @@
LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
IDD_SAFE_REMOVE_HARDWARE_DIALOG DIALOGEX 0, 0, 278, 245
CAPTION "Безопасное извлечение устройств"
CAPTION ""
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
BEGIN
@ -28,3 +28,12 @@ BEGIN
MENUITEM "Свойства", IDM_PROPERTIES
END
END
/* Strings */
STRINGTABLE
BEGIN
IDS_CPLNAME "Безопасное извлечение устройств"
IDS_CPLDESCRIPTION "Safely unplug or eject devices from your computer."
END

View file

@ -3,7 +3,7 @@
LANGUAGE LANG_TURKISH, SUBLANG_DEFAULT
IDD_SAFE_REMOVE_HARDWARE_DIALOG DIALOGEX 0, 0, 278, 245
CAPTION "Donanımı Güvenli Kaldır"
CAPTION ""
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg"
BEGIN
@ -30,3 +30,12 @@ BEGIN
MENUITEM "Özellikler", IDM_PROPERTIES
END
END
/* Strings */
STRINGTABLE
BEGIN
IDS_CPLNAME "Donanımı Güvenli Kaldır"
IDS_CPLDESCRIPTION "Safely unplug or eject devices from your computer."
END

View file

@ -8,7 +8,7 @@
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_HONGKONG
IDD_SAFE_REMOVE_HARDWARE_DIALOG DIALOGEX 0, 0, 278, 245
CAPTION "安全地移除硬件"
CAPTION ""
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
FONT 9, "新細明體"
BEGIN
@ -35,3 +35,12 @@ BEGIN
MENUITEM "內容", IDM_PROPERTIES
END
END
/* Strings */
STRINGTABLE
BEGIN
IDS_CPLNAME "安全地移除硬件"
IDS_CPLDESCRIPTION "Safely unplug or eject devices from your computer."
END

View file

@ -8,7 +8,7 @@
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_TRADITIONAL
IDD_SAFE_REMOVE_HARDWARE_DIALOG DIALOGEX 0, 0, 278, 245
CAPTION "安全地移除硬體"
CAPTION ""
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
FONT 9, "新細明體"
BEGIN
@ -35,3 +35,12 @@ BEGIN
MENUITEM "內容", IDM_PROPERTIES
END
END
/* Strings */
STRINGTABLE
BEGIN
IDS_CPLNAME "安全地移除硬體"
IDS_CPLDESCRIPTION "Safely unplug or eject devices from your computer."
END