https://git.reactos.org/?p=reactos.git;a=commitdiff;h=216b702fb691a18cc60be…
commit 216b702fb691a18cc60bedd2867c1085be2912bf
Author: Kyle Katarn <contact(a)kcsoftwares.com>
AuthorDate: Fri Apr 24 16:27:07 2020 +0200
Commit: GitHub <noreply(a)github.com>
CommitDate: Fri Apr 24 17:27:07 2020 +0300
[INTL] Translate hardcoded string (#2654)
CORE-16951
---
dll/cpl/intl/advanced.c | 3 +--
dll/cpl/intl/lang/bg-BG.rc | 2 +-
dll/cpl/intl/lang/cs-CZ.rc | 1 +
dll/cpl/intl/lang/de-DE.rc | 1 +
dll/cpl/intl/lang/en-US.rc | 1 +
dll/cpl/intl/lang/es-ES.rc | 2 +-
dll/cpl/intl/lang/fr-FR.rc | 2 +-
dll/cpl/intl/lang/he-IL.rc | 2 +-
dll/cpl/intl/lang/id-ID.rc | 1 +
dll/cpl/intl/lang/it-IT.rc | 2 +-
dll/cpl/intl/lang/ja-JP.rc | 1 +
dll/cpl/intl/lang/no-NO.rc | 2 +-
dll/cpl/intl/lang/pl-PL.rc | 1 +
dll/cpl/intl/lang/pt-BR.rc | 1 +
dll/cpl/intl/lang/pt-PT.rc | 2 +-
dll/cpl/intl/lang/ro-RO.rc | 1 +
dll/cpl/intl/lang/ru-RU.rc | 1 +
dll/cpl/intl/lang/sk-SK.rc | 2 +-
dll/cpl/intl/lang/sq-AL.rc | 1 +
dll/cpl/intl/lang/tr-TR.rc | 1 +
dll/cpl/intl/lang/uk-UA.rc | 1 +
dll/cpl/intl/lang/zh-CN.rc | 2 +-
dll/cpl/intl/lang/zh-TW.rc | 2 +-
dll/cpl/intl/resource.h | 2 +-
24 files changed, 24 insertions(+), 13 deletions(-)
diff --git a/dll/cpl/intl/advanced.c b/dll/cpl/intl/advanced.c
index dd42d3fc70e..ddd1c09e901 100644
--- a/dll/cpl/intl/advanced.c
+++ b/dll/cpl/intl/advanced.c
@@ -316,8 +316,7 @@ SaveFontSubstitutionSettings(
if (!SetupInstallFromInfSectionW(hwnd, hFontInf, szSection, SPINST_REGISTRY &
~SPINST_FILES,
NULL, NULL, 0, NULL, NULL, NULL, NULL))
{
- MessageBoxW(hwnd, L"Unable to install a new language for programs don't
support unicode!",
- NULL, MB_ICONERROR | MB_OK);
+ PrintErrorMsgBox(IDS_ERROR_UNICODE);
}
SetupCloseInfFile(hFontInf);
diff --git a/dll/cpl/intl/lang/bg-BG.rc b/dll/cpl/intl/lang/bg-BG.rc
index c5c278d9e58..b375bb57e8e 100644
--- a/dll/cpl/intl/lang/bg-BG.rc
+++ b/dll/cpl/intl/lang/bg-BG.rc
@@ -213,5 +213,5 @@ BEGIN
IDS_ERROR_NLS_KEY_REG "Problem opening key:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\Language"
IDS_ERROR_NLS_CODE_REG "Problem opening key:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\CodePage"
IDS_ERROR_INPUT_DLL "Unable to start input.dll"
+ IDS_ERROR_UNICODE "Unable to install a new language for programs don't
support unicode!"
END
-
diff --git a/dll/cpl/intl/lang/cs-CZ.rc b/dll/cpl/intl/lang/cs-CZ.rc
index df203eecfea..4d3c826742c 100644
--- a/dll/cpl/intl/lang/cs-CZ.rc
+++ b/dll/cpl/intl/lang/cs-CZ.rc
@@ -218,4 +218,5 @@ BEGIN
IDS_ERROR_NLS_KEY_REG "Problém při otevírání klíče:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\Language"
IDS_ERROR_NLS_CODE_REG "Problém při otevírání klíče:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\CodePage"
IDS_ERROR_INPUT_DLL "Nebylo možné spustit input.dll"
+ IDS_ERROR_UNICODE "Unable to install a new language for programs don't
support unicode!"
END
diff --git a/dll/cpl/intl/lang/de-DE.rc b/dll/cpl/intl/lang/de-DE.rc
index 5cae8fd0375..16471f8b08a 100644
--- a/dll/cpl/intl/lang/de-DE.rc
+++ b/dll/cpl/intl/lang/de-DE.rc
@@ -214,4 +214,5 @@ BEGIN
IDS_ERROR_NLS_KEY_REG "Der Schlüssel
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\Language konnte nicht geöffnet
werden."
IDS_ERROR_NLS_CODE_REG "Der Schlüssel
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\CodePage konnte nicht geöffnet
werden."
IDS_ERROR_INPUT_DLL "Die Datei input.dll konnte nicht geladen werden."
+ IDS_ERROR_UNICODE "Unable to install a new language for programs don't
support unicode!"
END
diff --git a/dll/cpl/intl/lang/en-US.rc b/dll/cpl/intl/lang/en-US.rc
index 3951b3e6705..62b2bd1b315 100644
--- a/dll/cpl/intl/lang/en-US.rc
+++ b/dll/cpl/intl/lang/en-US.rc
@@ -213,4 +213,5 @@ BEGIN
IDS_ERROR_NLS_KEY_REG "Problem opening key:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\Language"
IDS_ERROR_NLS_CODE_REG "Problem opening key:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\CodePage"
IDS_ERROR_INPUT_DLL "Unable to start input.dll"
+ IDS_ERROR_UNICODE "Unable to install a new language for programs don't
support unicode!"
END
diff --git a/dll/cpl/intl/lang/es-ES.rc b/dll/cpl/intl/lang/es-ES.rc
index 7433a7bcf13..0d19b4dc4e1 100644
--- a/dll/cpl/intl/lang/es-ES.rc
+++ b/dll/cpl/intl/lang/es-ES.rc
@@ -215,5 +215,5 @@ BEGIN
IDS_ERROR_NLS_KEY_REG "Hubo un problema al abrir la clave del Registro:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\Language"
IDS_ERROR_NLS_CODE_REG "Hubo un problema al abrir la clave del Registro:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\CodePage"
IDS_ERROR_INPUT_DLL "No se pudo iniciar input.dll"
+ IDS_ERROR_UNICODE "Unable to install a new language for programs don't
support unicode!"
END
-
diff --git a/dll/cpl/intl/lang/fr-FR.rc b/dll/cpl/intl/lang/fr-FR.rc
index bd29574e6a8..1a7ba32b359 100644
--- a/dll/cpl/intl/lang/fr-FR.rc
+++ b/dll/cpl/intl/lang/fr-FR.rc
@@ -215,5 +215,5 @@ BEGIN
IDS_ERROR_NLS_KEY_REG "Problem opening key:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\Language"
IDS_ERROR_NLS_CODE_REG "Problem opening key:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\CodePage"
IDS_ERROR_INPUT_DLL "Unable to start input.dll"
+ IDS_ERROR_UNICODE "Impossible d'installer une nouvelle langue pour les
programmes ne supportant pas l'unicode!"
END
-
diff --git a/dll/cpl/intl/lang/he-IL.rc b/dll/cpl/intl/lang/he-IL.rc
index a62ae834423..381925a9224 100644
--- a/dll/cpl/intl/lang/he-IL.rc
+++ b/dll/cpl/intl/lang/he-IL.rc
@@ -215,5 +215,5 @@ BEGIN
IDS_ERROR_NLS_KEY_REG "Problem opening key:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\Language"
IDS_ERROR_NLS_CODE_REG "Problem opening key:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\CodePage"
IDS_ERROR_INPUT_DLL "Unable to start input.dll"
+ IDS_ERROR_UNICODE "Unable to install a new language for programs don't
support unicode!"
END
-
diff --git a/dll/cpl/intl/lang/id-ID.rc b/dll/cpl/intl/lang/id-ID.rc
index 300d42407a6..5d2ff8fcf67 100644
--- a/dll/cpl/intl/lang/id-ID.rc
+++ b/dll/cpl/intl/lang/id-ID.rc
@@ -213,4 +213,5 @@ BEGIN
IDS_ERROR_NLS_KEY_REG "Masalah membuka kunci:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\Language"
IDS_ERROR_NLS_CODE_REG "Masalah membuka kunci:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\CodePage"
IDS_ERROR_INPUT_DLL "Tidak bisa memulai input.dll"
+ IDS_ERROR_UNICODE "Unable to install a new language for programs don't
support unicode!"
END
diff --git a/dll/cpl/intl/lang/it-IT.rc b/dll/cpl/intl/lang/it-IT.rc
index 2d29c423bd0..9547adb4da5 100644
--- a/dll/cpl/intl/lang/it-IT.rc
+++ b/dll/cpl/intl/lang/it-IT.rc
@@ -216,5 +216,5 @@ BEGIN
IDS_ERROR_NLS_KEY_REG "Problem opening key:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\Language"
IDS_ERROR_NLS_CODE_REG "Problem opening key:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\CodePage"
IDS_ERROR_INPUT_DLL "Unable to start input.dll"
+ IDS_ERROR_UNICODE "Unable to install a new language for programs don't
support unicode!"
END
-
diff --git a/dll/cpl/intl/lang/ja-JP.rc b/dll/cpl/intl/lang/ja-JP.rc
index 83e27d5d355..8fdfe5c041b 100644
--- a/dll/cpl/intl/lang/ja-JP.rc
+++ b/dll/cpl/intl/lang/ja-JP.rc
@@ -213,4 +213,5 @@ BEGIN
IDS_ERROR_NLS_KEY_REG "問題の開いているキー:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\Language"
IDS_ERROR_NLS_CODE_REG "問題の開いているキー:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\CodePage"
IDS_ERROR_INPUT_DLL "input.dllを開始できません"
+ IDS_ERROR_UNICODE "Unable to install a new language for programs don't
support unicode!"
END
diff --git a/dll/cpl/intl/lang/no-NO.rc b/dll/cpl/intl/lang/no-NO.rc
index 0e67330ed07..b9fc4345795 100644
--- a/dll/cpl/intl/lang/no-NO.rc
+++ b/dll/cpl/intl/lang/no-NO.rc
@@ -213,5 +213,5 @@ BEGIN
IDS_ERROR_NLS_KEY_REG "Problem opening key:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\Language"
IDS_ERROR_NLS_CODE_REG "Problem opening key:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\CodePage"
IDS_ERROR_INPUT_DLL "Unable to start input.dll"
+ IDS_ERROR_UNICODE "Unable to install a new language for programs don't
support unicode!"
END
-
diff --git a/dll/cpl/intl/lang/pl-PL.rc b/dll/cpl/intl/lang/pl-PL.rc
index e0badd936da..4d5a832b97d 100644
--- a/dll/cpl/intl/lang/pl-PL.rc
+++ b/dll/cpl/intl/lang/pl-PL.rc
@@ -221,4 +221,5 @@ BEGIN
IDS_ERROR_NLS_KEY_REG "Problem z otwarciem klucza:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\Language"
IDS_ERROR_NLS_CODE_REG "Problem z otwarciem klucza:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\CodePage"
IDS_ERROR_INPUT_DLL "Nie można uruchomić input.dll"
+ IDS_ERROR_UNICODE "Unable to install a new language for programs don't
support unicode!"
END
diff --git a/dll/cpl/intl/lang/pt-BR.rc b/dll/cpl/intl/lang/pt-BR.rc
index 585a56d1241..de56be8c0f2 100644
--- a/dll/cpl/intl/lang/pt-BR.rc
+++ b/dll/cpl/intl/lang/pt-BR.rc
@@ -210,4 +210,5 @@ BEGIN
IDS_ERROR_NLS_KEY_REG "Erro ao abrir a chave:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\Language"
IDS_ERROR_NLS_CODE_REG "Erro ao abrir a chave:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\CodePage"
IDS_ERROR_INPUT_DLL "Não foi possível iniciar input.dll"
+ IDS_ERROR_UNICODE "Unable to install a new language for programs don't
support unicode!"
END
diff --git a/dll/cpl/intl/lang/pt-PT.rc b/dll/cpl/intl/lang/pt-PT.rc
index 493602fbef8..45db38c36d0 100644
--- a/dll/cpl/intl/lang/pt-PT.rc
+++ b/dll/cpl/intl/lang/pt-PT.rc
@@ -210,5 +210,5 @@ BEGIN
IDS_ERROR_NLS_KEY_REG "Erro ao abrir a chave:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\Language"
IDS_ERROR_NLS_CODE_REG "Erro ao abrir a chave:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\CodePage"
IDS_ERROR_INPUT_DLL "Não foi possível iniciar input.dll"
+ IDS_ERROR_UNICODE "Unable to install a new language for programs don't
support unicode!"
END
-
diff --git a/dll/cpl/intl/lang/ro-RO.rc b/dll/cpl/intl/lang/ro-RO.rc
index dfc73f1c917..0012f907156 100644
--- a/dll/cpl/intl/lang/ro-RO.rc
+++ b/dll/cpl/intl/lang/ro-RO.rc
@@ -215,4 +215,5 @@ BEGIN
IDS_ERROR_NLS_KEY_REG "Problemă la deschiderea cheii: HKU\\.DEFAULT\\Control
Panel\\International"
IDS_ERROR_NLS_CODE_REG "Problemă la deschiderea cheii: HKU\\.DEFAULT\\Control
Panel\\International"
IDS_ERROR_INPUT_DLL "„input.dll” nu a putut fi încărcat!"
+ IDS_ERROR_UNICODE "Unable to install a new language for programs don't
support unicode!"
END
diff --git a/dll/cpl/intl/lang/ru-RU.rc b/dll/cpl/intl/lang/ru-RU.rc
index 67b7f8cc989..194888c267e 100644
--- a/dll/cpl/intl/lang/ru-RU.rc
+++ b/dll/cpl/intl/lang/ru-RU.rc
@@ -214,4 +214,5 @@ BEGIN
IDS_ERROR_NLS_KEY_REG "Проблема открытия ключа:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\Language"
IDS_ERROR_NLS_CODE_REG "Проблема открытия ключа:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\CodePage"
IDS_ERROR_INPUT_DLL "Не удается запустить input.dll"
+ IDS_ERROR_UNICODE "Unable to install a new language for programs don't
support unicode!"
END
diff --git a/dll/cpl/intl/lang/sk-SK.rc b/dll/cpl/intl/lang/sk-SK.rc
index c200c3b37bc..60d425d827f 100644
--- a/dll/cpl/intl/lang/sk-SK.rc
+++ b/dll/cpl/intl/lang/sk-SK.rc
@@ -219,5 +219,5 @@ BEGIN
IDS_ERROR_NLS_KEY_REG "Problem opening key:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\Language"
IDS_ERROR_NLS_CODE_REG "Problem opening key:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\CodePage"
IDS_ERROR_INPUT_DLL "Unable to start input.dll"
+ IDS_ERROR_UNICODE "Unable to install a new language for programs don't
support unicode!"
END
-
diff --git a/dll/cpl/intl/lang/sq-AL.rc b/dll/cpl/intl/lang/sq-AL.rc
index b36cdb56a19..32bb02ac14c 100644
--- a/dll/cpl/intl/lang/sq-AL.rc
+++ b/dll/cpl/intl/lang/sq-AL.rc
@@ -217,4 +217,5 @@ BEGIN
IDS_ERROR_NLS_KEY_REG "Problem opening key:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\Language"
IDS_ERROR_NLS_CODE_REG "Problem opening key:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\CodePage"
IDS_ERROR_INPUT_DLL "Unable to start input.dll"
+ IDS_ERROR_UNICODE "Unable to install a new language for programs don't
support unicode!"
END
diff --git a/dll/cpl/intl/lang/tr-TR.rc b/dll/cpl/intl/lang/tr-TR.rc
index fc2e4e4ff2d..e879b988923 100644
--- a/dll/cpl/intl/lang/tr-TR.rc
+++ b/dll/cpl/intl/lang/tr-TR.rc
@@ -215,4 +215,5 @@ BEGIN
IDS_ERROR_NLS_KEY_REG "HKU\\.DEFAULT\\Control Panel\\International dizinini
açmada bir sorun oldu."
IDS_ERROR_NLS_CODE_REG "HKU\\.DEFAULT\\Control Panel\\International dizinini
açmada bir sorun oldu."
IDS_ERROR_INPUT_DLL "input.dll başlatılamaz."
+ IDS_ERROR_UNICODE "Unable to install a new language for programs don't
support unicode!"
END
diff --git a/dll/cpl/intl/lang/uk-UA.rc b/dll/cpl/intl/lang/uk-UA.rc
index 80ef1a76215..6ef54af377c 100644
--- a/dll/cpl/intl/lang/uk-UA.rc
+++ b/dll/cpl/intl/lang/uk-UA.rc
@@ -221,4 +221,5 @@ BEGIN
IDS_ERROR_NLS_KEY_REG "Problem opening key:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\Language"
IDS_ERROR_NLS_CODE_REG "Problem opening key:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\CodePage"
IDS_ERROR_INPUT_DLL "Unable to start input.dll"
+ IDS_ERROR_UNICODE "Unable to install a new language for programs don't
support unicode!"
END
diff --git a/dll/cpl/intl/lang/zh-CN.rc b/dll/cpl/intl/lang/zh-CN.rc
index bec6d875d60..51023a58c55 100644
--- a/dll/cpl/intl/lang/zh-CN.rc
+++ b/dll/cpl/intl/lang/zh-CN.rc
@@ -218,5 +218,5 @@ BEGIN
IDS_ERROR_NLS_KEY_REG "问题打开项:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\Language"
IDS_ERROR_NLS_CODE_REG "问题打开项:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\CodePage"
IDS_ERROR_INPUT_DLL "无法启动 input.dll"
+ IDS_ERROR_UNICODE "Unable to install a new language for programs don't
support unicode!"
END
-
diff --git a/dll/cpl/intl/lang/zh-TW.rc b/dll/cpl/intl/lang/zh-TW.rc
index 0a96176b13f..029476928f7 100644
--- a/dll/cpl/intl/lang/zh-TW.rc
+++ b/dll/cpl/intl/lang/zh-TW.rc
@@ -218,5 +218,5 @@ BEGIN
IDS_ERROR_NLS_KEY_REG "問題開啟項:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\Language"
IDS_ERROR_NLS_CODE_REG "問題開啟項:
HKLM\\SYSTEM\\CurrentControlSet\\Control\\NLS\\CodePage"
IDS_ERROR_INPUT_DLL "無法啟動 input.dll"
+ IDS_ERROR_UNICODE "Unable to install a new language for programs don't
support unicode!"
END
-
diff --git a/dll/cpl/intl/resource.h b/dll/cpl/intl/resource.h
index 2e5b759726e..554ab02d2a2 100644
--- a/dll/cpl/intl/resource.h
+++ b/dll/cpl/intl/resource.h
@@ -88,7 +88,7 @@
#define IDS_ERROR_SYMBOL_FORMAT_SHORT 1014
#define IDS_ERROR_SYMBOL_FORMAT_LONG 1015
#define IDS_ERROR_INPUT_DLL 1016
-
+#define IDS_ERROR_UNICODE 1017
#define IDS_APPLY_DEFAULT_TITLE 1100
#define IDS_APPLY_DEFAULT_TEXT 1101