diff options
| author | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2025-11-13 20:04:02 +0100 |
|---|---|---|
| committer | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2025-11-13 20:04:02 +0100 |
| commit | c1cf60e0775f706b513623a47b02edf4c0d2e49d (patch) | |
| tree | 4ab935c346d53019d4865219cfe68d6bd4a70b81 /src/core/nls.h | |
| parent | c8b02c4f0c217c756ad00b4a3f19db931880ae67 (diff) | |
Fix for when NLS is disabled
Diffstat (limited to 'src/core/nls.h')
| -rw-r--r-- | src/core/nls.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/core/nls.h b/src/core/nls.h index c1ef405..dfa640d 100644 --- a/src/core/nls.h +++ b/src/core/nls.h @@ -1,7 +1,21 @@ #ifndef NLS_H #define NLS_H +#if ENABLE_NLS + +#include <config.h> #include <libintl.h> #define _(S) gettext(S) +#define init_nls() \ + do{ \ + bindtextdomain(PACKAGE, LOCALEDIR); \ + textdomain(PACKAGE); \ + }while(0); + +#else /* ENABLE_NLS */ + +#define _(S) S +#define init_nls() (void)0 +#endif /* ENABLE_NLS */ #endif /* NLS_H */ |