Hi, after try many ways to internationalize my app, I do that with two
gorm files, one in English and other in Spanish. Then I add in the
main.m file this

  NSArray *lenguajes = [NSUserDefaults userLanguages] ;
  NSString *preferido = [lenguajes objectAtIndex: 0] ;
 
  CREATE_AUTORELEASE_POOL (pool);
  NSApp = [NSApplication sharedApplication];

  if([preferido hasSuffix: @"Spanish"])
  {
  [NSBundle loadNibNamed:@"Trad2_es.gorm" owner:NSApp];  
  }
  else
  {
  [NSBundle loadNibNamed:@"Trad2.gorm" owner:NSApp];
  } 

  [NSApp run] ;
  
  [NSApp release] ;
  [pool realese] ;
  
  return NSApplicationMain (argc, argv);


With this the app work fine, but I get many errors in the Launch Panel
(in Project Center). Something like 


2009-02-05 13:00:40.777 Trad2[13473] autorelease called without pool for
object (80f0c10) of class GSCBufferString in thread <NSThread:
0x80885f0>
2009-02-05 13:00:40.789 Trad2[13473] autorelease called without pool for
object (80f0d08) of class NSUserDefaults in thread <NSThread: 0x80885f0>
2009-02-05 13:00:40.799 Trad2[13473] autorelease called without pool for
object (80eee38) of class GSArrayEnumerator in thread <NSThread:
0x80885f0>
2009-02-05 13:00:40.809 Trad2[13473] autorelease called without pool for
object (814ce70) of class GSCSubString in thread <NSThread: 0x80885f0>
2009-02-05 13:00:40.809 Trad2[13473] autorelease called without pool for
object (810cb38) of class GSCInlineString in thread <NSThread:
0x80885f0>
2009-02-05 13:00:40.809 Trad2[13473] autorelease called without pool for
object (8109060) of class GSCInlineString in thread <NSThread:
0x80885f0>


Any suggestion?




_______________________________________________
Discuss-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to