https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ecfd01eefc430876a95cb…
commit ecfd01eefc430876a95cbaca595d2f2e6f52a215
Author: Stanislav Motylkov <x86corez(a)gmail.com>
AuthorDate: Sat Jan 15 02:18:04 2022 +0300
Commit: Stanislav Motylkov <x86corez(a)gmail.com>
CommitDate: Sat Jan 15 02:22:11 2022 +0300
[SYSDM] Make file browse filter string translatable
Addendum to e58b4a49. CORE-11733
---
dll/cpl/sysdm/environment.c | 5 ++++-
dll/cpl/sysdm/lang/bg-BG.rc | 1 +
dll/cpl/sysdm/lang/cs-CZ.rc | 1 +
dll/cpl/sysdm/lang/da-DK.rc | 1 +
dll/cpl/sysdm/lang/de-DE.rc | 1 +
dll/cpl/sysdm/lang/el-GR.rc | 1 +
dll/cpl/sysdm/lang/en-US.rc | 1 +
dll/cpl/sysdm/lang/es-ES.rc | 1 +
dll/cpl/sysdm/lang/fr-FR.rc | 1 +
dll/cpl/sysdm/lang/he-IL.rc | 1 +
dll/cpl/sysdm/lang/hu-HU.rc | 1 +
dll/cpl/sysdm/lang/id-ID.rc | 1 +
dll/cpl/sysdm/lang/it-IT.rc | 1 +
dll/cpl/sysdm/lang/ja-JP.rc | 1 +
dll/cpl/sysdm/lang/nl-NL.rc | 1 +
dll/cpl/sysdm/lang/no-NO.rc | 1 +
dll/cpl/sysdm/lang/pl-PL.rc | 1 +
dll/cpl/sysdm/lang/pt-PT.rc | 1 +
dll/cpl/sysdm/lang/ro-RO.rc | 1 +
dll/cpl/sysdm/lang/ru-RU.rc | 1 +
dll/cpl/sysdm/lang/sk-SK.rc | 1 +
dll/cpl/sysdm/lang/sq-AL.rc | 1 +
dll/cpl/sysdm/lang/sv-SE.rc | 1 +
dll/cpl/sysdm/lang/tr-TR.rc | 1 +
dll/cpl/sysdm/lang/uk-UA.rc | 1 +
dll/cpl/sysdm/lang/zh-CN.rc | 1 +
dll/cpl/sysdm/lang/zh-HK.rc | 1 +
dll/cpl/sysdm/lang/zh-TW.rc | 1 +
dll/cpl/sysdm/resource.h | 1 +
29 files changed, 32 insertions(+), 1 deletion(-)
diff --git a/dll/cpl/sysdm/environment.c b/dll/cpl/sysdm/environment.c
index 549a41ecf85..cf744ce3319 100644
--- a/dll/cpl/sysdm/environment.c
+++ b/dll/cpl/sysdm/environment.c
@@ -304,13 +304,16 @@ static VOID
BrowseRequiredFile(HWND hwndDlg)
{
OPENFILENAME ofn;
+ TCHAR szFilter[MAX_STR_LENGTH] = _T("");
TCHAR szFile[MAX_PATH] = _T("");
+ LoadString(hApplet, IDS_FILE_BROWSE_FILTER, szFilter, _countof(szFilter));
+
ZeroMemory(&ofn, sizeof(ofn));
ofn.lStructSize = sizeof(ofn);
ofn.hwndOwner = hwndDlg;
- ofn.lpstrFilter = _T("All Files (*.*)\0*.*\0");
+ ofn.lpstrFilter = szFilter;
ofn.lpstrFile = szFile;
ofn.nMaxFile = _countof(szFile);
ofn.Flags = OFN_EXPLORER | OFN_FILEMUSTEXIST | OFN_HIDEREADONLY;
diff --git a/dll/cpl/sysdm/lang/bg-BG.rc b/dll/cpl/sysdm/lang/bg-BG.rc
index 7cef011b14a..c92e69037d3 100644
--- a/dll/cpl/sysdm/lang/bg-BG.rc
+++ b/dll/cpl/sysdm/lang/bg-BG.rc
@@ -369,4 +369,5 @@ BEGIN
IDS_HWPROFILE_WARNING "Warning"
IDS_ENVIRONMENT_WARNING "Any changes that have been done will be discarded and
the variable's value will be edited as text."
IDS_ENVIRONMENT_WARNING_TITLE "System Properties"
+ IDS_FILE_BROWSE_FILTER "All Files (*.*)\0*.*\0"
END
diff --git a/dll/cpl/sysdm/lang/cs-CZ.rc b/dll/cpl/sysdm/lang/cs-CZ.rc
index df664763a8a..8793f8a2c4f 100644
--- a/dll/cpl/sysdm/lang/cs-CZ.rc
+++ b/dll/cpl/sysdm/lang/cs-CZ.rc
@@ -374,4 +374,5 @@ BEGIN
IDS_HWPROFILE_WARNING "Varování"
IDS_ENVIRONMENT_WARNING "Any changes that have been done will be discarded and
the variable's value will be edited as text."
IDS_ENVIRONMENT_WARNING_TITLE "System Properties"
+ IDS_FILE_BROWSE_FILTER "All Files (*.*)\0*.*\0"
END
diff --git a/dll/cpl/sysdm/lang/da-DK.rc b/dll/cpl/sysdm/lang/da-DK.rc
index 79abbbd9ff2..b5d597f26c0 100644
--- a/dll/cpl/sysdm/lang/da-DK.rc
+++ b/dll/cpl/sysdm/lang/da-DK.rc
@@ -369,4 +369,5 @@ BEGIN
IDS_HWPROFILE_WARNING "Warning"
IDS_ENVIRONMENT_WARNING "Any changes that have been done will be discarded and
the variable's value will be edited as text."
IDS_ENVIRONMENT_WARNING_TITLE "System Properties"
+ IDS_FILE_BROWSE_FILTER "All Files (*.*)\0*.*\0"
END
diff --git a/dll/cpl/sysdm/lang/de-DE.rc b/dll/cpl/sysdm/lang/de-DE.rc
index b7849dc7490..05840331831 100644
--- a/dll/cpl/sysdm/lang/de-DE.rc
+++ b/dll/cpl/sysdm/lang/de-DE.rc
@@ -378,4 +378,5 @@ BEGIN
IDS_HWPROFILE_WARNING "Warnung"
IDS_ENVIRONMENT_WARNING "Any changes that have been done will be discarded and
the variable's value will be edited as text."
IDS_ENVIRONMENT_WARNING_TITLE "System Properties"
+ IDS_FILE_BROWSE_FILTER "All Files (*.*)\0*.*\0"
END
diff --git a/dll/cpl/sysdm/lang/el-GR.rc b/dll/cpl/sysdm/lang/el-GR.rc
index a0b45d5af8b..626f52e433d 100644
--- a/dll/cpl/sysdm/lang/el-GR.rc
+++ b/dll/cpl/sysdm/lang/el-GR.rc
@@ -369,4 +369,5 @@ BEGIN
IDS_HWPROFILE_WARNING "Warning"
IDS_ENVIRONMENT_WARNING "Any changes that have been done will be discarded and
the variable's value will be edited as text."
IDS_ENVIRONMENT_WARNING_TITLE "System Properties"
+ IDS_FILE_BROWSE_FILTER "All Files (*.*)\0*.*\0"
END
diff --git a/dll/cpl/sysdm/lang/en-US.rc b/dll/cpl/sysdm/lang/en-US.rc
index 53cab24d0c9..2d23c1b8596 100644
--- a/dll/cpl/sysdm/lang/en-US.rc
+++ b/dll/cpl/sysdm/lang/en-US.rc
@@ -369,4 +369,5 @@ BEGIN
IDS_HWPROFILE_WARNING "Warning"
IDS_ENVIRONMENT_WARNING "Any changes that have been done will be discarded and
the variable's value will be edited as text."
IDS_ENVIRONMENT_WARNING_TITLE "System Properties"
+ IDS_FILE_BROWSE_FILTER "All Files (*.*)\0*.*\0"
END
diff --git a/dll/cpl/sysdm/lang/es-ES.rc b/dll/cpl/sysdm/lang/es-ES.rc
index ef2ae107961..2405d22cf6f 100644
--- a/dll/cpl/sysdm/lang/es-ES.rc
+++ b/dll/cpl/sysdm/lang/es-ES.rc
@@ -371,4 +371,5 @@ BEGIN
IDS_HWPROFILE_WARNING "Advertencia"
IDS_ENVIRONMENT_WARNING "Cualquier cambio será descartado y el valor de la
variable será editado como texto."
IDS_ENVIRONMENT_WARNING_TITLE "Propiedades del Sistema"
+ IDS_FILE_BROWSE_FILTER "All Files (*.*)\0*.*\0"
END
diff --git a/dll/cpl/sysdm/lang/fr-FR.rc b/dll/cpl/sysdm/lang/fr-FR.rc
index 77b771bac52..7f2560b5da5 100644
--- a/dll/cpl/sysdm/lang/fr-FR.rc
+++ b/dll/cpl/sysdm/lang/fr-FR.rc
@@ -369,4 +369,5 @@ BEGIN
IDS_HWPROFILE_WARNING "Attention"
IDS_ENVIRONMENT_WARNING "Any changes that have been done will be discarded and
the variable's value will be edited as text."
IDS_ENVIRONMENT_WARNING_TITLE "System Properties"
+ IDS_FILE_BROWSE_FILTER "All Files (*.*)\0*.*\0"
END
diff --git a/dll/cpl/sysdm/lang/he-IL.rc b/dll/cpl/sysdm/lang/he-IL.rc
index 0e12567c5b5..dfbbcc5382d 100644
--- a/dll/cpl/sysdm/lang/he-IL.rc
+++ b/dll/cpl/sysdm/lang/he-IL.rc
@@ -371,4 +371,5 @@ BEGIN
IDS_HWPROFILE_WARNING "Warning"
IDS_ENVIRONMENT_WARNING "Any changes that have been done will be discarded and
the variable's value will be edited as text."
IDS_ENVIRONMENT_WARNING_TITLE "System Properties"
+ IDS_FILE_BROWSE_FILTER "All Files (*.*)\0*.*\0"
END
diff --git a/dll/cpl/sysdm/lang/hu-HU.rc b/dll/cpl/sysdm/lang/hu-HU.rc
index 1b7203e8d5b..e0c263b767c 100644
--- a/dll/cpl/sysdm/lang/hu-HU.rc
+++ b/dll/cpl/sysdm/lang/hu-HU.rc
@@ -371,4 +371,5 @@ BEGIN
IDS_HWPROFILE_WARNING "Figyelmeztetés"
IDS_ENVIRONMENT_WARNING "Any changes that have been done will be discarded and
the variable's value will be edited as text."
IDS_ENVIRONMENT_WARNING_TITLE "System Properties"
+ IDS_FILE_BROWSE_FILTER "All Files (*.*)\0*.*\0"
END
diff --git a/dll/cpl/sysdm/lang/id-ID.rc b/dll/cpl/sysdm/lang/id-ID.rc
index e1dbffacb58..78ec4391ea8 100644
--- a/dll/cpl/sysdm/lang/id-ID.rc
+++ b/dll/cpl/sysdm/lang/id-ID.rc
@@ -369,4 +369,5 @@ BEGIN
IDS_HWPROFILE_WARNING "Peringatan"
IDS_ENVIRONMENT_WARNING "Any changes that have been done will be discarded and
the variable's value will be edited as text."
IDS_ENVIRONMENT_WARNING_TITLE "System Properties"
+ IDS_FILE_BROWSE_FILTER "All Files (*.*)\0*.*\0"
END
diff --git a/dll/cpl/sysdm/lang/it-IT.rc b/dll/cpl/sysdm/lang/it-IT.rc
index 49f0936a233..e37b43ad088 100644
--- a/dll/cpl/sysdm/lang/it-IT.rc
+++ b/dll/cpl/sysdm/lang/it-IT.rc
@@ -369,4 +369,5 @@ BEGIN
IDS_HWPROFILE_WARNING "Warning"
IDS_ENVIRONMENT_WARNING "Any changes that have been done will be discarded and
the variable's value will be edited as text."
IDS_ENVIRONMENT_WARNING_TITLE "System Properties"
+ IDS_FILE_BROWSE_FILTER "All Files (*.*)\0*.*\0"
END
diff --git a/dll/cpl/sysdm/lang/ja-JP.rc b/dll/cpl/sysdm/lang/ja-JP.rc
index 921200c1771..ee627b7c53a 100644
--- a/dll/cpl/sysdm/lang/ja-JP.rc
+++ b/dll/cpl/sysdm/lang/ja-JP.rc
@@ -369,4 +369,5 @@ BEGIN
IDS_HWPROFILE_WARNING "警告"
IDS_ENVIRONMENT_WARNING "Any changes that have been done will be discarded and
the variable's value will be edited as text."
IDS_ENVIRONMENT_WARNING_TITLE "System Properties"
+ IDS_FILE_BROWSE_FILTER "All Files (*.*)\0*.*\0"
END
diff --git a/dll/cpl/sysdm/lang/nl-NL.rc b/dll/cpl/sysdm/lang/nl-NL.rc
index 09e9e7cf789..dddbec1b8a9 100644
--- a/dll/cpl/sysdm/lang/nl-NL.rc
+++ b/dll/cpl/sysdm/lang/nl-NL.rc
@@ -369,4 +369,5 @@ BEGIN
IDS_HWPROFILE_WARNING "Warning"
IDS_ENVIRONMENT_WARNING "Any changes that have been done will be discarded and
the variable's value will be edited as text."
IDS_ENVIRONMENT_WARNING_TITLE "System Properties"
+ IDS_FILE_BROWSE_FILTER "All Files (*.*)\0*.*\0"
END
diff --git a/dll/cpl/sysdm/lang/no-NO.rc b/dll/cpl/sysdm/lang/no-NO.rc
index 37bc41b2435..2ad7297d27b 100644
--- a/dll/cpl/sysdm/lang/no-NO.rc
+++ b/dll/cpl/sysdm/lang/no-NO.rc
@@ -369,4 +369,5 @@ BEGIN
IDS_HWPROFILE_WARNING "Warning"
IDS_ENVIRONMENT_WARNING "Any changes that have been done will be discarded and
the variable's value will be edited as text."
IDS_ENVIRONMENT_WARNING_TITLE "System Properties"
+ IDS_FILE_BROWSE_FILTER "All Files (*.*)\0*.*\0"
END
diff --git a/dll/cpl/sysdm/lang/pl-PL.rc b/dll/cpl/sysdm/lang/pl-PL.rc
index f624cd15b83..f6d6541f09a 100644
--- a/dll/cpl/sysdm/lang/pl-PL.rc
+++ b/dll/cpl/sysdm/lang/pl-PL.rc
@@ -378,4 +378,5 @@ BEGIN
IDS_HWPROFILE_WARNING "Uwaga"
IDS_ENVIRONMENT_WARNING "Any changes that have been done will be discarded and
the variable's value will be edited as text."
IDS_ENVIRONMENT_WARNING_TITLE "System Properties"
+ IDS_FILE_BROWSE_FILTER "All Files (*.*)\0*.*\0"
END
diff --git a/dll/cpl/sysdm/lang/pt-PT.rc b/dll/cpl/sysdm/lang/pt-PT.rc
index b3e0942e310..1f873d9f837 100644
--- a/dll/cpl/sysdm/lang/pt-PT.rc
+++ b/dll/cpl/sysdm/lang/pt-PT.rc
@@ -373,4 +373,5 @@ BEGIN
IDS_HWPROFILE_WARNING "Aviso"
IDS_ENVIRONMENT_WARNING "Any changes that have been done will be discarded and
the variable's value will be edited as text."
IDS_ENVIRONMENT_WARNING_TITLE "System Properties"
+ IDS_FILE_BROWSE_FILTER "All Files (*.*)\0*.*\0"
END
diff --git a/dll/cpl/sysdm/lang/ro-RO.rc b/dll/cpl/sysdm/lang/ro-RO.rc
index 9232afe8c3d..795fa030503 100644
--- a/dll/cpl/sysdm/lang/ro-RO.rc
+++ b/dll/cpl/sysdm/lang/ro-RO.rc
@@ -378,4 +378,5 @@ BEGIN
IDS_HWPROFILE_WARNING "Avertisment"
IDS_ENVIRONMENT_WARNING "Any changes that have been done will be discarded and
the variable's value will be edited as text."
IDS_ENVIRONMENT_WARNING_TITLE "System Properties"
+ IDS_FILE_BROWSE_FILTER "All Files (*.*)\0*.*\0"
END
diff --git a/dll/cpl/sysdm/lang/ru-RU.rc b/dll/cpl/sysdm/lang/ru-RU.rc
index 4858b3d712c..daaa4c0f703 100644
--- a/dll/cpl/sysdm/lang/ru-RU.rc
+++ b/dll/cpl/sysdm/lang/ru-RU.rc
@@ -369,4 +369,5 @@ BEGIN
IDS_HWPROFILE_WARNING "Внимание"
IDS_ENVIRONMENT_WARNING "Any changes that have been done will be discarded and
the variable's value will be edited as text."
IDS_ENVIRONMENT_WARNING_TITLE "System Properties"
+ IDS_FILE_BROWSE_FILTER "All Files (*.*)\0*.*\0"
END
diff --git a/dll/cpl/sysdm/lang/sk-SK.rc b/dll/cpl/sysdm/lang/sk-SK.rc
index cb4ad8370f0..dbf6d8a8416 100644
--- a/dll/cpl/sysdm/lang/sk-SK.rc
+++ b/dll/cpl/sysdm/lang/sk-SK.rc
@@ -377,4 +377,5 @@ BEGIN
IDS_HWPROFILE_WARNING "Warning"
IDS_ENVIRONMENT_WARNING "Any changes that have been done will be discarded and
the variable's value will be edited as text."
IDS_ENVIRONMENT_WARNING_TITLE "System Properties"
+ IDS_FILE_BROWSE_FILTER "All Files (*.*)\0*.*\0"
END
diff --git a/dll/cpl/sysdm/lang/sq-AL.rc b/dll/cpl/sysdm/lang/sq-AL.rc
index d01da1df434..7dbd5ef8218 100644
--- a/dll/cpl/sysdm/lang/sq-AL.rc
+++ b/dll/cpl/sysdm/lang/sq-AL.rc
@@ -369,4 +369,5 @@ BEGIN
IDS_HWPROFILE_WARNING "Warning"
IDS_ENVIRONMENT_WARNING "Any changes that have been done will be discarded and
the variable's value will be edited as text."
IDS_ENVIRONMENT_WARNING_TITLE "System Properties"
+ IDS_FILE_BROWSE_FILTER "All Files (*.*)\0*.*\0"
END
diff --git a/dll/cpl/sysdm/lang/sv-SE.rc b/dll/cpl/sysdm/lang/sv-SE.rc
index 8b2cdcac48f..eb5fe883e7e 100644
--- a/dll/cpl/sysdm/lang/sv-SE.rc
+++ b/dll/cpl/sysdm/lang/sv-SE.rc
@@ -371,4 +371,5 @@ BEGIN
IDS_HWPROFILE_WARNING "Warning"
IDS_ENVIRONMENT_WARNING "Any changes that have been done will be discarded and
the variable's value will be edited as text."
IDS_ENVIRONMENT_WARNING_TITLE "System Properties"
+ IDS_FILE_BROWSE_FILTER "All Files (*.*)\0*.*\0"
END
diff --git a/dll/cpl/sysdm/lang/tr-TR.rc b/dll/cpl/sysdm/lang/tr-TR.rc
index a81ad6d1260..61712ccb847 100644
--- a/dll/cpl/sysdm/lang/tr-TR.rc
+++ b/dll/cpl/sysdm/lang/tr-TR.rc
@@ -371,4 +371,5 @@ BEGIN
IDS_HWPROFILE_WARNING "Uyarı"
IDS_ENVIRONMENT_WARNING "Any changes that have been done will be discarded and
the variable's value will be edited as text."
IDS_ENVIRONMENT_WARNING_TITLE "System Properties"
+ IDS_FILE_BROWSE_FILTER "All Files (*.*)\0*.*\0"
END
diff --git a/dll/cpl/sysdm/lang/uk-UA.rc b/dll/cpl/sysdm/lang/uk-UA.rc
index e9cf65385fb..46f13090219 100644
--- a/dll/cpl/sysdm/lang/uk-UA.rc
+++ b/dll/cpl/sysdm/lang/uk-UA.rc
@@ -377,4 +377,5 @@ BEGIN
IDS_HWPROFILE_WARNING "Увага"
IDS_ENVIRONMENT_WARNING "Any changes that have been done will be discarded and
the variable's value will be edited as text."
IDS_ENVIRONMENT_WARNING_TITLE "System Properties"
+ IDS_FILE_BROWSE_FILTER "All Files (*.*)\0*.*\0"
END
diff --git a/dll/cpl/sysdm/lang/zh-CN.rc b/dll/cpl/sysdm/lang/zh-CN.rc
index 6105149fabb..1a2b4022f25 100644
--- a/dll/cpl/sysdm/lang/zh-CN.rc
+++ b/dll/cpl/sysdm/lang/zh-CN.rc
@@ -372,4 +372,5 @@ BEGIN
IDS_HWPROFILE_WARNING "警告"
IDS_ENVIRONMENT_WARNING "Any changes that have been done will be discarded and
the variable's value will be edited as text."
IDS_ENVIRONMENT_WARNING_TITLE "System Properties"
+ IDS_FILE_BROWSE_FILTER "All Files (*.*)\0*.*\0"
END
diff --git a/dll/cpl/sysdm/lang/zh-HK.rc b/dll/cpl/sysdm/lang/zh-HK.rc
index 3ef6c76d98d..6741e525783 100644
--- a/dll/cpl/sysdm/lang/zh-HK.rc
+++ b/dll/cpl/sysdm/lang/zh-HK.rc
@@ -352,4 +352,5 @@ BEGIN
IDS_HWPROFILE_ALREADY_IN_USE "設定檔名稱已在使用。"
IDS_HWPROFILE_PROFILE "設定檔"
IDS_HWPROFILE_WARNING "警告"
+ IDS_FILE_BROWSE_FILTER "All Files (*.*)\0*.*\0"
END
diff --git a/dll/cpl/sysdm/lang/zh-TW.rc b/dll/cpl/sysdm/lang/zh-TW.rc
index 25738276722..c10ab4ed562 100644
--- a/dll/cpl/sysdm/lang/zh-TW.rc
+++ b/dll/cpl/sysdm/lang/zh-TW.rc
@@ -378,4 +378,5 @@ BEGIN
IDS_HWPROFILE_WARNING "警告"
IDS_ENVIRONMENT_WARNING "您所做的任何更改都將被丟棄,變數的值將編輯為文字。"
IDS_ENVIRONMENT_WARNING_TITLE "系統內容"
+ IDS_FILE_BROWSE_FILTER "All Files (*.*)\0*.*\0"
END
diff --git a/dll/cpl/sysdm/resource.h b/dll/cpl/sysdm/resource.h
index 4fc0fa8ae79..4490a7d4eb2 100644
--- a/dll/cpl/sysdm/resource.h
+++ b/dll/cpl/sysdm/resource.h
@@ -65,6 +65,7 @@
#define IDS_ENVIRONMENT_WARNING 150
#define IDS_ENVIRONMENT_WARNING_TITLE 151
+#define IDS_FILE_BROWSE_FILTER 152
/* Propsheet - general */
#define IDD_PROPPAGEGENERAL 100