delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to geda-user-bounces using -f |
X-Recipient: | geda-user AT delorie DOT com |
X-Mailer: | exmh version 2.7.2 01/07/2005 (debian 1:2.7.2-18) with nmh-1.3 |
X-Exmh-Isig-CompType: | repl |
X-Exmh-Isig-Folder: | inbox |
To: | geda-user AT delorie DOT com |
Subject: | Re: [geda-user] Bug #903129 Translations don't work on Windows |
In-reply-to: | <20121116135510.6D56B81345EB@turkos.aspodata.se> |
References: | <20121113211401 DOT 20747813A49B AT turkos DOT aspodata DOT se> <CAOuGh89nhtaPkKZ+0CJGn9V_XnZyi6YD-NndT53FHoAyYD0LFw AT mail DOT gmail DOT com> <20121115210903 DOT 90A4881345E3 AT turkos DOT aspodata DOT se> <CAPYb0EE-xqA681-iq9AwnL7Wq1j9NL7AP383X5qe5QeCZZW0Ug AT mail DOT gmail DOT com> <20121116135510 DOT 6D56B81345EB AT turkos DOT aspodata DOT se> |
Comments: | In-reply-to karl AT aspodata DOT se (Karl Hammar) |
message dated "Fri, 16 Nov 2012 14:55:10 +0100." | |
Mime-Version: | 1.0 |
Message-Id: | <20121116145802.521AD81345EE@turkos.aspodata.se> |
Date: | Fri, 16 Nov 2012 15:58:02 +0100 (CET) |
From: | karl AT aspodata DOT se (Karl Hammar) |
X-Virus-Scanned: | ClamAV using ClamSMTP |
Reply-To: | geda-user AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | geda-user AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
Karl Hammar: > Bob Paddock: ... > > > e, install geda things in some dir, so: > > > > As long as 'dir' is not hard coded that is fine. > > Installers will generally take care of setting that. > > > > > the binaries are in dir\bin > > > locale files are in dir\share\locale > > > > That works. > > Then I consider this as the preferred choice. So the code would wind down to something like: some header file: #if defined (_WIN32) char get_locale(void); #endif some compatibility file: #if defined (_WIN32) char get_locale() { char *a = g_win32_get_package_installation_directory_of_module(NULL); char *b = g_build_filename(a, "share", "locale"); g_free(a); return b; } #endif libgeda.c: #if defined (_WIN32) { char a = get_locale(); bindtextdomain (LIBGEDA_GETTEXT_DOMAIN, a); g_free(a); } #else bindtextdomain (LIBGEDA_GETTEXT_DOMAIN, LOCALEDIR); #endif /// I have not access to any computer with MS-Windows on it, anyone care to test this? Regards, /Karl Hammar ----------------------------------------------------------------------- Aspö Data Lilla Aspö 148 S-742 94 Östhammar Sweden +46 173 140 57
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |