diff --git a/reactos/base/applications/fontview/fontview.c b/reactos/base/applications/fontview/fontview.c index 782bab8b7c7..44f7301fb6a 100644 --- a/reactos/base/applications/fontview/fontview.c +++ b/reactos/base/applications/fontview/fontview.c @@ -24,6 +24,7 @@ #include #include +#include #include "fontview.h" #include "resource.h" @@ -65,7 +66,7 @@ FormatString( } static void -ErrorMsgBox(HWND hParent, DWORD dwCaptionID, DWORD dwMessageId, ...) +ErrorMsgBox(HWND hParent, DWORD dwMessageId, ...) { HLOCAL hMemCaption = NULL; HLOCAL hMemText = NULL; @@ -77,7 +78,7 @@ ErrorMsgBox(HWND hParent, DWORD dwCaptionID, DWORD dwMessageId, ...) va_end(args); FormatString(FORMAT_MESSAGE_ALLOCATE_BUFFER, - NULL, dwCaptionID, 0, (LPWSTR)&hMemCaption, 0, NULL); + NULL, IDS_ERROR, 0, (LPWSTR)&hMemCaption, 0, NULL); MessageBoxW(hParent, hMemText, hMemCaption, MB_ICONERROR); @@ -117,11 +118,10 @@ WinMain (HINSTANCE hThisInstance, if (argc < 2) { OPENFILENAMEW fontOpen; - HLOCAL dialogTitle = NULL; + WCHAR filter[MAX_PATH], dialogTitle[MAX_PATH]; - /* Gets the title for the dialog box ready */ - FormatString(FORMAT_MESSAGE_ALLOCATE_BUFFER, - NULL, IDS_OPEN, 0, (LPWSTR)&dialogTitle, 0, NULL); + LoadStringW(NULL, IDS_OPEN, dialogTitle, MAX_PATH); + LoadStringW(NULL, IDS_FILTER_LIST, filter, MAX_PATH); /* Clears out any values of fontOpen before we use it */ ZeroMemory(&fontOpen, sizeof(fontOpen)); @@ -129,8 +129,7 @@ WinMain (HINSTANCE hThisInstance, /* Sets up the open dialog box */ fontOpen.lStructSize = sizeof(fontOpen); fontOpen.hwndOwner = NULL; - fontOpen.lpstrFilter = L"TrueType Font (*.ttf)\0*.ttf\0" - L"All Files (*.*)\0*.*\0"; + fontOpen.lpstrFilter = filter; fontOpen.lpstrFile = szFileName; fontOpen.lpstrTitle = dialogTitle; fontOpen.nMaxFile = MAX_PATH; @@ -145,11 +144,8 @@ WinMain (HINSTANCE hThisInstance, } else { /* If the user decides to close out of the open dialog effectively exiting the program altogether */ - LocalFree(dialogTitle); return 0; } - - LocalFree(dialogTitle); } else { @@ -160,7 +156,7 @@ WinMain (HINSTANCE hThisInstance, if (!AddFontResourceW(fileName)) { - ErrorMsgBox(0, IDS_ERROR, IDS_ERROR_NOFONT, fileName); + ErrorMsgBox(0, IDS_ERROR_NOFONT, fileName); return -1; } @@ -168,20 +164,20 @@ WinMain (HINSTANCE hThisInstance, dwSize = sizeof(g_ExtLogFontW.elfFullName); if (!GetFontResourceInfoW(fileName, &dwSize, g_ExtLogFontW.elfFullName, 1)) { - ErrorMsgBox(0, IDS_ERROR, IDS_ERROR_NOFONT, fileName); + ErrorMsgBox(0, IDS_ERROR_NOFONT, fileName); return -1; } dwSize = sizeof(LOGFONTW); if (!GetFontResourceInfoW(fileName, &dwSize, &g_ExtLogFontW.elfLogFont, 2)) { - ErrorMsgBox(0, IDS_ERROR, IDS_ERROR_NOFONT, fileName); + ErrorMsgBox(0, IDS_ERROR_NOFONT, fileName); return -1; } if (!Display_InitClass(hThisInstance)) { - ErrorMsgBox(0, IDS_ERROR, IDS_ERROR_NOCLASS); + ErrorMsgBox(0, IDS_ERROR_NOCLASS); return -1; } @@ -202,7 +198,7 @@ WinMain (HINSTANCE hThisInstance, /* Register the window class, and if it fails quit the program */ if (!RegisterClassExW (&wincl)) { - ErrorMsgBox(0, IDS_ERROR, IDS_ERROR_NOCLASS); + ErrorMsgBox(0, IDS_ERROR_NOCLASS); return 0; } @@ -266,7 +262,7 @@ MainWnd_OnCreate(HWND hwnd) SendMessage(hDisplay, FVM_SETTYPEFACE, 0, (LPARAM)&g_ExtLogFontW); ShowWindow(hDisplay, SW_SHOWNORMAL); - /* Create the quit button */ + /* Create the install button */ LoadStringW(g_hInstance, IDS_INSTALL, szQuit, MAX_BUTTONNAME); hButtonInstall = CreateWindowExW( 0, /* Extended style */ @@ -342,7 +338,7 @@ MainWnd_OnInstall(HWND hwnd) fontExists = GetFileAttributes((LPCSTR)g_fileName); if (fontExists != 0xFFFFFFFF) /* If the file does not exist */ { - ErrorMsgBox(0, IDS_ERROR, IDS_ERROR_NOFONT, g_fileName); + ErrorMsgBox(0, IDS_ERROR_NOFONT, g_fileName); return -1; } diff --git a/reactos/base/applications/fontview/lang/bg-BG.rc b/reactos/base/applications/fontview/lang/bg-BG.rc index e038b1f3b7a..af649a2335d 100644 --- a/reactos/base/applications/fontview/lang/bg-BG.rc +++ b/reactos/base/applications/fontview/lang/bg-BG.rc @@ -10,4 +10,9 @@ BEGIN IDS_ERROR_NOMEM "Няма достатъчно място за завършване на действието." IDS_ERROR_NOFONT "%1 не е редовен шрифтов файл." IDS_ERROR_NOCLASS "Неуспешно изпълнение на класа на прозореца." + IDS_FILTER_LIST "All Supported Fonts (*.ttf;*.fon;*.otf)\0*.ttf;*.fon;*.otf\0\ +TrueType Font (*.ttf)\0*.ttf\0\ +OpenType Font (*.otf)\0*.otf\0\ +Font File (*.fon)\0*.fon\0\ +All Files (*.*)\0*.*\0" END diff --git a/reactos/base/applications/fontview/lang/cs-CZ.rc b/reactos/base/applications/fontview/lang/cs-CZ.rc index 77350196d77..e82da163acb 100644 --- a/reactos/base/applications/fontview/lang/cs-CZ.rc +++ b/reactos/base/applications/fontview/lang/cs-CZ.rc @@ -10,4 +10,9 @@ 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_FILTER_LIST "All Supported Fonts (*.ttf;*.fon;*.otf)\0*.ttf;*.fon;*.otf\0\ +TrueType Font (*.ttf)\0*.ttf\0\ +OpenType Font (*.otf)\0*.otf\0\ +Font File (*.fon)\0*.fon\0\ +All Files (*.*)\0*.*\0" END diff --git a/reactos/base/applications/fontview/lang/de-DE.rc b/reactos/base/applications/fontview/lang/de-DE.rc index 0923dc3d280..220c8ec7227 100644 --- a/reactos/base/applications/fontview/lang/de-DE.rc +++ b/reactos/base/applications/fontview/lang/de-DE.rc @@ -10,4 +10,9 @@ 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_FILTER_LIST "All Supported Fonts (*.ttf;*.fon;*.otf)\0*.ttf;*.fon;*.otf\0\ +TrueType Font (*.ttf)\0*.ttf\0\ +OpenType Font (*.otf)\0*.otf\0\ +Font File (*.fon)\0*.fon\0\ +All Files (*.*)\0*.*\0" END diff --git a/reactos/base/applications/fontview/lang/en-US.rc b/reactos/base/applications/fontview/lang/en-US.rc index 4b09e3c2906..9d5e1c1ab63 100644 --- a/reactos/base/applications/fontview/lang/en-US.rc +++ b/reactos/base/applications/fontview/lang/en-US.rc @@ -10,4 +10,9 @@ BEGIN IDS_ERROR_NOMEM "There's 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_FILTER_LIST "All Supported Fonts (*.ttf;*.fon;*.otf)\0*.ttf;*.fon;*.otf\0\ +TrueType Font (*.ttf)\0*.ttf\0\ +OpenType Font (*.otf)\0*.otf\0\ +Font File (*.fon)\0*.fon\0\ +All Files (*.*)\0*.*\0" END diff --git a/reactos/base/applications/fontview/lang/es-ES.rc b/reactos/base/applications/fontview/lang/es-ES.rc index 59dce1483e2..c6dd1b61762 100644 --- a/reactos/base/applications/fontview/lang/es-ES.rc +++ b/reactos/base/applications/fontview/lang/es-ES.rc @@ -12,4 +12,9 @@ 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_FILTER_LIST "All Supported Fonts (*.ttf;*.fon;*.otf)\0*.ttf;*.fon;*.otf\0\ +TrueType Font (*.ttf)\0*.ttf\0\ +OpenType Font (*.otf)\0*.otf\0\ +Font File (*.fon)\0*.fon\0\ +All Files (*.*)\0*.*\0" END diff --git a/reactos/base/applications/fontview/lang/fr-FR.rc b/reactos/base/applications/fontview/lang/fr-FR.rc index 2b1973c836e..952a12de045 100644 --- a/reactos/base/applications/fontview/lang/fr-FR.rc +++ b/reactos/base/applications/fontview/lang/fr-FR.rc @@ -10,4 +10,9 @@ BEGIN IDS_ERROR_NOMEM "Mémoire insuffisante pour terminer l'opération." IDS_ERROR_NOFONT "Le fichier %1 n'est pas un fichier police valide." IDS_ERROR_NOCLASS "Impossible d'initialiser la classe de fenêtre." + IDS_FILTER_LIST "All Supported Fonts (*.ttf;*.fon;*.otf)\0*.ttf;*.fon;*.otf\0\ +TrueType Font (*.ttf)\0*.ttf\0\ +OpenType Font (*.otf)\0*.otf\0\ +Font File (*.fon)\0*.fon\0\ +All Files (*.*)\0*.*\0" END diff --git a/reactos/base/applications/fontview/lang/he-IL.rc b/reactos/base/applications/fontview/lang/he-IL.rc index 093321f80bb..816fc14449a 100644 --- a/reactos/base/applications/fontview/lang/he-IL.rc +++ b/reactos/base/applications/fontview/lang/he-IL.rc @@ -12,4 +12,9 @@ BEGIN IDS_ERROR_NOMEM "אין מספיק זיכרון כדי להשלים את הפעולה." IDS_ERROR_NOFONT "הקובץ %1 אינו קובץ גופנים חוקי." IDS_ERROR_NOCLASS "Could not initialize window class." + IDS_FILTER_LIST "All Supported Fonts (*.ttf;*.fon;*.otf)\0*.ttf;*.fon;*.otf\0\ +TrueType Font (*.ttf)\0*.ttf\0\ +OpenType Font (*.otf)\0*.otf\0\ +Font File (*.fon)\0*.fon\0\ +All Files (*.*)\0*.*\0" END diff --git a/reactos/base/applications/fontview/lang/it-IT.rc b/reactos/base/applications/fontview/lang/it-IT.rc index 14ae78d5291..e59604fa75d 100644 --- a/reactos/base/applications/fontview/lang/it-IT.rc +++ b/reactos/base/applications/fontview/lang/it-IT.rc @@ -10,4 +10,9 @@ 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_FILTER_LIST "All Supported Fonts (*.ttf;*.fon;*.otf)\0*.ttf;*.fon;*.otf\0\ +TrueType Font (*.ttf)\0*.ttf\0\ +OpenType Font (*.otf)\0*.otf\0\ +Font File (*.fon)\0*.fon\0\ +All Files (*.*)\0*.*\0" END diff --git a/reactos/base/applications/fontview/lang/lt-LT.rc b/reactos/base/applications/fontview/lang/lt-LT.rc index 3ff348de12c..740079eae6f 100644 --- a/reactos/base/applications/fontview/lang/lt-LT.rc +++ b/reactos/base/applications/fontview/lang/lt-LT.rc @@ -12,4 +12,9 @@ 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_FILTER_LIST "All Supported Fonts (*.ttf;*.fon;*.otf)\0*.ttf;*.fon;*.otf\0\ +TrueType Font (*.ttf)\0*.ttf\0\ +OpenType Font (*.otf)\0*.otf\0\ +Font File (*.fon)\0*.fon\0\ +All Files (*.*)\0*.*\0" END diff --git a/reactos/base/applications/fontview/lang/no-NO.rc b/reactos/base/applications/fontview/lang/no-NO.rc index db8b18b7df1..28dc5976fcb 100644 --- a/reactos/base/applications/fontview/lang/no-NO.rc +++ b/reactos/base/applications/fontview/lang/no-NO.rc @@ -10,4 +10,9 @@ 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_FILTER_LIST "All Supported Fonts (*.ttf;*.fon;*.otf)\0*.ttf;*.fon;*.otf\0\ +TrueType Font (*.ttf)\0*.ttf\0\ +OpenType Font (*.otf)\0*.otf\0\ +Font File (*.fon)\0*.fon\0\ +All Files (*.*)\0*.*\0" END diff --git a/reactos/base/applications/fontview/lang/pl-PL.rc b/reactos/base/applications/fontview/lang/pl-PL.rc index 2d31f8570e4..b6f9153e7be 100644 --- a/reactos/base/applications/fontview/lang/pl-PL.rc +++ b/reactos/base/applications/fontview/lang/pl-PL.rc @@ -18,4 +18,9 @@ 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_FILTER_LIST "All Supported Fonts (*.ttf;*.fon;*.otf)\0*.ttf;*.fon;*.otf\0\ +TrueType Font (*.ttf)\0*.ttf\0\ +OpenType Font (*.otf)\0*.otf\0\ +Font File (*.fon)\0*.fon\0\ +All Files (*.*)\0*.*\0" END diff --git a/reactos/base/applications/fontview/lang/pt-BR.rc b/reactos/base/applications/fontview/lang/pt-BR.rc index 95f993af4f4..d324324e270 100644 --- a/reactos/base/applications/fontview/lang/pt-BR.rc +++ b/reactos/base/applications/fontview/lang/pt-BR.rc @@ -12,4 +12,9 @@ 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_FILTER_LIST "All Supported Fonts (*.ttf;*.fon;*.otf)\0*.ttf;*.fon;*.otf\0\ +TrueType Font (*.ttf)\0*.ttf\0\ +OpenType Font (*.otf)\0*.otf\0\ +Font File (*.fon)\0*.fon\0\ +All Files (*.*)\0*.*\0" END diff --git a/reactos/base/applications/fontview/lang/ro-RO.rc b/reactos/base/applications/fontview/lang/ro-RO.rc index 06954b91930..b1acf9c8914 100644 --- a/reactos/base/applications/fontview/lang/ro-RO.rc +++ b/reactos/base/applications/fontview/lang/ro-RO.rc @@ -12,4 +12,9 @@ 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 "Nu s-a putut inițializa clasa de ferestre." + IDS_FILTER_LIST "All Supported Fonts (*.ttf;*.fon;*.otf)\0*.ttf;*.fon;*.otf\0\ +TrueType Font (*.ttf)\0*.ttf\0\ +OpenType Font (*.otf)\0*.otf\0\ +Font File (*.fon)\0*.fon\0\ +All Files (*.*)\0*.*\0" END diff --git a/reactos/base/applications/fontview/lang/ru-RU.rc b/reactos/base/applications/fontview/lang/ru-RU.rc index 04981f6364c..e52b3e2d909 100644 --- a/reactos/base/applications/fontview/lang/ru-RU.rc +++ b/reactos/base/applications/fontview/lang/ru-RU.rc @@ -12,4 +12,9 @@ BEGIN IDS_ERROR_NOMEM "Недостаточно памяти для выполнения операции." IDS_ERROR_NOFONT "%1 не является корректным файлом шрифта." IDS_ERROR_NOCLASS "Невозможно инициализировать класс окна." + IDS_FILTER_LIST "All Supported Fonts (*.ttf;*.fon;*.otf)\0*.ttf;*.fon;*.otf\0\ +TrueType Font (*.ttf)\0*.ttf\0\ +OpenType Font (*.otf)\0*.otf\0\ +Font File (*.fon)\0*.fon\0\ +All Files (*.*)\0*.*\0" END diff --git a/reactos/base/applications/fontview/lang/sk-SK.rc b/reactos/base/applications/fontview/lang/sk-SK.rc index e679efb0696..e1abc754be1 100644 --- a/reactos/base/applications/fontview/lang/sk-SK.rc +++ b/reactos/base/applications/fontview/lang/sk-SK.rc @@ -15,4 +15,9 @@ 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_FILTER_LIST "All Supported Fonts (*.ttf;*.fon;*.otf)\0*.ttf;*.fon;*.otf\0\ +TrueType Font (*.ttf)\0*.ttf\0\ +OpenType Font (*.otf)\0*.otf\0\ +Font File (*.fon)\0*.fon\0\ +All Files (*.*)\0*.*\0" END diff --git a/reactos/base/applications/fontview/lang/sq-AL.rc b/reactos/base/applications/fontview/lang/sq-AL.rc index 47d3f1465a9..a435fc8dc45 100644 --- a/reactos/base/applications/fontview/lang/sq-AL.rc +++ b/reactos/base/applications/fontview/lang/sq-AL.rc @@ -14,4 +14,9 @@ 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_FILTER_LIST "All Supported Fonts (*.ttf;*.fon;*.otf)\0*.ttf;*.fon;*.otf\0\ +TrueType Font (*.ttf)\0*.ttf\0\ +OpenType Font (*.otf)\0*.otf\0\ +Font File (*.fon)\0*.fon\0\ +All Files (*.*)\0*.*\0" END diff --git a/reactos/base/applications/fontview/lang/sv-SE.rc b/reactos/base/applications/fontview/lang/sv-SE.rc index bcf5d1d25a1..a90f7b57e05 100644 --- a/reactos/base/applications/fontview/lang/sv-SE.rc +++ b/reactos/base/applications/fontview/lang/sv-SE.rc @@ -17,4 +17,9 @@ 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_FILTER_LIST "All Supported Fonts (*.ttf;*.fon;*.otf)\0*.ttf;*.fon;*.otf\0\ +TrueType Font (*.ttf)\0*.ttf\0\ +OpenType Font (*.otf)\0*.otf\0\ +Font File (*.fon)\0*.fon\0\ +All Files (*.*)\0*.*\0" END diff --git a/reactos/base/applications/fontview/lang/tr-TR.rc b/reactos/base/applications/fontview/lang/tr-TR.rc index f6cb3442d2d..2cf08ac7c8e 100644 --- a/reactos/base/applications/fontview/lang/tr-TR.rc +++ b/reactos/base/applications/fontview/lang/tr-TR.rc @@ -11,4 +11,9 @@ BEGIN IDS_ERROR_NOMEM "Bu işlemi bitirmek için yeterli bellek yok." IDS_ERROR_NOFONT "%1 kütüğü, geçerli bir yazı tipi kütüğü değil." IDS_ERROR_NOCLASS "Pencere sınıfı başlatılamadı." + IDS_FILTER_LIST "All Supported Fonts (*.ttf;*.fon;*.otf)\0*.ttf;*.fon;*.otf\0\ +TrueType Font (*.ttf)\0*.ttf\0\ +OpenType Font (*.otf)\0*.otf\0\ +Font File (*.fon)\0*.fon\0\ +All Files (*.*)\0*.*\0" END diff --git a/reactos/base/applications/fontview/lang/uk-UA.rc b/reactos/base/applications/fontview/lang/uk-UA.rc index f189e87ccee..a40eae352fe 100644 --- a/reactos/base/applications/fontview/lang/uk-UA.rc +++ b/reactos/base/applications/fontview/lang/uk-UA.rc @@ -18,4 +18,9 @@ BEGIN IDS_ERROR_NOMEM "Недостатньо пам'яті для завершення операції." IDS_ERROR_NOFONT "Файл %1 не є коректним файлом шрифту." IDS_ERROR_NOCLASS "Неможливо ініціалізувати віконний клас." + IDS_FILTER_LIST "All Supported Fonts (*.ttf;*.fon;*.otf)\0*.ttf;*.fon;*.otf\0\ +TrueType Font (*.ttf)\0*.ttf\0\ +OpenType Font (*.otf)\0*.otf\0\ +Font File (*.fon)\0*.fon\0\ +All Files (*.*)\0*.*\0" END diff --git a/reactos/base/applications/fontview/lang/zh-CN.rc b/reactos/base/applications/fontview/lang/zh-CN.rc index c0055b35e92..519bfd83bde 100644 --- a/reactos/base/applications/fontview/lang/zh-CN.rc +++ b/reactos/base/applications/fontview/lang/zh-CN.rc @@ -18,4 +18,9 @@ BEGIN IDS_ERROR_NOMEM "没有足够的内存来完成操作。" IDS_ERROR_NOFONT "%1不是一个有效的字体档案。" IDS_ERROR_NOCLASS "窗口无法初始化。" + IDS_FILTER_LIST "All Supported Fonts (*.ttf;*.fon;*.otf)\0*.ttf;*.fon;*.otf\0\ +TrueType Font (*.ttf)\0*.ttf\0\ +OpenType Font (*.otf)\0*.otf\0\ +Font File (*.fon)\0*.fon\0\ +All Files (*.*)\0*.*\0" END diff --git a/reactos/base/applications/fontview/lang/zh-TW.rc b/reactos/base/applications/fontview/lang/zh-TW.rc index 3a01c6fde7e..72e6db8c3d4 100644 --- a/reactos/base/applications/fontview/lang/zh-TW.rc +++ b/reactos/base/applications/fontview/lang/zh-TW.rc @@ -18,4 +18,9 @@ BEGIN IDS_ERROR_NOMEM "沒有足夠的記憶體來完成操作。" IDS_ERROR_NOFONT "%1 不是一個有效的字體檔案。" IDS_ERROR_NOCLASS "窗口無法初始化。" + IDS_FILTER_LIST "All Supported Fonts (*.ttf;*.fon;*.otf)\0*.ttf;*.fon;*.otf\0\ +TrueType Font (*.ttf)\0*.ttf\0\ +OpenType Font (*.otf)\0*.otf\0\ +Font File (*.fon)\0*.fon\0\ +All Files (*.*)\0*.*\0" END diff --git a/reactos/base/applications/fontview/resource.h b/reactos/base/applications/fontview/resource.h index 417a2899f52..73bc7a64094 100644 --- a/reactos/base/applications/fontview/resource.h +++ b/reactos/base/applications/fontview/resource.h @@ -4,6 +4,7 @@ #define IDS_ERROR_NOMEM 101 #define IDS_ERROR_NOFONT 102 #define IDS_ERROR_NOCLASS 103 +#define IDS_FILTER_LIST 104 #define IDS_INSTALL 500 #define IDS_PRINT 501 diff --git a/reactos/boot/bootdata/hivecls.inf b/reactos/boot/bootdata/hivecls.inf index 0d011e73750..ff9f6fc7dd3 100644 --- a/reactos/boot/bootdata/hivecls.inf +++ b/reactos/boot/bootdata/hivecls.inf @@ -110,16 +110,23 @@ HKCR,"exefile\shellex\DropHandler","",0x00020000,"{86C86720-42A0-1069-A2E8-08002 ; Fonts HKCR,".fon","",0x00000000,"fonfile" -HKCR,"fonfile","",0x00000000,"Font File" +HKCR,"fonfile","",0x00000000,"Font file" HKCR,"fonfile","FriendlyTypeName",0x00020000,"@%SystemRoot%\system32\shell32.dll,-166" HKCR,"fonfile\DefaultIcon","",0x00020000,"%SystemRoot%\system32\shell32.dll,-155" +HKCR,"fonfile\shell\open\command","",0x00020000,"%SystemRoot%\system32\fontview.exe %1" HKCR,".ttf","",0x00000000,"ttffile" -HKCR,"ttffile","",0x00000000,"TrueType Font File" -HKCR,"ttffile\DefaultIcon","",0x00020000,"%SystemRoot%\system32\shell32.dll,-156" +HKCR,"ttffile","",0x00000000,"TrueType font file" HKCR,"ttffile","FriendlyTypeName",0x00020000,"@%SystemRoot%\system32\shell32.dll,-167" +HKCR,"ttffile\DefaultIcon","",0x00020000,"%SystemRoot%\system32\shell32.dll,-156" HKCR,"ttffile\shell\open\command","",0x00020000,"%SystemRoot%\system32\fontview.exe %1" +HKCR,".otf","",0x00000000,"otffile" +HKCR,"otffile","",0x00000000,"OpenType font file" +HKCR,"otffile\DefaultIcon","",0x00020000,"%SystemRoot%\system32\shell32.dll,-156" +HKCR,"otffile","FriendlyTypeName",0x00020000,"@%SystemRoot%\system32\shell32.dll,-167" +HKCR,"otffile\shell\open\command","",0x00020000,"%SystemRoot%\system32\fontview.exe %1" + ; Help Files HKCR,".hlp","",0x00000000,"hlpfile" HKCR,"hlpfile","",0x00000000,"Help File"