2 months ago | Paul Boddie | file changeset files shortlog | Merged changes from the default branch. | libc_newlib |
paul@181 | 1 | #if defined(ENABLE_NLS) && !defined(DEBUGFS) |
paul@181 | 2 | #include <libintl.h> |
paul@181 | 3 | #include <locale.h> |
paul@181 | 4 | #define _(a) (gettext (a)) |
paul@181 | 5 | #ifdef gettext_noop |
paul@181 | 6 | #define N_(a) gettext_noop (a) |
paul@181 | 7 | #else |
paul@181 | 8 | #define N_(a) (a) |
paul@181 | 9 | #endif |
paul@181 | 10 | #define P_(singular, plural, n) (ngettext (singular, plural, n)) |
paul@181 | 11 | #ifndef NLS_CAT_NAME |
paul@181 | 12 | #define NLS_CAT_NAME "e2fsprogs" |
paul@181 | 13 | #endif |
paul@181 | 14 | #ifndef LOCALEDIR |
paul@181 | 15 | #define LOCALEDIR "/usr/share/locale" |
paul@181 | 16 | #endif |
paul@181 | 17 | #else |
paul@181 | 18 | #define _(a) (a) |
paul@181 | 19 | #define N_(a) a |
paul@181 | 20 | #define P_(singular, plural, n) ((n) == 1 ? (singular) : (plural)) |
paul@181 | 21 | #endif |