1 /***************************************************************** 2 * gmerlin - a general purpose multimedia framework and applications 3 * 4 * Copyright (c) 2001 - 2011 Members of the Gmerlin project 5 * gmerlin-general@lists.sourceforge.net 6 * http://gmerlin.sourceforge.net 7 * 8 * This program is free software: you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation, either version 2 of the License, or 11 * (at your option) any later version. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program. If not, see <http://www.gnu.org/licenses/>. 20 * *****************************************************************/ 21 22 #include <libintl.h> 23 24 /* Static strings (will be regognized by xgettext) */ 25 #define TRS(s) s 26 27 /* Just add the string to the .po files, even if it doesn't occur 28 * anywhere in the source. This can be used to translate messages 29 * coming from other (not gettextized) libs. 30 */ 31 32 #define TRU(s) 33 34 #define TRD(s, d) (d ? dgettext(d, s) : dgettext(PACKAGE, s)) 35 36 #define TR(s) dgettext(PACKAGE, s) 37 38 #define TR_DOM(str) dgettext((translation_domain ? translation_domain : PACKAGE), str) 39 40 void bg_translation_init(); 41 42 void bg_bindtextdomain(const char * domainname, const char * dirname); 43 44 #define BG_LOCALE \ 45 .gettext_domain = PACKAGE, \ 46 .gettext_directory = LOCALE_DIR 47