[MPlayer-DOCS] translating the GUI

Diego Biurrun diego at biurrun.de
Wed Dec 24 22:25:40 CET 2003


Maciej Paszta writes:
 > On Wednesday 24 of December 2003 20:09, Diego Biurrun wrote:
 > > Torinthiel writes:
 > >  > On Sat, Dec 20, 2003 at 10:18:01PM +0100, Diego Biurrun wrote:
 > >  > > Just try to configure with --language=pl and see the result.
 > >  >
 > >  > Except not all messages go through this. I would say not even most of
 > >  > them.
 > >
 > > Yes.  Localization is not complete yet.  Hmm, maybe this is a
 > > worthwhile project now that we have some more active translators
 > > onboard.  Why don't we start migrating the missing messages to
 > > help_mp-en.h and its many translations?  It should not be too hard.
 > >
 > > Here is an example patch that moves one message.  One thing that we
 > > should keep in mind, is that only MPlayer specific stuff should be
 > > translated.  If we start messing with external libraries syncing
 > > becomes unnecessarily hard.
 > Sounds great, but where's that patch ?

Funny, how everyone here is guilty of forgetting attachments at least
a million times..

OK, this is an _example_ patch, it is _not_ meant to be committed,
but it should show how it is done.  If you want to do this for real,
do not comment out a line, just put in a message string and add that
to help_mp-en.h.  The translations ore optional.  Plus, while we are
at it, we should not go string by string but file by file, so that we
avoid spamming the mailing lists.  So if you want to localize a file,
localize all messages in it, not just one or two.

Furthermore we should decide which messages should be localized.  We
should not touch external libraries, as this makes syncing harder and
maybe we need not translate all debug messages.

Comments?

Diego


Index: parser-cfg.c
===================================================================
RCS file: /cvsroot/mplayer/main/parser-cfg.c,v
retrieving revision 1.6
diff -u -r1.6 parser-cfg.c
--- parser-cfg.c	13 Aug 2003 16:44:39 -0000	1.6
+++ parser-cfg.c	24 Dec 2003 21:20:40 -0000
@@ -11,6 +11,7 @@
 #endif
 
 #include "mp_msg.h"
+#include "help_mp.h"
 #include "m_option.h"
 #include "m_config.h"
 
@@ -42,7 +43,8 @@
 	assert(config != NULL);
 	//	assert(conf_list != NULL);
 #endif
-	mp_msg(MSGT_CFGPARSER,MSGL_INFO,"Reading config file %s", conffile);
+	//mp_msg(MSGT_CFGPARSER,MSGL_INFO,"Reading config file %s", conffile);
+	mp_msg(MSGT_CFGPARSER,MSGL_INFO,MSGTR_ReadingConfFile, conffile);
 
 	if (recursion_depth > MAX_RECURSION_DEPTH) {
 		mp_msg(MSGT_CFGPARSER,MSGL_ERR,": too deep 'include'. check your configfiles\n");
Index: help/help_mp-de.h
===================================================================
RCS file: /cvsroot/mplayer/main/help/help_mp-de.h,v
retrieving revision 1.75
diff -u -r1.75 help_mp-de.h
--- help/help_mp-de.h	8 Dec 2003 21:41:29 -0000	1.75
+++ help/help_mp-de.h	24 Dec 2003 21:20:41 -0000
@@ -337,6 +337,9 @@
 #define MSGTR_LIRCopenfailed "Fehler beim Öffnen der LIRC Unterstützung.\n"
 #define MSGTR_LIRCcfgerr "Kann LIRC-Konfigurationsdatei %s nicht lesen.\n"
 
+// parser-cfg.c                 
+#define MSGTR_ReadingConfFile "Lese Konfigurationsdatei %s"
+
 // vf.c
 #define MSGTR_CouldNotFindVideoFilter "Konnte Videofilter '%s' nicht finden.\n"
 #define MSGTR_CouldNotOpenVideoFilter "Konnte Videofilter '%s' nicht öffnen.\n"
Index: help/help_mp-en.h
===================================================================
RCS file: /cvsroot/mplayer/main/help/help_mp-en.h,v
retrieving revision 1.115
diff -u -r1.115 help_mp-en.h
--- help/help_mp-en.h	8 Dec 2003 21:41:29 -0000	1.115
+++ help/help_mp-en.h	24 Dec 2003 21:20:41 -0000
@@ -347,6 +347,9 @@
 #define MSGTR_LIRCopenfailed "Failed to open LIRC support.\n"
 #define MSGTR_LIRCcfgerr "Failed to read LIRC config file %s.\n"
 
+// parser-cfg.c
+#define MSGTR_ReadingConfFile "Reading configuration file %s"
+
 // vf.c
 #define MSGTR_CouldNotFindVideoFilter "Couldn't find video filter '%s'.\n"
 #define MSGTR_CouldNotOpenVideoFilter "Couldn't open video filter '%s'.\n"




More information about the MPlayer-DOCS mailing list