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