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