summaryrefslogtreecommitdiff
path: root/gcc/intl.c
diff options
context:
space:
mode:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2010-02-14 19:44:07 +0000
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2010-02-14 19:44:07 +0000
commit70da6ffe6435f8e9815fa06390aefc5f552eebcf (patch)
treedcd9083bb8ddcca54218f5be9eb599e62829664f /gcc/intl.c
parenta10b185d8c347cb28c8896b7470973f6844adf68 (diff)
downloadgcc-70da6ffe6435f8e9815fa06390aefc5f552eebcf.tar.gz
2010-02-14 Marco Poletti <poletti.marco@gmail.com>
* intl.c (fake_ngettext): New function. * intl.h (fake_ngettext): Declare. (ngettext): Define macro. * collect2.c (notice_translated): New function. (main): Use notice_translated and ngettext. * collect2.h (notice_translated): Declare. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156762 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/intl.c')
-rw-r--r--gcc/intl.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/intl.c b/gcc/intl.c
index 63de3ec4d83..47e0b3da051 100644
--- a/gcc/intl.c
+++ b/gcc/intl.c
@@ -121,6 +121,19 @@ gcc_gettext_width (const char *msgstr)
#endif /* ENABLE_NLS */
+#ifndef ENABLE_NLS
+
+const char *
+fake_ngettext (const char *singular, const char *plural, unsigned long n)
+{
+ if (n == 1UL)
+ return singular;
+
+ return plural;
+}
+
+#endif
+
/* Return the indent for successive lines, using the width of
the STR. STR must have been translated already. The string
must be freed by the caller. */