discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

About internationalization, again


From: Germán Arias
Subject: About internationalization, again
Date: Thu, 05 Feb 2009 13:12:09 -0600

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?






reply via email to

[Prev in Thread] Current Thread [Next in Thread]