changeset 3595:728258be2e86

lang support.
author pontscho
date Tue, 18 Dec 2001 22:59:04 +0000
parents 3c0d26a18288
children df69220a8d49
files Gui/mplayer/psignal.c help_mp-en.h
diffstat 2 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Gui/mplayer/psignal.c	Tue Dec 18 22:11:48 2001 +0000
+++ b/Gui/mplayer/psignal.c	Tue Dec 18 22:59:04 2001 +0000
@@ -111,17 +111,17 @@
         switch( gtkShMem->mb.type)
          {
            case GTK_MB_FATAL:
-				  gtk_window_set_title (GTK_WINDOW (MessageBox), "fatal error ...");
+				  gtk_window_set_title( GTK_WINDOW( MessageBox ),MSGTR_MSGBOX_LABEL_FatalError );
 				  gtk_widget_hide( WarningPixmap );
 				  gtk_widget_show( ErrorPixmap );
                   break;
            case GTK_MB_ERROR: 
-				  gtk_window_set_title (GTK_WINDOW (MessageBox), "error ...");
+				  gtk_window_set_title( GTK_WINDOW( MessageBox ),MSGTR_MSGBOX_LABEL_Error );
 				  gtk_widget_hide( WarningPixmap );
 				  gtk_widget_show( ErrorPixmap );
                   break;
            case GTK_MB_WARNING: 
- 				 gtk_window_set_title (GTK_WINDOW (MessageBox), "warning ...");
+ 				 gtk_window_set_title( GTK_WINDOW( MessageBox ),MSGTR_MSGBOX_LABEL_Warning );
 				  gtk_widget_show( WarningPixmap );
 				  gtk_widget_hide( ErrorPixmap );
            	   break;
--- a/help_mp-en.h	Tue Dec 18 22:11:48 2001 +0000
+++ b/help_mp-en.h	Tue Dec 18 22:59:04 2001 +0000
@@ -303,4 +303,9 @@
 #define MSGTR_MENU_Preferences "Preferences"
 #define MSGTR_MENU_Exit "Exit ..."
 
+// --- messagebox
+#define MSGTR_MSGBOX_LABEL_FatalError "fatal error ..."
+#define MSGTR_MSGBOX_LABEL_Error "error ..."
+#define MSGTR_MSGBOX_LABEL_Warning "warning ..." 
+
 #endif