libintlemu.h (776B)
1 /* 2 * libintlemu - A Core Foundation libintl emulator 3 * Copyright Copyright (C) 2008 Heikki Lindholm <holin@iki.fi> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 */ 10 11 #ifndef LIBINTLEMU_H 12 #define LIBINTLEMU_H 13 14 #include <CoreFoundation/CoreFoundation.h> 15 16 #define gettext(msgid) \ 17 intlemu_bgettext (CFBundleGetMainBundle (), msgid) 18 19 #define dgettext(domainname, msgid) \ 20 intlemu_bgettext (CFBundleGetBundleWithIdentifier (CFSTR (domainname)), msgid) 21 22 #define gettext_noop(s) s 23 24 extern char *intlemu_bgettext (CFBundleRef bundle, const char *msgid); 25 26 #endif