]> git.ipfire.org Git - collecty.git/commitdiff
Make Gettext available
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 2 Oct 2025 10:10:27 +0000 (10:10 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 2 Oct 2025 10:10:27 +0000 (10:10 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am
src/daemon/i18n.h [new file with mode: 0644]

index 04a685367e9f47b06bc58124984d13476bcdc458..3bbf5742050f19ad3d800804ac0363da76fb2bb0 100644 (file)
@@ -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 (file)
index 0000000..2a122f4
--- /dev/null
@@ -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 <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+#############################################################################*/
+
+#ifndef COLLECTY_I18N_H
+#define COLLECTY_I18N_H
+
+#include <libintl.h>
+
+#define _(x) dgettext(PACKAGE_NAME, x)
+
+#endif /* COLLECTY_I18N_H */