]> git.sesse.net Git - vlc/commitdiff
ALL: fixed i18n under BeOS
authorEric Petit <titer@videolan.org>
Fri, 18 Apr 2003 15:25:51 +0000 (15:25 +0000)
committerEric Petit <titer@videolan.org>
Fri, 18 Apr 2003 15:25:51 +0000 (15:25 +0000)
Makefile.am
modules/gui/beos/InterfaceWindow.cpp
src/libvlc.c

index 494f197f73aa441ac076a9e57fc27723ed0bc1b1..387e3e5c753511008e5ba58aa4181032d4bdad82 100644 (file)
@@ -443,9 +443,15 @@ DEPENDENCIES_vlc = lib/libvlc.a $(L_builtin) $(DATA_win32_rc) $(LIB_intl)
 vlc$(EXEEXT): $(vlc_OBJECTS) $(DEPENDENCIES_vlc)
        @rm -f vlc$(EXEEXT)
        $(LINK) $(vlc_LDFLAGS) $(vlc_OBJECTS) $(vlc_LDADD) $(LIBS)
+
 if HAVE_BEOS
        xres -o $@ ./share/vlc_beos.rsrc
        mimeset -f $@
+       $(INSTALL) -d locale
+       for i in $(ALL_LINGUAS); do \
+               mkdir -p locale/$${i}/LC_MESSAGES ; \
+               cp po/$${i}.gmo locale/$${i}/LC_MESSAGES/vlc.mo || true ; \
+       done
 endif
 
 # Install the symlinks
index b33b5f141e350c6c74c65fe0013017ec63cf82fa..b60c059c2245289e457f3ebb07561c5828992598 100644 (file)
@@ -2,7 +2,7 @@
  * InterfaceWindow.cpp: beos interface
  *****************************************************************************
  * Copyright (C) 1999, 2000, 2001 VideoLAN
- * $Id: InterfaceWindow.cpp,v 1.31 2003/03/12 23:15:03 titer Exp $
+ * $Id: InterfaceWindow.cpp,v 1.32 2003/04/18 15:25:50 titer Exp $
  *
  * Authors: Jean-Marc Dressler <polux@via.ecp.fr>
  *          Samuel Hocevar <sam@zoy.org>
@@ -242,7 +242,7 @@ InterfaceWindow::InterfaceWindow( BRect frame, const char* name,
     AddChild( p_mediaControl );
 
     // Add the file Menu
-    BMenu* fileMenu = new BMenu( "File" );
+    BMenu* fileMenu = new BMenu( _("File") );
     fMenuBar->AddItem( fileMenu );
     fileMenu->AddItem( new BMenuItem( "Open File" B_UTF8_ELLIPSIS,
                                       new BMessage( OPEN_FILE ), 'O') );
@@ -263,7 +263,7 @@ InterfaceWindow::InterfaceWindow( BRect frame, const char* name,
     fSubtitlesMenu = new LanguageMenu("Subtitles", SPU_ES, p_wrapper);
 
     /* Add the Audio menu */
-    fAudioMenu = new BMenu( "Audio" );
+    fAudioMenu = new BMenu( _("Audio") );
     fMenuBar->AddItem ( fAudioMenu );
     fAudioMenu->AddItem( fLanguageMenu );
     fAudioMenu->AddItem( fSubtitlesMenu );
@@ -275,7 +275,7 @@ InterfaceWindow::InterfaceWindow( BRect frame, const char* name,
     fGotoMenuMI = new BMenuItem( "Goto Menu", new BMessage( NAVIGATE_MENU ) );
 
     /* Add the Navigation menu */
-    fNavigationMenu = new BMenu( "Navigation" );
+    fNavigationMenu = new BMenu( _("Navigation") );
     fMenuBar->AddItem( fNavigationMenu );
     fNavigationMenu->AddItem( fGotoMenuMI );
     fNavigationMenu->AddSeparatorItem();
@@ -288,7 +288,7 @@ InterfaceWindow::InterfaceWindow( BRect frame, const char* name,
     fNavigationMenu->AddItem( fChapterMenu = new ChapterMenu( "Go to Chapter", p_intf ) );
 
     /* Add the Speed menu */
-    fSpeedMenu = new BMenu( "Speed" );
+    fSpeedMenu = new BMenu( _("Speed") );
     fSpeedMenu->SetRadioMode( true );
     fSpeedMenu->AddItem( fSlowerMI = new BMenuItem( "Slower", new BMessage( SLOWER_PLAY ) ) );
     fNormalMI = new BMenuItem( "Normal", new BMessage( NORMAL_PLAY ) );
@@ -299,7 +299,7 @@ InterfaceWindow::InterfaceWindow( BRect frame, const char* name,
     fMenuBar->AddItem( fSpeedMenu );
 
     /* Add the Show menu */
-    fShowMenu = new BMenu( "Window" );
+    fShowMenu = new BMenu( _("Window") );
     fShowMenu->AddItem( new BMenuItem( "Play List" B_UTF8_ELLIPSIS,
                                        new BMessage( OPEN_PLAYLIST ), 'P') );
     fShowMenu->AddItem( new BMenuItem( "Messages" B_UTF8_ELLIPSIS,
index c4925395867095e8ee369262d57afe2381dcb2d9..f96c6c57693315de550b8ea227acf2e7a21fbb3b 100644 (file)
@@ -2,7 +2,7 @@
  * libvlc.c: main libvlc source
  *****************************************************************************
  * Copyright (C) 1998-2002 VideoLAN
- * $Id: libvlc.c,v 1.78 2003/04/09 19:58:25 gbazin Exp $
+ * $Id: libvlc.c,v 1.79 2003/04/18 15:25:51 titer Exp $
  *
  * Authors: Vincent Seguin <seguin@via.ecp.fr>
  *          Samuel Hocevar <sam@zoy.org>
@@ -1007,7 +1007,7 @@ static void SetLanguage ( char const *psz_lang )
      && ( defined( HAVE_GETTEXT ) || defined( HAVE_INCLUDED_GETTEXT ) )
 
     char *          psz_path;
-#if defined( SYS_DARWIN ) || defined ( WIN32 )
+#if defined( SYS_DARWIN ) || defined ( WIN32 ) || defined( SYS_BEOS )
     char            psz_tmp[1024];
 #endif
 
@@ -1043,7 +1043,7 @@ static void SetLanguage ( char const *psz_lang )
     }
 
     /* Specify where to find the locales for current domain */
-#if !defined( SYS_DARWIN ) && !defined( WIN32 )
+#if !defined( SYS_DARWIN ) && !defined( WIN32 ) && !defined( SYS_BEOS )
     psz_path = LOCALEDIR;
 #else
     snprintf( psz_tmp, sizeof(psz_tmp), "%s/%s", libvlc.psz_vlcpath,