https://git.reactos.org/?p=reactos.git;a=commitdiff;h=21824a2596ba2be2723bea...
commit 21824a2596ba2be2723bea3448e05938c5f874cd Author: Thamatip Chitpong tangaming123456@outlook.com AuthorDate: Thu Sep 15 03:12:50 2022 +0700 Commit: GitHub noreply@github.com CommitDate: Wed Sep 14 23:12:50 2022 +0300
[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. --- dll/cpl/hotplug/hotplug.c | 10 ++++++++++ dll/cpl/hotplug/lang/de-DE.rc | 11 ++++++++++- dll/cpl/hotplug/lang/en-US.rc | 11 ++++++++++- dll/cpl/hotplug/lang/es-ES.rc | 11 ++++++++++- dll/cpl/hotplug/lang/id-ID.rc | 11 ++++++++++- dll/cpl/hotplug/lang/ja-JP.rc | 11 ++++++++++- dll/cpl/hotplug/lang/pl-PL.rc | 11 ++++++++++- dll/cpl/hotplug/lang/pt-PT.rc | 11 ++++++++++- dll/cpl/hotplug/lang/ru-RU.rc | 11 ++++++++++- dll/cpl/hotplug/lang/tr-TR.rc | 11 ++++++++++- dll/cpl/hotplug/lang/zh-HK.rc | 11 ++++++++++- dll/cpl/hotplug/lang/zh-TW.rc | 11 ++++++++++- 12 files changed, 120 insertions(+), 11 deletions(-)
diff --git a/dll/cpl/hotplug/hotplug.c b/dll/cpl/hotplug/hotplug.c index acb872883b7..f3ee96ab694 100644 --- a/dll/cpl/hotplug/hotplug.c +++ b/dll/cpl/hotplug/hotplug.c @@ -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);
diff --git a/dll/cpl/hotplug/lang/de-DE.rc b/dll/cpl/hotplug/lang/de-DE.rc index 3d5157eacfc..32ae783b3d4 100644 --- a/dll/cpl/hotplug/lang/de-DE.rc +++ b/dll/cpl/hotplug/lang/de-DE.rc @@ -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 diff --git a/dll/cpl/hotplug/lang/en-US.rc b/dll/cpl/hotplug/lang/en-US.rc index e2b89d0cc6f..f0728860bba 100644 --- a/dll/cpl/hotplug/lang/en-US.rc +++ b/dll/cpl/hotplug/lang/en-US.rc @@ -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 diff --git a/dll/cpl/hotplug/lang/es-ES.rc b/dll/cpl/hotplug/lang/es-ES.rc index 7eaeb6e0a61..47165e847b7 100644 --- a/dll/cpl/hotplug/lang/es-ES.rc +++ b/dll/cpl/hotplug/lang/es-ES.rc @@ -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 diff --git a/dll/cpl/hotplug/lang/id-ID.rc b/dll/cpl/hotplug/lang/id-ID.rc index 9373f36fc64..29f9c5994fe 100644 --- a/dll/cpl/hotplug/lang/id-ID.rc +++ b/dll/cpl/hotplug/lang/id-ID.rc @@ -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 diff --git a/dll/cpl/hotplug/lang/ja-JP.rc b/dll/cpl/hotplug/lang/ja-JP.rc index 3bc80c5bb2e..25baa56a559 100644 --- a/dll/cpl/hotplug/lang/ja-JP.rc +++ b/dll/cpl/hotplug/lang/ja-JP.rc @@ -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 diff --git a/dll/cpl/hotplug/lang/pl-PL.rc b/dll/cpl/hotplug/lang/pl-PL.rc index 15d2e5848f2..2c13620fd6f 100644 --- a/dll/cpl/hotplug/lang/pl-PL.rc +++ b/dll/cpl/hotplug/lang/pl-PL.rc @@ -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 diff --git a/dll/cpl/hotplug/lang/pt-PT.rc b/dll/cpl/hotplug/lang/pt-PT.rc index 50e56abe08b..ae7db1f835e 100644 --- a/dll/cpl/hotplug/lang/pt-PT.rc +++ b/dll/cpl/hotplug/lang/pt-PT.rc @@ -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 diff --git a/dll/cpl/hotplug/lang/ru-RU.rc b/dll/cpl/hotplug/lang/ru-RU.rc index 005bbf14483..3d1a2e7fd68 100644 --- a/dll/cpl/hotplug/lang/ru-RU.rc +++ b/dll/cpl/hotplug/lang/ru-RU.rc @@ -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 diff --git a/dll/cpl/hotplug/lang/tr-TR.rc b/dll/cpl/hotplug/lang/tr-TR.rc index 02fd49c826e..b6297dc5c62 100644 --- a/dll/cpl/hotplug/lang/tr-TR.rc +++ b/dll/cpl/hotplug/lang/tr-TR.rc @@ -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 diff --git a/dll/cpl/hotplug/lang/zh-HK.rc b/dll/cpl/hotplug/lang/zh-HK.rc index a8d48e983f0..f004ed02c18 100644 --- a/dll/cpl/hotplug/lang/zh-HK.rc +++ b/dll/cpl/hotplug/lang/zh-HK.rc @@ -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 diff --git a/dll/cpl/hotplug/lang/zh-TW.rc b/dll/cpl/hotplug/lang/zh-TW.rc index c50b0502779..afbdbf4b4d6 100644 --- a/dll/cpl/hotplug/lang/zh-TW.rc +++ b/dll/cpl/hotplug/lang/zh-TW.rc @@ -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