[ros-diffs] [mkupfer] 44673: - Add some German translations - Add About-Dialog-Proc

mkupfer at svn.reactos.org mkupfer at svn.reactos.org
Sun Dec 20 19:44:30 CET 2009


Author: mkupfer
Date: Sun Dec 20 19:44:29 2009
New Revision: 44673

URL: http://svn.reactos.org/svn/reactos?rev=44673&view=rev
Log:
- Add some German translations
- Add About-Dialog-Proc

Modified:
    trunk/reactos/base/applications/sndrec32/lang/de-DE.rc
    trunk/reactos/base/applications/sndrec32/sndrec32.cpp

Modified: trunk/reactos/base/applications/sndrec32/lang/de-DE.rc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/sndrec32/lang/de-DE.rc?rev=44673&r1=44672&r2=44673&view=diff
==============================================================================
--- trunk/reactos/base/applications/sndrec32/lang/de-DE.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/sndrec32/lang/de-DE.rc [iso-8859-1] Sun Dec 20 19:44:29 2009
@@ -8,25 +8,25 @@
 
 IDD_ABOUTBOX DIALOGEX 0, 0, 196, 75
 STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
-CAPTION "Information zu reactOS_sndrec32"
+CAPTION "Information zum Audiorecorder"
 FONT 8, "MS Shell Dlg", 0, 0, 0x1
 BEGIN
     ICON            128,IDC_REACTOS_SNDREC32,19,14,21,20
-    LTEXT           "reactOS_sndrec32, Version 1.0",IDC_STATIC,56,16,114,8,SS_NOPREFIX
-    LTEXT           "Copyright (C) 2009",IDC_STATIC,55,25,114,8
+    LTEXT           "ReactOS Audiorecorder, Version 1.0",IDC_STATIC,16,16,134,8,SS_NOPREFIX
+    LTEXT           "Copyright (C) 2009",IDC_STATIC,16,25,134,8
     DEFPUSHBUTTON   "OK",IDOK,139,54,50,14,WS_GROUP
 END
 
 IDR_MENU1 MENU
 BEGIN
-    POPUP "File"
+    POPUP "Datei"
     BEGIN
         MENUITEM "Neu",                         ID_NEW
-        MENUITEM "Öffnen...",                     ID_FILE_OPEN
-        MENUITEM "Speichern",                        ID_FILE_SAVE, GRAYED
-        MENUITEM "Speichern Unter...",                  ID_FILE_SAVEAS, GRAYED
+        MENUITEM "Öffnen...",                   ID_FILE_OPEN
+        MENUITEM "Speichern",                   ID_FILE_SAVE, GRAYED
+        MENUITEM "Speichern unter...",          ID_FILE_SAVEAS, GRAYED
         MENUITEM SEPARATOR
-        MENUITEM "Beenden",                        ID_EXIT
+        MENUITEM "Beenden",                     ID_EXIT
     END
     MENUITEM "todo1",                       0
     MENUITEM "todo2",                       0
@@ -38,6 +38,6 @@
 
 STRINGTABLE
 BEGIN
-    IDS_APP_TITLE           "reactOS_sndrec32"
+    IDS_APP_TITLE           "Audiorecorder"
     IDC_REACTOS_SNDREC32    "REACTOS_SNDREC32"
 END

Modified: trunk/reactos/base/applications/sndrec32/sndrec32.cpp
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/sndrec32/sndrec32.cpp?rev=44673&r1=44672&r2=44673&view=diff
==============================================================================
--- trunk/reactos/base/applications/sndrec32/sndrec32.cpp [iso-8859-1] (original)
+++ trunk/reactos/base/applications/sndrec32/sndrec32.cpp [iso-8859-1] Sun Dec 20 19:44:29 2009
@@ -29,7 +29,6 @@
 BOOL				InitInstance_wave( HWND, HINSTANCE, int );
 LRESULT CALLBACK	WndProc( HWND, UINT, WPARAM, LPARAM );
 LRESULT CALLBACK	WndProc_wave( HWND, UINT, WPARAM, LPARAM );
-INT_PTR CALLBACK	About( HWND, UINT, WPARAM, LPARAM );
 
 BOOL win_first, wout_first;
 
@@ -82,6 +81,24 @@
 RECT cli;
 
 
+INT_PTR CALLBACK AboutDlgProc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp)
+{
+	switch (msg)
+	{
+		case WM_COMMAND:
+			switch (LOWORD(wp))
+			{
+				case IDOK:
+					EndDialog(hWnd, 0);
+					return TRUE;
+			}
+			break;
+		case WM_CLOSE:
+			EndDialog(hWnd, 0);
+			return TRUE;
+	}
+	return FALSE;
+}
 
 
 
@@ -292,7 +309,7 @@
     wcex.hInstance		= hInstance;
     wcex.hIcon			= LoadIcon( hInstance, MAKEINTRESOURCE( IDI_SNDREC32 ));
     wcex.hCursor		= LoadCursor( NULL, IDC_ARROW );
-    wcex.hbrBackground	= (HBRUSH)( 16 );
+    wcex.hbrBackground	= GetSysColorBrush(COLOR_BTNFACE);
     wcex.lpszMenuName	= MAKEINTRESOURCE( IDR_MENU1 );
     wcex.lpszClassName	= szWindowClass;
     wcex.hIconSm		= LoadIcon( wcex.hInstance, MAKEINTRESOURCE( IDI_SNDREC32 ));
@@ -797,8 +814,8 @@
 
         case ID__ABOUT:
             
-
-            
+            DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, AboutDlgProc);
+            return TRUE;
             break;
 
 




More information about the Ros-diffs mailing list