From cebf4f69653608f0d3d39b94091145e0666230a2 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 2 Oct 2025 10:10:27 +0000 Subject: [PATCH] Make Gettext available Signed-off-by: Michael Tremer --- Makefile.am | 1 + src/daemon/i18n.h | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 src/daemon/i18n.h diff --git a/Makefile.am b/Makefile.am index 04a6853..3bbf574 100644 --- a/Makefile.am +++ b/Makefile.am @@ -107,6 +107,7 @@ dist_collectyd_SOURCES = \ src/daemon/graphs.h \ src/daemon/graphs/loadavg.c \ src/daemon/graphs/loadavg.h \ + src/daemon/i18n.h \ src/daemon/logging.c \ src/daemon/logging.h \ src/daemon/main.c \ diff --git a/src/daemon/i18n.h b/src/daemon/i18n.h new file mode 100644 index 0000000..2a122f4 --- /dev/null +++ b/src/daemon/i18n.h @@ -0,0 +1,28 @@ +/*############################################################################# +# # +# collecty - A system statistics collection daemon for IPFire # +# Copyright (C) 2025 IPFire Development Team # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +#############################################################################*/ + +#ifndef COLLECTY_I18N_H +#define COLLECTY_I18N_H + +#include + +#define _(x) dgettext(PACKAGE_NAME, x) + +#endif /* COLLECTY_I18N_H */ -- 2.47.3