]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
i18n: Fix translations not working after meson conversion
authorHans de Goede <hdegoede@redhat.com>
Tue, 15 Aug 2023 10:19:40 +0000 (12:19 +0200)
committerHans de Goede <hdegoede@redhat.com>
Tue, 15 Aug 2023 10:33:11 +0000 (12:33 +0200)
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 <hdegoede@redhat.com>
src/libply/ply-i18n.h

index 6e4e471b2aa3cb927be98ef221b5eaa5564ae726..4d06cb13524c8914187d04cdcea9020b58393a67 100644 (file)
 #ifndef PLY_I18N_H
 #define PLY_I18N_H
 
-#ifdef ENABLE_NLS
 #include <libintl.h>
-#define _(String) dgettext (PACKAGE, String)
-#else
-#define _(String) (String)
-#endif
+#define _(String) dgettext ("plymouth", String)
 
 #endif /* PLY_I18N_H */