mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2024-11-24 18:43:53 +08:00
d9c56d3ca0
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>.
18 lines
309 B
C
18 lines
309 B
C
#ifdef ENABLE_NLS
|
|
#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
|
|
/* FIXME */
|
|
#define NLS_CAT_NAME "e2fsprogs"
|
|
#define LOCALEDIR "/usr/share/locale"
|
|
/* FIXME */
|
|
#else
|
|
#define _(a) (a)
|
|
#define N_(a) a
|
|
#endif
|