https://git.reactos.org/?p=reactos.git;a=commitdiff;h=5ef3f347ad0410f064171…
commit 5ef3f347ad0410f064171d96e362c645959a1648
Author: Nikita Piatygorskiy <generalhammond16(a)gmail.com>
AuthorDate: Tue Jun 13 14:12:26 2023 +0300
Commit: GitHub <noreply(a)github.com>
CommitDate: Tue Jun 13 14:12:26 2023 +0300
[FONTVIEW] Make hardcoded messages localizable (#5305)
- Move messages from OnInstall procedure to en-US resource file.
- Applied the same changes to all language files, now it's available
for translation into other languages.
CORE-18952
Signed-off-by: Nikita Piatygorskiy <generalhammond16(a)gmail.com>
---
base/applications/fontview/fontview.c | 59 ++++++++++++++++++++++----------
base/applications/fontview/lang/bg-BG.rc | 6 ++++
base/applications/fontview/lang/cs-CZ.rc | 6 ++++
base/applications/fontview/lang/de-DE.rc | 6 ++++
base/applications/fontview/lang/en-US.rc | 6 ++++
base/applications/fontview/lang/es-ES.rc | 6 ++++
base/applications/fontview/lang/fr-FR.rc | 6 ++++
base/applications/fontview/lang/he-IL.rc | 6 ++++
base/applications/fontview/lang/id-ID.rc | 6 ++++
base/applications/fontview/lang/it-IT.rc | 6 ++++
base/applications/fontview/lang/lt-LT.rc | 6 ++++
base/applications/fontview/lang/ms-MY.rc | 6 ++++
base/applications/fontview/lang/no-NO.rc | 6 ++++
base/applications/fontview/lang/pl-PL.rc | 6 ++++
base/applications/fontview/lang/pt-BR.rc | 6 ++++
base/applications/fontview/lang/ro-RO.rc | 6 ++++
base/applications/fontview/lang/ru-RU.rc | 6 ++++
base/applications/fontview/lang/sk-SK.rc | 6 ++++
base/applications/fontview/lang/sq-AL.rc | 6 ++++
base/applications/fontview/lang/sv-SE.rc | 6 ++++
base/applications/fontview/lang/tr-TR.rc | 6 ++++
base/applications/fontview/lang/uk-UA.rc | 6 ++++
base/applications/fontview/lang/zh-CN.rc | 6 ++++
base/applications/fontview/lang/zh-HK.rc | 6 ++++
base/applications/fontview/lang/zh-TW.rc | 6 ++++
base/applications/fontview/resource.h | 16 ++++++---
26 files changed, 195 insertions(+), 24 deletions(-)
diff --git a/base/applications/fontview/fontview.c
b/base/applications/fontview/fontview.c
index da6a2bc5d79..c8dcf32da22 100644
--- a/base/applications/fontview/fontview.c
+++ b/base/applications/fontview/fontview.c
@@ -58,26 +58,52 @@ FormatString(
}
static void
-ErrorMsgBox(HWND hParent, DWORD dwMessageId, ...)
+FormatMsgBox(
+ _In_ HWND hParent,
+ _In_ DWORD dwMessageId,
+ _In_ DWORD dwCaptionId,
+ _In_ UINT uType,
+ _In_ va_list args)
{
HLOCAL hMemCaption = NULL;
HLOCAL hMemText = NULL;
- va_list args;
- va_start(args, dwMessageId);
FormatString(FORMAT_MESSAGE_ALLOCATE_BUFFER,
NULL, dwMessageId, 0, (LPWSTR)&hMemText, 0, &args);
- va_end(args);
-
FormatString(FORMAT_MESSAGE_ALLOCATE_BUFFER,
- NULL, IDS_ERROR, 0, (LPWSTR)&hMemCaption, 0, NULL);
-
- MessageBoxW(hParent, hMemText, hMemCaption, MB_ICONERROR);
+ NULL, dwCaptionId, 0, (LPWSTR)&hMemCaption, 0, NULL);
+ MessageBoxW(hParent, hMemText, hMemCaption, uType);
LocalFree(hMemCaption);
LocalFree(hMemText);
}
+static void
+ErrorMsgBox(
+ HWND hParent,
+ DWORD dwMessageId,
+ ...)
+{
+ va_list args;
+
+ va_start(args, dwMessageId);
+ FormatMsgBox(hParent, dwMessageId, IDS_ERROR, MB_ICONERROR, args);
+ va_end(args);
+}
+
+static void
+SuccessMsgBox(
+ HWND hParent,
+ DWORD dwMessageId,
+ ...)
+{
+ va_list args;
+
+ va_start(args, dwMessageId);
+ FormatMsgBox(hParent, dwMessageId, IDS_SUCCESS, MB_ICONINFORMATION, args);
+ va_end(args);
+}
+
int WINAPI
wWinMain(HINSTANCE hThisInstance,
HINSTANCE hPrevInstance,
@@ -451,7 +477,6 @@ MainWnd_OnInstall(HWND hwnd)
HKEY hKey;
SendDlgItemMessage(hwnd, IDC_DISPLAY, FVM_GETFULLNAME, 64, (LPARAM)szFullName);
-// MessageBoxW(hwnd, szFullName, L"Debug", MB_OK);
/* First, we have to find out if the font still exists */
if (GetFileAttributes(g_fileName) == INVALID_FILE_ATTRIBUTES)
@@ -468,21 +493,17 @@ MainWnd_OnInstall(HWND hwnd)
wcscat(szDestPath, L"\\Fonts\\");
wcscat(szDestPath, pszFileName);
- /* Debug Message */
-// MessageBoxW(hwnd, szDestPath, L"szDestPath", MB_OK);
-// MessageBoxW(hwnd, pszFileName, L"pszFileExt", MB_OK);
-
/* Check if the file already exists */
if (GetFileAttributesW(szDestPath) != INVALID_FILE_ATTRIBUTES)
{
- MessageBoxW(hwnd, L"This font is already installed!", L"Already
Installed", MB_OK);
+ ErrorMsgBox(hwnd, IDS_ERROR_ISINSTALLED);
return 0;
}
/* Copy the font file */
if (!CopyFileW(g_fileName, szDestPath, TRUE))
{
- MessageBoxW(hwnd,L"Failed to copy the font file!", L"File
Error", MB_OK);
+ ErrorMsgBox(hwnd, IDS_ERROR_FONTCPY);
return -1;
}
@@ -494,7 +515,7 @@ MainWnd_OnInstall(HWND hwnd)
&hKey);
if (res != ERROR_SUCCESS)
{
- MessageBoxW(hwnd, L"Failed top open the fonts key!",
L"Debug1", MB_OK);
+ ErrorMsgBox(hwnd, IDS_ERROR_OPENKEY);
return -1;
}
@@ -504,10 +525,10 @@ MainWnd_OnInstall(HWND hwnd)
0,
REG_SZ,
(LPBYTE)pszFileName,
- (wcslen(pszFileName) + 1) * sizeof(WCHAR));
+ (DWORD)(wcslen(pszFileName) + 1) * sizeof(WCHAR));
if (res != ERROR_SUCCESS)
{
- MessageBoxW(hwnd, L"Failed to register the new font!",
L"Debug2", MB_OK);
+ ErrorMsgBox(hwnd, IDS_ERROR_REGISTER);
RegCloseKey(hKey);
return -1;
}
@@ -519,7 +540,7 @@ MainWnd_OnInstall(HWND hwnd)
SendMessageW(HWND_BROADCAST, WM_FONTCHANGE, 0, 0);
/* if all of this goes correctly, message the user about success */
- MessageBoxW(hwnd, L"Font Installation Completed.", L"Success",
MB_OK);
+ SuccessMsgBox(hwnd, IDS_COMPLETED);
return 0;
}
diff --git a/base/applications/fontview/lang/bg-BG.rc
b/base/applications/fontview/lang/bg-BG.rc
index e38905afd6c..d40020e64b5 100644
--- a/base/applications/fontview/lang/bg-BG.rc
+++ b/base/applications/fontview/lang/bg-BG.rc
@@ -10,6 +10,12 @@ BEGIN
IDS_ERROR_NOMEM "Няма достатъчно място за завършване на действието."
IDS_ERROR_NOFONT "%1 не е редовен шрифтов файл."
IDS_ERROR_NOCLASS "Неуспешно изпълнение на класа на прозореца."
+ IDS_ERROR_ISINSTALLED "This font is already installed!"
+ IDS_ERROR_FONTCPY "Failed to copy the font file!"
+ IDS_ERROR_OPENKEY "Failed to open the fonts key!"
+ IDS_ERROR_REGISTER "Failed to register the new font!"
+ IDS_SUCCESS "Success"
+ IDS_COMPLETED "Font installation completed."
IDS_FILTER_LIST "All Supported Fonts
(*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc)\0*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc\0\
Font File (*.fon;*.fnt)\0*.fon;*.fnt\0\
TrueType Font (*.ttf)\0*.ttf\0\
diff --git a/base/applications/fontview/lang/cs-CZ.rc
b/base/applications/fontview/lang/cs-CZ.rc
index 6dcbdf883a1..d73fd4c9224 100644
--- a/base/applications/fontview/lang/cs-CZ.rc
+++ b/base/applications/fontview/lang/cs-CZ.rc
@@ -10,6 +10,12 @@ BEGIN
IDS_ERROR_NOMEM "K dokončení operace není dostatek paměti."
IDS_ERROR_NOFONT "Soubor %1 není platným souborem písma."
IDS_ERROR_NOCLASS "Inicializace okna aplikace selhala."
+ IDS_ERROR_ISINSTALLED "This font is already installed!"
+ IDS_ERROR_FONTCPY "Failed to copy the font file!"
+ IDS_ERROR_OPENKEY "Failed to open the fonts key!"
+ IDS_ERROR_REGISTER "Failed to register the new font!"
+ IDS_SUCCESS "Success"
+ IDS_COMPLETED "Font installation completed."
IDS_FILTER_LIST "Podporované soubory písem
(*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc)\0*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc\0\
Písmo Font (*.fon;*.fnt)\0*.fon;*.fnt\0\
Písmo TrueType (*.ttf)\0*.ttf\0\
diff --git a/base/applications/fontview/lang/de-DE.rc
b/base/applications/fontview/lang/de-DE.rc
index b3ff7113be5..b41acd3855f 100644
--- a/base/applications/fontview/lang/de-DE.rc
+++ b/base/applications/fontview/lang/de-DE.rc
@@ -10,6 +10,12 @@ BEGIN
IDS_ERROR_NOMEM "Es steht nicht genügend Speicher zur Verfügung."
IDS_ERROR_NOFONT "Die angegebene Datei %1 ist keine gültige
Schriftartendatei."
IDS_ERROR_NOCLASS "Fehler beim Initialisieren der Fensterklasse."
+ IDS_ERROR_ISINSTALLED "This font is already installed!"
+ IDS_ERROR_FONTCPY "Failed to copy the font file!"
+ IDS_ERROR_OPENKEY "Failed to open the fonts key!"
+ IDS_ERROR_REGISTER "Failed to register the new font!"
+ IDS_SUCCESS "Success"
+ IDS_COMPLETED "Font installation completed."
IDS_FILTER_LIST "All Supported Fonts
(*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc)\0*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc\0\
Font File (*.fon;*.fnt)\0*.fon;*.fnt\0\
TrueType Font (*.ttf)\0*.ttf\0\
diff --git a/base/applications/fontview/lang/en-US.rc
b/base/applications/fontview/lang/en-US.rc
index 6ae1042ed1a..3c3836b8598 100644
--- a/base/applications/fontview/lang/en-US.rc
+++ b/base/applications/fontview/lang/en-US.rc
@@ -10,6 +10,12 @@ BEGIN
IDS_ERROR_NOMEM "There is not enough memory to complete the operation."
IDS_ERROR_NOFONT "The file %1 is not a valid font file."
IDS_ERROR_NOCLASS "Could not initialize window class."
+ IDS_ERROR_ISINSTALLED "This font is already installed!"
+ IDS_ERROR_FONTCPY "Failed to copy the font file!"
+ IDS_ERROR_OPENKEY "Failed to open the fonts key!"
+ IDS_ERROR_REGISTER "Failed to register the new font!"
+ IDS_SUCCESS "Success"
+ IDS_COMPLETED "Font installation completed."
IDS_FILTER_LIST "All Supported Fonts
(*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc)\0*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc\0\
Font File (*.fon;*.fnt)\0*.fon;*.fnt\0\
TrueType Font (*.ttf)\0*.ttf\0\
diff --git a/base/applications/fontview/lang/es-ES.rc
b/base/applications/fontview/lang/es-ES.rc
index 21fcfc1a913..2168a64f6b7 100644
--- a/base/applications/fontview/lang/es-ES.rc
+++ b/base/applications/fontview/lang/es-ES.rc
@@ -12,6 +12,12 @@ BEGIN
IDS_ERROR_NOMEM "No hay memoria suficiente para completar la operación."
IDS_ERROR_NOFONT "El archivo %1 no es un archivo de fuente válido."
IDS_ERROR_NOCLASS "No es posible iniciar la clase de ventana."
+ IDS_ERROR_ISINSTALLED "This font is already installed!"
+ IDS_ERROR_FONTCPY "Failed to copy the font file!"
+ IDS_ERROR_OPENKEY "Failed to open the fonts key!"
+ IDS_ERROR_REGISTER "Failed to register the new font!"
+ IDS_SUCCESS "Success"
+ IDS_COMPLETED "Font installation completed."
IDS_FILTER_LIST "Todas las tipografías
(*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc)\0*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc\0\
Tipografía de mapa de bits (*.fon;*.fnt)\0*.fon;*.fnt\0\
Tipografía TrueType (*.ttf)\0*.ttf\0\
diff --git a/base/applications/fontview/lang/fr-FR.rc
b/base/applications/fontview/lang/fr-FR.rc
index 965b11d4665..0d22b91d720 100644
--- a/base/applications/fontview/lang/fr-FR.rc
+++ b/base/applications/fontview/lang/fr-FR.rc
@@ -10,6 +10,12 @@ BEGIN
IDS_ERROR_NOMEM "Mémoire insuffisante pour terminer l'opération."
IDS_ERROR_NOFONT "Le fichier %1 n'est pas un fichier de polices
valide."
IDS_ERROR_NOCLASS "Impossible d'initialiser la classe de fenêtre."
+ IDS_ERROR_ISINSTALLED "This font is already installed!"
+ IDS_ERROR_FONTCPY "Failed to copy the font file!"
+ IDS_ERROR_OPENKEY "Failed to open the fonts key!"
+ IDS_ERROR_REGISTER "Failed to register the new font!"
+ IDS_SUCCESS "Success"
+ IDS_COMPLETED "Font installation completed."
IDS_FILTER_LIST "Toutes polices supportées
(*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc)\0*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc\0\
Fichier de polices (*.fon;*.fnt)\0*.fon;*.fnt\0\
Fichier de polices TrueType (*.ttf)\0*.ttf\0\
diff --git a/base/applications/fontview/lang/he-IL.rc
b/base/applications/fontview/lang/he-IL.rc
index 4a6eacdb8a9..b9fd3083233 100644
--- a/base/applications/fontview/lang/he-IL.rc
+++ b/base/applications/fontview/lang/he-IL.rc
@@ -12,6 +12,12 @@ BEGIN
IDS_ERROR_NOMEM "אין מספיק זיכרון כדי להשלים את הפעולה."
IDS_ERROR_NOFONT "הקובץ %1 אינו קובץ גופנים חוקי."
IDS_ERROR_NOCLASS "Could not initialize window class."
+ IDS_ERROR_ISINSTALLED "This font is already installed!"
+ IDS_ERROR_FONTCPY "Failed to copy the font file!"
+ IDS_ERROR_OPENKEY "Failed to open the fonts key!"
+ IDS_ERROR_REGISTER "Failed to register the new font!"
+ IDS_SUCCESS "Success"
+ IDS_COMPLETED "Font installation completed."
IDS_FILTER_LIST "All Supported Fonts
(*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc)\0*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc\0\
Font File (*.fon;*.fnt)\0*.fon;*.fnt\0\
TrueType Font (*.ttf)\0*.ttf\0\
diff --git a/base/applications/fontview/lang/id-ID.rc
b/base/applications/fontview/lang/id-ID.rc
index e031a03a254..c6db7b57f02 100644
--- a/base/applications/fontview/lang/id-ID.rc
+++ b/base/applications/fontview/lang/id-ID.rc
@@ -10,6 +10,12 @@ BEGIN
IDS_ERROR_NOMEM "Memori tidak cukup untuk menyelesaikan operasi."
IDS_ERROR_NOFONT "Berkas %1 bukan berkas fon yang valid."
IDS_ERROR_NOCLASS "Tidak bisa memulai window class."
+ IDS_ERROR_ISINSTALLED "This font is already installed!"
+ IDS_ERROR_FONTCPY "Failed to copy the font file!"
+ IDS_ERROR_OPENKEY "Failed to open the fonts key!"
+ IDS_ERROR_REGISTER "Failed to register the new font!"
+ IDS_SUCCESS "Success"
+ IDS_COMPLETED "Font installation completed."
IDS_FILTER_LIST "Semua fon yang didukung
(*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc)\0*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc\0\
Berkas Fon (*.fon;*.fnt)\0*.fon;*.fnt\0\
TrueType Fon (*.ttf)\0*.ttf\0\
diff --git a/base/applications/fontview/lang/it-IT.rc
b/base/applications/fontview/lang/it-IT.rc
index 3eaa1cd9326..70bdd487d39 100644
--- a/base/applications/fontview/lang/it-IT.rc
+++ b/base/applications/fontview/lang/it-IT.rc
@@ -10,6 +10,12 @@ BEGIN
IDS_ERROR_NOMEM "Memoria insufficiente per completare l'operazione."
IDS_ERROR_NOFONT "Il file% 1 non è un file di origine valido."
IDS_ERROR_NOCLASS "Impossibile avviare la classe."
+ IDS_ERROR_ISINSTALLED "This font is already installed!"
+ IDS_ERROR_FONTCPY "Failed to copy the font file!"
+ IDS_ERROR_OPENKEY "Failed to open the fonts key!"
+ IDS_ERROR_REGISTER "Failed to register the new font!"
+ IDS_SUCCESS "Success"
+ IDS_COMPLETED "Font installation completed."
IDS_FILTER_LIST "Tutti i font supportati
(*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc)\0*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc\0\
Font File (*.fon;*.fnt)\0*.fon;*.fnt\0\
Font TrueType (*.ttf)\0*.ttf\0\
diff --git a/base/applications/fontview/lang/lt-LT.rc
b/base/applications/fontview/lang/lt-LT.rc
index bd9703d9be0..52c254b892d 100644
--- a/base/applications/fontview/lang/lt-LT.rc
+++ b/base/applications/fontview/lang/lt-LT.rc
@@ -12,6 +12,12 @@ BEGIN
IDS_ERROR_NOMEM "Užduočiai užbaigti, nepakanka atminties."
IDS_ERROR_NOFONT "%1 nėra teisinga šrifto byla."
IDS_ERROR_NOCLASS "Nepavyko inicijuoti lango klasės."
+ IDS_ERROR_ISINSTALLED "This font is already installed!"
+ IDS_ERROR_FONTCPY "Failed to copy the font file!"
+ IDS_ERROR_OPENKEY "Failed to open the fonts key!"
+ IDS_ERROR_REGISTER "Failed to register the new font!"
+ IDS_SUCCESS "Success"
+ IDS_COMPLETED "Font installation completed."
IDS_FILTER_LIST "All Supported Fonts
(*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc)\0*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc\0\
Font File (*.fon;*.fnt)\0*.fon;*.fnt\0\
TrueType Font (*.ttf)\0*.ttf\0\
diff --git a/base/applications/fontview/lang/ms-MY.rc
b/base/applications/fontview/lang/ms-MY.rc
index e22d4ebb02c..2e9a40d8777 100644
--- a/base/applications/fontview/lang/ms-MY.rc
+++ b/base/applications/fontview/lang/ms-MY.rc
@@ -12,6 +12,12 @@ BEGIN
IDS_ERROR_NOMEM "Terdapat tidak cukup ingatan untuk melengkapkan operasi
ini."
IDS_ERROR_NOFONT "Fail %1 bukanlah fail fon yang sah."
IDS_ERROR_NOCLASS "Tidak dapat mengawalkan kelas tetingkap."
+ IDS_ERROR_ISINSTALLED "This font is already installed!"
+ IDS_ERROR_FONTCPY "Failed to copy the font file!"
+ IDS_ERROR_OPENKEY "Failed to open the fonts key!"
+ IDS_ERROR_REGISTER "Failed to register the new font!"
+ IDS_SUCCESS "Success"
+ IDS_COMPLETED "Font installation completed."
IDS_FILTER_LIST "Semuanya disokong fon
(*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc)\0*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc\0\
Font File (*.fon;*.fnt)\0*.fon;*.fnt\0\
TrueType Font (*.ttf)\0*.ttf\0\
diff --git a/base/applications/fontview/lang/no-NO.rc
b/base/applications/fontview/lang/no-NO.rc
index f1c7b65587c..4fd6807dbbd 100644
--- a/base/applications/fontview/lang/no-NO.rc
+++ b/base/applications/fontview/lang/no-NO.rc
@@ -10,6 +10,12 @@ BEGIN
IDS_ERROR_NOMEM "Det er ikke nok minne for å fullføre oppgaven."
IDS_ERROR_NOFONT "Filen %1 er ikke et gyldig skriftfil."
IDS_ERROR_NOCLASS "Kunne ikke initialise vindu klassen."
+ IDS_ERROR_ISINSTALLED "This font is already installed!"
+ IDS_ERROR_FONTCPY "Failed to copy the font file!"
+ IDS_ERROR_OPENKEY "Failed to open the fonts key!"
+ IDS_ERROR_REGISTER "Failed to register the new font!"
+ IDS_SUCCESS "Success"
+ IDS_COMPLETED "Font installation completed."
IDS_FILTER_LIST "All Supported Fonts
(*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc)\0*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc\0\
Font File (*.fon;*.fnt)\0*.fon;*.fnt\0\
TrueType Font (*.ttf)\0*.ttf\0\
diff --git a/base/applications/fontview/lang/pl-PL.rc
b/base/applications/fontview/lang/pl-PL.rc
index f3f83fc3289..da0568e2c14 100644
--- a/base/applications/fontview/lang/pl-PL.rc
+++ b/base/applications/fontview/lang/pl-PL.rc
@@ -18,6 +18,12 @@ BEGIN
IDS_ERROR_NOMEM "Brakuje pamięci do ukończenia tej operacji."
IDS_ERROR_NOFONT "Plik %1 nie jest poprawnym plikiem czcionki."
IDS_ERROR_NOCLASS "Nie udało się zainicjować klasy window."
+ IDS_ERROR_ISINSTALLED "This font is already installed!"
+ IDS_ERROR_FONTCPY "Failed to copy the font file!"
+ IDS_ERROR_OPENKEY "Failed to open the fonts key!"
+ IDS_ERROR_REGISTER "Failed to register the new font!"
+ IDS_SUCCESS "Success"
+ IDS_COMPLETED "Font installation completed."
IDS_FILTER_LIST "Wszystkie obsługiwane czcionki
(*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc)\0*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc\0\
Plik czcionki (*.fon;*.fnt)\0*.fon;*.fnt\0\
Czcionka TrueType (*.ttf)\0*.ttf\0\
diff --git a/base/applications/fontview/lang/pt-BR.rc
b/base/applications/fontview/lang/pt-BR.rc
index 1e39fabb664..7f43f410fe6 100644
--- a/base/applications/fontview/lang/pt-BR.rc
+++ b/base/applications/fontview/lang/pt-BR.rc
@@ -12,6 +12,12 @@ BEGIN
IDS_ERROR_NOMEM "Não há memória suficiente para completar a operação."
IDS_ERROR_NOFONT "O arquivo %1 não é um arquivo de fonte válida."
IDS_ERROR_NOCLASS "Não foi possível inicializar a janela."
+ IDS_ERROR_ISINSTALLED "This font is already installed!"
+ IDS_ERROR_FONTCPY "Failed to copy the font file!"
+ IDS_ERROR_OPENKEY "Failed to open the fonts key!"
+ IDS_ERROR_REGISTER "Failed to register the new font!"
+ IDS_SUCCESS "Success"
+ IDS_COMPLETED "Font installation completed."
IDS_FILTER_LIST "All Supported Fonts
(*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc)\0*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc\0\
Font File (*.fon;*.fnt)\0*.fon;*.fnt\0\
TrueType Font (*.ttf)\0*.ttf\0\
diff --git a/base/applications/fontview/lang/ro-RO.rc
b/base/applications/fontview/lang/ro-RO.rc
index ecdd7c599a1..49104b645dd 100644
--- a/base/applications/fontview/lang/ro-RO.rc
+++ b/base/applications/fontview/lang/ro-RO.rc
@@ -12,6 +12,12 @@ BEGIN
IDS_ERROR_NOMEM "Nu e destulă memorie pentru a încheia operația."
IDS_ERROR_NOFONT "Fișierul «%1» este un fișier font deteriorat."
IDS_ERROR_NOCLASS "Clasa de ferestre nu a putut fi inițializată."
+ IDS_ERROR_ISINSTALLED "This font is already installed!"
+ IDS_ERROR_FONTCPY "Failed to copy the font file!"
+ IDS_ERROR_OPENKEY "Failed to open the fonts key!"
+ IDS_ERROR_REGISTER "Failed to register the new font!"
+ IDS_SUCCESS "Success"
+ IDS_COMPLETED "Font installation completed."
IDS_FILTER_LIST "Toate fonturile recunoscute
(*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc)\0*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc\0\
Fișiere de tip Font (*.fon;*.fnt)\0*.fon;*.fnt\0\
Fonturi de tip TrueType (*.ttf)\0*.ttf\0\
diff --git a/base/applications/fontview/lang/ru-RU.rc
b/base/applications/fontview/lang/ru-RU.rc
index 1d16fb34ea2..2edf11d2d44 100644
--- a/base/applications/fontview/lang/ru-RU.rc
+++ b/base/applications/fontview/lang/ru-RU.rc
@@ -12,6 +12,12 @@ BEGIN
IDS_ERROR_NOMEM "Недостаточно памяти для выполнения операции."
IDS_ERROR_NOFONT "%1 не является корректным файлом шрифта."
IDS_ERROR_NOCLASS "Невозможно инициализировать класс окна."
+ IDS_ERROR_ISINSTALLED "This font is already installed!"
+ IDS_ERROR_FONTCPY "Failed to copy the font file!"
+ IDS_ERROR_OPENKEY "Failed to open the fonts key!"
+ IDS_ERROR_REGISTER "Failed to register the new font!"
+ IDS_SUCCESS "Success"
+ IDS_COMPLETED "Font installation completed."
IDS_FILTER_LIST "Все поддерживаемые шрифты
(*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc)\0*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc\0\
Файлы шрифтов (*.fon;*.fnt)\0*.fon;*.fnt\0\
TrueType шрифты (*.ttf)\0*.ttf\0\
diff --git a/base/applications/fontview/lang/sk-SK.rc
b/base/applications/fontview/lang/sk-SK.rc
index 29af80a7626..8ec3ebec534 100644
--- a/base/applications/fontview/lang/sk-SK.rc
+++ b/base/applications/fontview/lang/sk-SK.rc
@@ -15,6 +15,12 @@ BEGIN
IDS_ERROR_NOMEM "Na vykonanie tejto operácie nie je dostatok voľnej
pamäte."
IDS_ERROR_NOFONT "Požadovaný súbor %1 nie je platným súborom písiem."
IDS_ERROR_NOCLASS "Nepodarilo sa inicializovať triedu window."
+ IDS_ERROR_ISINSTALLED "This font is already installed!"
+ IDS_ERROR_FONTCPY "Failed to copy the font file!"
+ IDS_ERROR_OPENKEY "Failed to open the fonts key!"
+ IDS_ERROR_REGISTER "Failed to register the new font!"
+ IDS_SUCCESS "Success"
+ IDS_COMPLETED "Font installation completed."
IDS_FILTER_LIST "All Supported Fonts
(*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc)\0*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc\0\
Font File (*.fon;*.fnt)\0*.fon;*.fnt\0\
TrueType Font (*.ttf)\0*.ttf\0\
diff --git a/base/applications/fontview/lang/sq-AL.rc
b/base/applications/fontview/lang/sq-AL.rc
index 677082bebf3..38ff80531d4 100644
--- a/base/applications/fontview/lang/sq-AL.rc
+++ b/base/applications/fontview/lang/sq-AL.rc
@@ -14,6 +14,12 @@ BEGIN
IDS_ERROR_NOMEM "Nuk ka memorie të mjaftueshme për të përfunduar
operacionin."
IDS_ERROR_NOFONT "Dokumenti %1 nuk është një font i vlefshem."
IDS_ERROR_NOCLASS "Nuk mund të fillojë dritaren e klases."
+ IDS_ERROR_ISINSTALLED "This font is already installed!"
+ IDS_ERROR_FONTCPY "Failed to copy the font file!"
+ IDS_ERROR_OPENKEY "Failed to open the fonts key!"
+ IDS_ERROR_REGISTER "Failed to register the new font!"
+ IDS_SUCCESS "Success"
+ IDS_COMPLETED "Font installation completed."
IDS_FILTER_LIST "All Supported Fonts
(*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc)\0*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc\0\
Font File (*.fon;*.fnt)\0*.fon;*.fnt\0\
TrueType Font (*.ttf)\0*.ttf\0\
diff --git a/base/applications/fontview/lang/sv-SE.rc
b/base/applications/fontview/lang/sv-SE.rc
index 07eefcf19b5..eb389506897 100644
--- a/base/applications/fontview/lang/sv-SE.rc
+++ b/base/applications/fontview/lang/sv-SE.rc
@@ -17,6 +17,12 @@ BEGIN
IDS_ERROR_NOMEM "Det er inte nog minne för att slutföre operationen."
IDS_ERROR_NOFONT "Filen %1 är inte en giltig typsnittsfil."
IDS_ERROR_NOCLASS "Kunde inte initialisera Windows klassen."
+ IDS_ERROR_ISINSTALLED "This font is already installed!"
+ IDS_ERROR_FONTCPY "Failed to copy the font file!"
+ IDS_ERROR_OPENKEY "Failed to open the fonts key!"
+ IDS_ERROR_REGISTER "Failed to register the new font!"
+ IDS_SUCCESS "Success"
+ IDS_COMPLETED "Font installation completed."
IDS_FILTER_LIST "All Supported Fonts
(*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc)\0*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc\0\
Font File (*.fon;*.fnt)\0*.fon;*.fnt\0\
TrueType Font (*.ttf)\0*.ttf\0\
diff --git a/base/applications/fontview/lang/tr-TR.rc
b/base/applications/fontview/lang/tr-TR.rc
index 8d0e0e07623..41ec9878032 100644
--- a/base/applications/fontview/lang/tr-TR.rc
+++ b/base/applications/fontview/lang/tr-TR.rc
@@ -18,6 +18,12 @@ BEGIN
IDS_ERROR_NOMEM "Bu işlemi bitirmek için yeterli bellek yok."
IDS_ERROR_NOFONT "%1 dosyası, geçerli bir yazı tipi dosyası değil."
IDS_ERROR_NOCLASS "Pencere sınıfı başlatılamadı."
+ IDS_ERROR_ISINSTALLED "This font is already installed!"
+ IDS_ERROR_FONTCPY "Failed to copy the font file!"
+ IDS_ERROR_OPENKEY "Failed to open the fonts key!"
+ IDS_ERROR_REGISTER "Failed to register the new font!"
+ IDS_SUCCESS "Success"
+ IDS_COMPLETED "Font installation completed."
IDS_FILTER_LIST "Tüm Desteklenen Yazı Tipleri
(*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc)\0*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc\0\
Yazı Tipi Dosyası (*.fon;*.fnt)\0*.fon;*.fnt\0\
TrueType Yazı Tipi (*.ttf)\0*.ttf\0\
diff --git a/base/applications/fontview/lang/uk-UA.rc
b/base/applications/fontview/lang/uk-UA.rc
index 66f7c2cff4e..3805e243aca 100644
--- a/base/applications/fontview/lang/uk-UA.rc
+++ b/base/applications/fontview/lang/uk-UA.rc
@@ -18,6 +18,12 @@ BEGIN
IDS_ERROR_NOMEM "Недостатньо пам'яті для завершення операції."
IDS_ERROR_NOFONT "Файл %1 не є коректним файлом шрифту."
IDS_ERROR_NOCLASS "Неможливо ініціалізувати віконний клас."
+ IDS_ERROR_ISINSTALLED "This font is already installed!"
+ IDS_ERROR_FONTCPY "Failed to copy the font file!"
+ IDS_ERROR_OPENKEY "Failed to open the fonts key!"
+ IDS_ERROR_REGISTER "Failed to register the new font!"
+ IDS_SUCCESS "Success"
+ IDS_COMPLETED "Font installation completed."
IDS_FILTER_LIST "All Supported Fonts
(*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc)\0*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc\0\
Font File (*.fon;*.fnt)\0*.fon;*.fnt\0\
TrueType Font (*.ttf)\0*.ttf\0\
diff --git a/base/applications/fontview/lang/zh-CN.rc
b/base/applications/fontview/lang/zh-CN.rc
index 4f8d952ba30..dd10e512673 100644
--- a/base/applications/fontview/lang/zh-CN.rc
+++ b/base/applications/fontview/lang/zh-CN.rc
@@ -20,6 +20,12 @@ BEGIN
IDS_ERROR_NOMEM "没有足够的内存来完成操作。"
IDS_ERROR_NOFONT "%1不是一个有效的字体文件。"
IDS_ERROR_NOCLASS "无法初始化窗口。"
+ IDS_ERROR_ISINSTALLED "This font is already installed!"
+ IDS_ERROR_FONTCPY "Failed to copy the font file!"
+ IDS_ERROR_OPENKEY "Failed to open the fonts key!"
+ IDS_ERROR_REGISTER "Failed to register the new font!"
+ IDS_SUCCESS "Success"
+ IDS_COMPLETED "Font installation completed."
IDS_FILTER_LIST "所有支持的字体
(*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc)\0*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc\0\
字体文件 (*.fon;*.fnt)\0*.fon;*.fnt\0\
TrueType 字体 (*.ttf)\0*.ttf\0\
diff --git a/base/applications/fontview/lang/zh-HK.rc
b/base/applications/fontview/lang/zh-HK.rc
index 91dbd658b7d..a6e4c3d2d29 100644
--- a/base/applications/fontview/lang/zh-HK.rc
+++ b/base/applications/fontview/lang/zh-HK.rc
@@ -18,6 +18,12 @@ BEGIN
IDS_ERROR_NOMEM "沒有足夠的記憶體來完成操作。"
IDS_ERROR_NOFONT "%1 不是一個有效的字型檔案。"
IDS_ERROR_NOCLASS "無法初始化視窗。"
+ IDS_ERROR_ISINSTALLED "This font is already installed!"
+ IDS_ERROR_FONTCPY "Failed to copy the font file!"
+ IDS_ERROR_OPENKEY "Failed to open the fonts key!"
+ IDS_ERROR_REGISTER "Failed to register the new font!"
+ IDS_SUCCESS "Success"
+ IDS_COMPLETED "Font installation completed."
IDS_FILTER_LIST "所有支援的字型
(*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc)\0*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc\0\
字型檔案 (*.fon;*.fnt)\0*.fon;*.fnt\0\
TrueType 字型 (*.ttf)\0*.ttf\0\
diff --git a/base/applications/fontview/lang/zh-TW.rc
b/base/applications/fontview/lang/zh-TW.rc
index 39bceb4e1fe..0fec829a58d 100644
--- a/base/applications/fontview/lang/zh-TW.rc
+++ b/base/applications/fontview/lang/zh-TW.rc
@@ -18,6 +18,12 @@ BEGIN
IDS_ERROR_NOMEM "沒有足夠的記憶體來完成操作。"
IDS_ERROR_NOFONT "%1 不是一個有效的字型檔案。"
IDS_ERROR_NOCLASS "無法初始化視窗。"
+ IDS_ERROR_ISINSTALLED "This font is already installed!"
+ IDS_ERROR_FONTCPY "Failed to copy the font file!"
+ IDS_ERROR_OPENKEY "Failed to open the fonts key!"
+ IDS_ERROR_REGISTER "Failed to register the new font!"
+ IDS_SUCCESS "Success"
+ IDS_COMPLETED "Font installation completed."
IDS_FILTER_LIST "所有支援的字型
(*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc)\0*.fon;*.fnt;*.ttf;*.ttc;*.otf;*.otc\0\
字型檔案 (*.fon;*.fnt)\0*.fon;*.fnt\0\
TrueType 字型 (*.ttf)\0*.ttf\0\
diff --git a/base/applications/fontview/resource.h
b/base/applications/fontview/resource.h
index 6018f68fdcf..b9011755d8e 100644
--- a/base/applications/fontview/resource.h
+++ b/base/applications/fontview/resource.h
@@ -1,10 +1,16 @@
#pragma once
-#define IDS_ERROR 100
-#define IDS_ERROR_NOMEM 101
-#define IDS_ERROR_NOFONT 102
-#define IDS_ERROR_NOCLASS 103
-#define IDS_FILTER_LIST 104
+#define IDS_ERROR 100
+#define IDS_ERROR_NOMEM 101
+#define IDS_ERROR_NOFONT 102
+#define IDS_ERROR_NOCLASS 103
+#define IDS_ERROR_ISINSTALLED 104
+#define IDS_ERROR_FONTCPY 105
+#define IDS_ERROR_OPENKEY 106
+#define IDS_ERROR_REGISTER 107
+#define IDS_SUCCESS 108
+#define IDS_COMPLETED 109
+#define IDS_FILTER_LIST 110
#define IDS_INSTALL 500
#define IDS_PRINT 501