mirror of
https://github.com/reactos/reactos.git
synced 2024-10-06 09:24:11 +00:00
[FONTVIEW]
- add czech translation - fix a leak CID #731443 svn path=/trunk/; revision=62671
This commit is contained in:
parent
0c43ce824a
commit
ebf479fc87
|
@ -34,8 +34,8 @@ LPCWSTR g_fileName;
|
||||||
|
|
||||||
static const WCHAR g_szFontViewClassName[] = L"FontViewWClass";
|
static const WCHAR g_szFontViewClassName[] = L"FontViewWClass";
|
||||||
|
|
||||||
/* Tye definition for the GetFontResourceInfo function */
|
/* GetFontResourceInfoW is undocumented */
|
||||||
typedef BOOL (WINAPI *PGFRI)(LPCWSTR, DWORD *, LPVOID, DWORD);
|
BOOL WINAPI GetFontResourceInfoW(LPCWSTR lpFileName, DWORD *pdwBufSize, void* lpBuffer, DWORD dwType);
|
||||||
|
|
||||||
DWORD
|
DWORD
|
||||||
FormatString(
|
FormatString(
|
||||||
|
@ -97,8 +97,6 @@ WinMain (HINSTANCE hThisInstance,
|
||||||
HWND hMainWnd;
|
HWND hMainWnd;
|
||||||
MSG msg;
|
MSG msg;
|
||||||
WNDCLASSEXW wincl;
|
WNDCLASSEXW wincl;
|
||||||
HINSTANCE hDLL;
|
|
||||||
PGFRI GetFontResourceInfoW;
|
|
||||||
LPCWSTR fileName;
|
LPCWSTR fileName;
|
||||||
|
|
||||||
switch (GetUserDefaultUILanguage())
|
switch (GetUserDefaultUILanguage())
|
||||||
|
@ -165,10 +163,6 @@ WinMain (HINSTANCE hThisInstance,
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Load the GetFontResourceInfo function from gdi32.dll */
|
|
||||||
hDLL = LoadLibraryW(L"GDI32.DLL");
|
|
||||||
GetFontResourceInfoW = (PGFRI)GetProcAddress(hDLL, "GetFontResourceInfoW");
|
|
||||||
|
|
||||||
/* Get the font name */
|
/* Get the font name */
|
||||||
dwSize = sizeof(g_ExtLogFontW.elfFullName);
|
dwSize = sizeof(g_ExtLogFontW.elfFullName);
|
||||||
if (!GetFontResourceInfoW(fileName, &dwSize, g_ExtLogFontW.elfFullName, 1))
|
if (!GetFontResourceInfoW(fileName, &dwSize, g_ExtLogFontW.elfFullName, 1))
|
||||||
|
|
|
@ -24,6 +24,9 @@ END
|
||||||
#ifdef LANGUAGE_BG_BG
|
#ifdef LANGUAGE_BG_BG
|
||||||
#include "lang/bg-BG.rc"
|
#include "lang/bg-BG.rc"
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef LANGUAGE_CS_CZ
|
||||||
|
#include "lang/cs-CZ.rc"
|
||||||
|
#endif
|
||||||
#ifdef LANGUAGE_DE_DE
|
#ifdef LANGUAGE_DE_DE
|
||||||
#include "lang/de-DE.rc"
|
#include "lang/de-DE.rc"
|
||||||
#endif
|
#endif
|
||||||
|
|
13
reactos/base/applications/fontview/lang/cs-CZ.rc
Normal file
13
reactos/base/applications/fontview/lang/cs-CZ.rc
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
LANGUAGE LANG_CZECH, SUBLANG_DEFAULT
|
||||||
|
|
||||||
|
STRINGTABLE
|
||||||
|
BEGIN
|
||||||
|
IDS_INSTALL "Nainstalovat"
|
||||||
|
IDS_PRINT "Tisk"
|
||||||
|
IDS_STRING "Příliš žluťoučký kůň úpěl ďábelské ódy. 1234567890"
|
||||||
|
IDS_OPEN "Otevřít soubor písma..."
|
||||||
|
IDS_ERROR "Chyba"
|
||||||
|
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."
|
||||||
|
END
|
Loading…
Reference in a new issue