--- a/src/main.c Mon Jul 28 04:45:24 2008 +0000 +++ b/src/main.c Sat Jan 03 07:30:26 2009 +0000 @@ -35,9 +35,6 @@ #include "maple/maple.h" #include "sh4/sh4.h" -#ifdef APPLE_BUILD -#include -#endif char *option_list = "a:A:c:dhHl:m:npt:T:uvV:x?"; struct option longopts[] = { @@ -98,19 +95,8 @@ void bind_gettext_domain() { #ifdef ENABLE_NLS -#ifdef APPLE_BUILD - NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; - NSString *resourcePath = [[NSBundle mainBundle] resourcePath]; - bindtextdomain( PACKAGE, [resourcePath UTF8String] ); -#ifdef HAVE_BIND_TEXTDOMAIN_CODESET - bind_textdomain_codeset( PACKAGE, "UTF-8" ); -#endif - [pool release]; -#else - bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR); -#endif + bindtextdomain( PACKAGE, get_locale_path() ); textdomain(PACKAGE); - #endif }