Add translate.h for HAVE_NLS includes/defines

...to shrink labwc.h footprint
This commit is contained in:
Johan Malm 2025-09-24 20:25:27 +01:00 committed by John Lindgren
parent 1692c47fa0
commit 26bd02d457
7 changed files with 19 additions and 8 deletions

View file

@ -7,13 +7,6 @@
#include "common/set.h"
#include "input/cursor.h"
#include "overlay.h"
#if HAVE_NLS
#include <libintl.h>
#include <locale.h>
#define _ gettext
#else
#define _(s) (s)
#endif
#define XCURSOR_DEFAULT "left_ptr"
#define XCURSOR_SIZE 24

14
include/translate.h Normal file
View file

@ -0,0 +1,14 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef LABWC_TRANSLATE_H
#define LABWC_TRANSLATE_H
#include "config.h"
#if HAVE_NLS
#include <libintl.h>
#include <locale.h>
#define _ gettext
#else
#define _(s) (s)
#endif
#endif /* LABWC_TRANSLATE_H */