[FONTVIEW]

- add czech translation

- fix a leak
CID #731443

svn path=/trunk/; revision=62671
This commit is contained in:
Kamil Hornicek 2014-04-06 18:57:16 +00:00
parent 0c43ce824a
commit ebf479fc87
3 changed files with 18 additions and 8 deletions

View file

@ -34,8 +34,8 @@ LPCWSTR g_fileName;
static const WCHAR g_szFontViewClassName[] = L"FontViewWClass";
/* Tye definition for the GetFontResourceInfo function */
typedef BOOL (WINAPI *PGFRI)(LPCWSTR, DWORD *, LPVOID, DWORD);
/* GetFontResourceInfoW is undocumented */
BOOL WINAPI GetFontResourceInfoW(LPCWSTR lpFileName, DWORD *pdwBufSize, void* lpBuffer, DWORD dwType);
DWORD
FormatString(
@ -97,8 +97,6 @@ WinMain (HINSTANCE hThisInstance,
HWND hMainWnd;
MSG msg;
WNDCLASSEXW wincl;
HINSTANCE hDLL;
PGFRI GetFontResourceInfoW;
LPCWSTR fileName;
switch (GetUserDefaultUILanguage())
@ -165,10 +163,6 @@ WinMain (HINSTANCE hThisInstance,
return -1;
}
/* Load the GetFontResourceInfo function from gdi32.dll */
hDLL = LoadLibraryW(L"GDI32.DLL");
GetFontResourceInfoW = (PGFRI)GetProcAddress(hDLL, "GetFontResourceInfoW");
/* Get the font name */
dwSize = sizeof(g_ExtLogFontW.elfFullName);
if (!GetFontResourceInfoW(fileName, &dwSize, g_ExtLogFontW.elfFullName, 1))

View file

@ -24,6 +24,9 @@ END
#ifdef LANGUAGE_BG_BG
#include "lang/bg-BG.rc"
#endif
#ifdef LANGUAGE_CS_CZ
#include "lang/cs-CZ.rc"
#endif
#ifdef LANGUAGE_DE_DE
#include "lang/de-DE.rc"
#endif

View 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