]>
git.ipfire.org Git - thirdparty/util-linux.git/blob - include/nls.h
1 #ifndef UTIL_LINUX_NLS_H
2 #define UTIL_LINUX_NLS_H
5 #define LOCALEDIR "/usr/share/locale"
12 # define setlocale(Category, Locale) /* empty */
18 # define localeconv() NULL
25 * For NLS support in the public shared libraries we have to specify text
26 * domain name to be independent on the main program. For this purpose define
27 * UL_TEXTDOMAIN_EXPLICIT before you include nls.h to your shared library code.
29 # ifdef UL_TEXTDOMAIN_EXPLICIT
30 # define _(Text) dgettext (UL_TEXTDOMAIN_EXPLICIT, Text)
32 # define _(Text) gettext (Text)
35 # define N_(String) gettext_noop (String)
37 # define N_(String) (String)
39 # define P_(Singular, Plural, n) ngettext (Singular, Plural, n)
41 # undef bindtextdomain
42 # define bindtextdomain(Domain, Directory) /* empty */
44 # define textdomain(Domain) /* empty */
45 # define _(Text) (Text)
46 # define N_(Text) (Text)
47 # define P_(Singular, Plural, n) ((n) == 1 ? (Singular) : (Plural))
48 #endif /* ENABLE_NLS */
50 #ifdef HAVE_LANGINFO_H
51 # include <langinfo.h>
55 extern char *langinfo_fallback(nl_item item
);
57 # define nl_langinfo langinfo_fallback
121 #endif /* !HAVE_LANGINFO_H */
123 #ifndef HAVE_LANGINFO_ALTMON
124 # define ALTMON_1 MON_1
125 # define ALTMON_2 MON_2
126 # define ALTMON_3 MON_3
127 # define ALTMON_4 MON_4
128 # define ALTMON_5 MON_5
129 # define ALTMON_6 MON_6
130 # define ALTMON_7 MON_7
131 # define ALTMON_8 MON_8
132 # define ALTMON_9 MON_9
133 # define ALTMON_10 MON_10
134 # define ALTMON_11 MON_11
135 # define ALTMON_12 MON_12
136 #endif /* !HAVE_LANGINFO_ALTMON */
138 #ifndef HAVE_LANGINFO_NL_ABALTMON
139 # define _NL_ABALTMON_1 ABMON_1
140 # define _NL_ABALTMON_2 ABMON_2
141 # define _NL_ABALTMON_3 ABMON_3
142 # define _NL_ABALTMON_4 ABMON_4
143 # define _NL_ABALTMON_5 ABMON_5
144 # define _NL_ABALTMON_6 ABMON_6
145 # define _NL_ABALTMON_7 ABMON_7
146 # define _NL_ABALTMON_8 ABMON_8
147 # define _NL_ABALTMON_9 ABMON_9
148 # define _NL_ABALTMON_10 ABMON_10
149 # define _NL_ABALTMON_11 ABMON_11
150 # define _NL_ABALTMON_12 ABMON_12
151 #endif /* !HAVE_LANGINFO_NL_ABALTMON */
153 #endif /* UTIL_LINUX_NLS_H */