22 lines
490 B
C
22 lines
490 B
C
#ifndef I18N_H_
|
|
# define I18N_H_
|
|
|
|
# include "config.h"
|
|
|
|
# if !ENABLE_NLS
|
|
# define _(String) String
|
|
# define _s(String, Plural, Quantity) ((Quantity) == 1 ? String : Plural)
|
|
# else
|
|
# include <libintl.h>
|
|
# define _(String) dgettext(PACKAGE, String)
|
|
# define _s(String, Plural, Quantity) \
|
|
dngettext(PACKAGE, String, Plural, (Quantity))
|
|
# endif
|
|
|
|
// Used to mark string for gettext
|
|
# define N_(Str) Str
|
|
# define N_s(Str, Pl) {Str, Pl}
|
|
|
|
void init_i18n(void);
|
|
|
|
#endif /* !I18N_H_ */
|