LiVES  3.2.0
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 /*
12  Standard gettext macros.
13 */
14 #ifdef ENABLE_NLS
15 
16 char *translate(const char *String);
17 char *translate_with_plural(const char *String, const char *StringPlural, unsigned long int n);
18 
19 /*
20  non-Standard gettext macros.
21 */
22 char *translate_with_hash(const char *String);
23 char *translate_with_plural_hash(const char *String, const char *StringPlural, unsigned long int n);
24 
25 # include <libintl.h>
26 # include <locale.h>
27 # undef _
28 # define _(String) (translate(String))
29 # define H_(String) (translate_with_hash(String))
30 # define P_(String, StringPlural, n) (translate_with_plural(String, StringPlural, n))
31 # define h_(String, StringPlural, n) (translate_with_plural_hash(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 #endif
49 
50 
51 
translate_with_plural_hash
LIVES_GLOBAL_INLINE char * translate_with_plural_hash(const char *String, const char *StringPlural, unsigned long int n)
Definition: support.c:46
translate_with_plural
LIVES_GLOBAL_INLINE char * translate_with_plural(const char *String, const char *StringPlural, unsigned long int n)
Definition: support.c:42
translate_with_hash
LIVES_GLOBAL_INLINE char * translate_with_hash(const char *String)
Definition: support.c:35
translate
LIVES_GLOBAL_INLINE char * translate(const char *String)
Definition: support.c:31