1 /*****************************************************************************
2 * x264_gtk_i18n.h: h264 gtk encoder frontend
3 *****************************************************************************
4 * Copyright (C) 2006 Vincent Torri
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111, USA.
19 *****************************************************************************/
21 #ifndef X264_GTK_I18N_H
22 #define X264_GTK_I18N_H
28 #define _(X) gettext(X)
29 #define GETTEXT_DOMAIN "x264_gtk"
31 #ifdef X264_GTK_PRIVATE_H
32 /* x264_path must be known for this to work */
33 # define BIND_X264_TEXTDOMAIN() \
34 gchar* x264_tmp = x264_gtk_path("locale"); \
35 bindtextdomain(GETTEXT_DOMAIN, x264_tmp); \
37 bind_textdomain_codeset (GETTEXT_DOMAIN, "UTF-8"); \
38 textdomain(GETTEXT_DOMAIN)
40 # define BIND_X264_TEXTDOMAIN() you_must_include_x64_gtk_private_h_first
44 #endif /* X264_GTK_I18N_H */