Author: khornicek
Date: Sun Apr 6 18:57:16 2014
New Revision: 62671
URL:
http://svn.reactos.org/svn/reactos?rev=62671&view=rev
Log:
[FONTVIEW]
- add czech translation
- fix a leak
CID #731443
Added:
trunk/reactos/base/applications/fontview/lang/cs-CZ.rc (with props)
Modified:
trunk/reactos/base/applications/fontview/fontview.c
trunk/reactos/base/applications/fontview/fontview.rc
Modified: trunk/reactos/base/applications/fontview/fontview.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/fontview…
==============================================================================
--- trunk/reactos/base/applications/fontview/fontview.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/fontview/fontview.c [iso-8859-1] Sun Apr 6 18:57:16
2014
@@ -34,8 +34,8 @@
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 @@
HWND hMainWnd;
MSG msg;
WNDCLASSEXW wincl;
- HINSTANCE hDLL;
- PGFRI GetFontResourceInfoW;
LPCWSTR fileName;
switch (GetUserDefaultUILanguage())
@@ -164,10 +162,6 @@
ErrorMsgBox(0, IDS_ERROR, IDS_ERROR_NOFONT, fileName);
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);
Modified: trunk/reactos/base/applications/fontview/fontview.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/fontview…
==============================================================================
--- trunk/reactos/base/applications/fontview/fontview.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/fontview/fontview.rc [iso-8859-1] Sun Apr 6 18:57:16
2014
@@ -23,6 +23,9 @@
#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"
Added: trunk/reactos/base/applications/fontview/lang/cs-CZ.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/fontview…
==============================================================================
--- trunk/reactos/base/applications/fontview/lang/cs-CZ.rc (added)
+++ trunk/reactos/base/applications/fontview/lang/cs-CZ.rc [iso-8859-1] Sun Apr 6
18:57:16 2014
@@ -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
Propchange: trunk/reactos/base/applications/fontview/lang/cs-CZ.rc
------------------------------------------------------------------------------
svn:eol-style = native