2014-10-18 17:13:09 +04:00
|
|
|
#if defined(ENABLE_NLS) && !defined(DEBUGFS)
|
Many files:
badblocks.c, chattr.c, dumpe2fs.c, e2label.c, findsuper.c, fsck.c,
get_device_by_label.c, lsattr.c, mke2fs.c, mklost+found.c,
nls-enable.h, partinfo.c, tune2fs.c, uuidgen.c: Add
Internationalization support as suggested by Marco d'Itri
<md@linux.it>.
2000-02-08 03:47:55 +03:00
|
|
|
#include <libintl.h>
|
|
|
|
#include <locale.h>
|
|
|
|
#define _(a) (gettext (a))
|
|
|
|
#ifdef gettext_noop
|
|
|
|
#define N_(a) gettext_noop (a)
|
|
|
|
#else
|
|
|
|
#define N_(a) (a)
|
|
|
|
#endif
|
2011-10-10 01:08:47 +04:00
|
|
|
#define P_(singular, plural, n) (ngettext (singular, plural, n))
|
2003-05-04 00:35:17 +04:00
|
|
|
#ifndef NLS_CAT_NAME
|
Many files:
badblocks.c, chattr.c, dumpe2fs.c, e2label.c, findsuper.c, fsck.c,
get_device_by_label.c, lsattr.c, mke2fs.c, mklost+found.c,
nls-enable.h, partinfo.c, tune2fs.c, uuidgen.c: Add
Internationalization support as suggested by Marco d'Itri
<md@linux.it>.
2000-02-08 03:47:55 +03:00
|
|
|
#define NLS_CAT_NAME "e2fsprogs"
|
2003-05-04 00:35:17 +04:00
|
|
|
#endif
|
|
|
|
#ifndef LOCALEDIR
|
Many files:
badblocks.c, chattr.c, dumpe2fs.c, e2label.c, findsuper.c, fsck.c,
get_device_by_label.c, lsattr.c, mke2fs.c, mklost+found.c,
nls-enable.h, partinfo.c, tune2fs.c, uuidgen.c: Add
Internationalization support as suggested by Marco d'Itri
<md@linux.it>.
2000-02-08 03:47:55 +03:00
|
|
|
#define LOCALEDIR "/usr/share/locale"
|
2003-05-04 00:35:17 +04:00
|
|
|
#endif
|
Many files:
badblocks.c, chattr.c, dumpe2fs.c, e2label.c, findsuper.c, fsck.c,
get_device_by_label.c, lsattr.c, mke2fs.c, mklost+found.c,
nls-enable.h, partinfo.c, tune2fs.c, uuidgen.c: Add
Internationalization support as suggested by Marco d'Itri
<md@linux.it>.
2000-02-08 03:47:55 +03:00
|
|
|
#else
|
|
|
|
#define _(a) (a)
|
|
|
|
#define N_(a) a
|
2011-10-10 01:08:47 +04:00
|
|
|
#define P_(singular, plural, n) ((n) == 1 ? (singular) : (plural))
|
Many files:
badblocks.c, chattr.c, dumpe2fs.c, e2label.c, findsuper.c, fsck.c,
get_device_by_label.c, lsattr.c, mke2fs.c, mklost+found.c,
nls-enable.h, partinfo.c, tune2fs.c, uuidgen.c: Add
Internationalization support as suggested by Marco d'Itri
<md@linux.it>.
2000-02-08 03:47:55 +03:00
|
|
|
#endif
|