]> git.sesse.net Git - vlc/commitdiff
Worked around a bug with the Screens menu and localization.
authorChristophe Massiot <massiot@videolan.org>
Sun, 2 Feb 2003 23:11:17 +0000 (23:11 +0000)
committerChristophe Massiot <massiot@videolan.org>
Sun, 2 Feb 2003 23:11:17 +0000 (23:11 +0000)
modules/gui/macosx/intf.m
modules/gui/macosx/vout.m

index 271eaeac9e6e51ca1e2cfc79f46152f4fb9f78de..df688e9620e95e791f290fa53911448d8047cfff 100644 (file)
@@ -2,7 +2,7 @@
  * intf.m: MacOS X interface plugin
  *****************************************************************************
  * Copyright (C) 2002-2003 VideoLAN
- * $Id: intf.m,v 1.43 2003/02/01 23:46:24 massiot Exp $
+ * $Id: intf.m,v 1.44 2003/02/02 23:11:17 massiot Exp $
  *
  * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
  *          Christophe Massiot <massiot@via.ecp.fr>
@@ -1253,7 +1253,8 @@ int ExecuteOnMainThread( id target, SEL sel, void * p_arg )
         NSMenuItem * o_lmi;
         NSString * o_title;
 
-        o_title = [NSApp localizedString: val.p_list->p_values[i].psz_string];
+        //o_title = [NSApp localizedString: val.p_list->p_values[i].psz_string];
+        o_title = [NSString stringWithCString: val.p_list->p_values[i].psz_string];
         o_lmi = [o_menu addItemWithTitle: o_title
                  action: pf_callback keyEquivalent: @""];
         /* FIXME: this isn't 64-bit clean ! */
index 8a57734bad08932a42fe869beff0f1392f4840ac..5c175f45826912f3bae0c1eee0c4102f17db518b 100644 (file)
@@ -2,7 +2,7 @@
  * vout.m: MacOS X video output plugin
  *****************************************************************************
  * Copyright (C) 2001-2003 VideoLAN
- * $Id: vout.m,v 1.21 2003/01/31 02:53:52 jlj Exp $
+ * $Id: vout.m,v 1.22 2003/02/02 23:11:17 massiot Exp $
  *
  * Authors: Colin Delacroix <colin@zoy.org>
  *          Florian G. Pflug <fgp@phlo.org>
@@ -191,7 +191,7 @@ int E_(OpenVideo) ( vlc_object_t *p_this )
             NSRect s_rect = [o_screen frame];
 
             snprintf( psz_temp, sizeof(psz_temp)/sizeof(psz_temp[0])-1, 
-                      "%s %d (%dx%d)", _("Screen"), i,
+                      "%s %d (%dx%d)", "Screen", i,
                       (int)s_rect.size.width, (int)s_rect.size.height ); 
 
             val.psz_string = psz_temp;
@@ -932,7 +932,7 @@ static void QTFreePicture( vout_thread_t *p_vout, picture_t *p_pic )
         unsigned int i_index = 0;
         NSArray *o_screens = [NSScreen screens];
 
-        if( !sscanf( val.psz_string, _("Screen %d"), &i_index ) ||
+        if( !sscanf( val.psz_string, "Screen %d", &i_index ) ||
             [o_screens count] < i_index )
         {
             o_screen = [NSScreen mainScreen];