From: Hans de Goede Date: Tue, 15 Aug 2023 10:19:40 +0000 (+0200) Subject: i18n: Fix translations not working after meson conversion X-Git-Tag: 23.51.283~24^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c44a310575ef8a425b87e266b14082d0ea34ff9a;p=thirdparty%2Fplymouth.git i18n: Fix translations not working after meson conversion After the meson conversion ENABLE_NLS and PACKAGE are no longer defined. The meson i18n module should ensure that dgettext() is always available, so simply always use it to fix the translations not working. Signed-off-by: Hans de Goede --- diff --git a/src/libply/ply-i18n.h b/src/libply/ply-i18n.h index 6e4e471b..4d06cb13 100644 --- a/src/libply/ply-i18n.h +++ b/src/libply/ply-i18n.h @@ -17,11 +17,7 @@ #ifndef PLY_I18N_H #define PLY_I18N_H -#ifdef ENABLE_NLS #include -#define _(String) dgettext (PACKAGE, String) -#else -#define _(String) (String) -#endif +#define _(String) dgettext ("plymouth", String) #endif /* PLY_I18N_H */