File: nls-enable.h

package info (click to toggle)
e2fsprogs 1.43.4-2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 33,952 kB
  • ctags: 11,812
  • sloc: ansic: 120,622; sh: 5,852; makefile: 5,473; awk: 523; yacc: 288; sed: 207; perl: 170; python: 23
file content (21 lines) | stat: -rw-r--r-- 497 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#if defined(ENABLE_NLS) && !defined(DEBUGFS)
#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
#define P_(singular, plural, n) (ngettext (singular, plural, n))
#ifndef NLS_CAT_NAME
#define NLS_CAT_NAME "e2fsprogs"
#endif
#ifndef LOCALEDIR
#define LOCALEDIR "/usr/share/locale"
#endif
#else
#define _(a) (a)
#define N_(a) a
#define P_(singular, plural, n) ((n) == 1 ? (singular) : (plural))
#endif