aboutsummaryrefslogtreecommitdiff
path: root/main.h
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2024-06-27 21:17:23 +0200
committerFabian Groffen <grobian@gentoo.org>2024-06-27 21:17:23 +0200
commit092dbac3c93d4a5f6fc2e5d496e17a0405c950a7 (patch)
tree5615ba34b47488d2463eac8110d4c492c9e616f8 /main.h
parentqwhich: add -r option to limit search to a repository (diff)
downloadportage-utils-092dbac3c93d4a5f6fc2e5d496e17a0405c950a7.tar.gz
portage-utils-092dbac3c93d4a5f6fc2e5d496e17a0405c950a7.tar.bz2
portage-utils-092dbac3c93d4a5f6fc2e5d496e17a0405c950a7.zip
*: remove i18n/gettext support
This looked very rudimentary, and half, there were no translations, and not all strings were covered. It was never enabled, so dummy for many releases. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'main.h')
-rw-r--r--main.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/main.h b/main.h
index a1b2afc..c3139b0 100644
--- a/main.h
+++ b/main.h
@@ -1,5 +1,5 @@
/*
- * Copyright 2005-2021 Gentoo Foundation
+ * Copyright 2005-2024 Gentoo Foundation
* Distributed under the terms of the GNU General Public License v2
*
* Copyright 2005-2010 Ned Ludd - <solar@gentoo.org>
@@ -23,7 +23,6 @@
#include <string.h>
#include "colors.h"
-#include "i18n.h"
#include "set.h"
extern const char *argv0;
@@ -87,8 +86,8 @@ extern const char *argv0;
#define likely(x) __builtin_expect((x), 1)
#define unlikely(x) __builtin_expect((x), 0)
-#define qfprintf(stream, fmt, args...) do { if (!quiet) fprintf(stream, _( fmt ), ## args); } while (0)
-#define qprintf(fmt, args...) qfprintf(stdout, _( fmt ), ## args)
+#define qfprintf(stream, fmt, args...) do { if (!quiet) fprintf(stream, fmt, ## args); } while (0)
+#define qprintf(fmt, args...) qfprintf(stdout, fmt, ## args)
#define _q_unused_ __attribute__((__unused__))
@@ -125,7 +124,7 @@ extern FILE *warnout;
#define warn(fmt, args...)
#else
#define warn(fmt, args...) \
- fprintf(warnout, _("%s%s%s: " fmt "\n"), RED, argv0, NORM , ## args)
+ fprintf(warnout, "%s%s%s: " fmt "\n", RED, argv0, NORM , ## args)
#endif
#define warnf(fmt, args...) warn("%s%s()%s: " fmt, YELLOW, __func__, NORM , ## args)
#define warnl(fmt, args...) warn("%s%i()%s: " fmt, YELLOW, __LINE__, NORM , ## args)