|
From: | Joshua Pettus |
Subject: | Re: [XBoard-devel] Gettext localization will work with the osx app! |
Date: | Sun, 5 Oct 2014 22:50:52 -0400 |
Ha! After studying a lot of code found on the internet, remembering what HGM taught me, learning a little more how things work, plus some very lucky guess work of my own, I found a working solution to my problem! In gtk/xboard.c: #ifdef ENABLE_NLS // if (appData.debugMode) { // fprintf(debugFP, "locale = %s\n", setlocale(LC_ALL, NULL)); // } + #ifdef __APPLE__ + char *res_path; + res_path = gtkosx_application_get_resource_path (); + #undef LOCALEDIR + #define LOCALEDIR g_strconcat (res_path, "/share/locale", NULL ) // redefine localedir for OSX bundle + #endif bindtextdomain(PACKAGE, LOCALEDIR); bind_textdomain_codeset(PACKAGE, "UTF-8"); // needed when creating markup for the clocks textdomain(PACKAGE); #endif Not bad for someone who doesn’t know coding. :-) HGM, I’m sure you have a better solution with the systems in place, whenever you get around to it for 4.8.1. Regards, Josh Pettus On 05.10.2014, at 01:55 vorm., Joshua Pettus <address@hidden> wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |