1.1 --- a/src/main.c Wed Jun 25 10:39:05 2008 +0000
1.2 +++ b/src/main.c Sun Jul 06 03:16:21 2008 +0000
1.4 #include "maple/maple.h"
1.8 +#include <AppKit/AppKit.h>
1.11 char *option_list = "a:A:c:dhHl:m:npt:T:uvV:x?";
1.12 struct option longopts[] = {
1.13 { "aica", required_argument, NULL, 'a' },
1.15 printf( " -x %s\n", _("Disable the SH4 translator") );
1.18 +void bind_gettext_domain()
1.22 + NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
1.23 + NSString *resourcePath = [[NSBundle mainBundle] resourcePath];
1.24 + bindtextdomain( PACKAGE, [resourcePath UTF8String] );
1.25 +#ifdef HAVE_BIND_TEXTDOMAIN_CODESET
1.26 + bind_textdomain_codeset( PACKAGE, "UTF-8" );
1.30 + bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR);
1.32 + textdomain(PACKAGE);
1.37 int main (int argc, char *argv[])
1.41 uint32_t time_secs, time_nanos;
1.43 install_crash_handler();
1.45 - bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR);
1.46 - textdomain (PACKAGE);
1.48 + bind_gettext_domain();
1.49 display_ok = gui_parse_cmdline(&argc, &argv);
1.51 while( (opt = getopt_long( argc, argv, option_list, longopts, NULL )) != -1 ) {