From: Michael Tremer Date: Thu, 2 Oct 2025 10:10:27 +0000 (+0000) Subject: Make Gettext available X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cebf4f69653608f0d3d39b94091145e0666230a2;p=telemetry.git Make Gettext available Signed-off-by: Michael Tremer --- 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 */