LiVES  3.0.2
support.h
Go to the documentation of this file.
1 // support.h
2 // LiVES
3 // portions of this file were auto-generated by glade, the remainder is (c) G. Finch (salsaman) 2002 - 2015
4 
5 // released under the GNU GPL 3 or later
6 // see file ../COPYING or www.gnu.org for licensing details
7 
8 #ifndef HAS_LIVES_SUPPORT_H
9 #define HAS_LIVES_SUPPORT_H
10 
11 #ifndef NO_GTK
12 #ifndef lives_locale_to_utf8
13 #include <gtk/gtk.h>
14 #define lives_locale_to_utf8(a, b, c, d, e) g_locale_to_utf8(a, b, c, d, e)
15 #endif
16 #endif
17 
18 /*
19  * Standard gettext macros.
20  */
21 #ifdef ENABLE_NLS
22 
23 char *trString;
24 char *translate(const char *String);
25 char *translate_with_plural(const char *String, const char *StringPlural, unsigned long int n);
26 
27 # include <libintl.h>
28 # include <locale.h>
29 # undef _
30 # define _(String) (translate(String))
31 # define P_(String, StringPlural, n) (translate_with_plural(String, StringPlural, n))
32 # ifdef gettext_noop
33 # define N_(String) gettext_noop(String)
34 # else
35 # define N_(String) (String)
36 # endif
37 #else
38 # define textdomain(String) (String)
39 # define gettext(String) (String)
40 # define dgettext(Domain, Message) (Message)
41 # define dngettext(Domain, Message, MsgPlur, n) (Message)
42 # define dcgettext(Domain, Message, Type) (Message)
43 # define bindtextdomain(Domain, Directory) (Domain)
44 # define _(String) (String)
45 # define N_(String) (String)
46 # define P_(String, StringPlural, n) (String)
47 #endif
48 
49 #endif
50