lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | #ifdef ENABLE_NLS |
| 2 | #include <libintl.h> |
| 3 | #include <locale.h> |
| 4 | #define _(a) (gettext (a)) |
| 5 | #ifdef gettext_noop |
| 6 | #define N_(a) gettext_noop (a) |
| 7 | #else |
| 8 | #define N_(a) (a) |
| 9 | #endif |
| 10 | #define P_(singular, plural, n) (ngettext (singular, plural, n)) |
| 11 | #ifndef NLS_CAT_NAME |
| 12 | #define NLS_CAT_NAME "e2fsprogs" |
| 13 | #endif |
| 14 | #ifndef LOCALEDIR |
| 15 | #define LOCALEDIR "/usr/share/locale" |
| 16 | #endif |
| 17 | #else |
| 18 | #define _(a) (a) |
| 19 | #define N_(a) a |
| 20 | #define P_(singular, plural, n) ((n) == 1 ? (singular) : (plural)) |
| 21 | #endif |