From 49ee03b8f8540d2f09ebd416d2f3e09350300573 Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Thu, 18 Apr 2019 17:35:21 +0200 Subject: [PATCH] Revert "Add another convenience function allowing i18n_noops("foo")+"bar"" Such string-return aliases for i18n functions encourage creation of texts using concatenation (+). However, such strings might not be translateable in the future (e.g. into languages with very different word order). To encourage using i18n_get_string() which is a translation-friendly way to dynamically assemble strings, we remove this This reverts commit 0562a0f617437d45d9e344da14980598d7c6c93d. --- src/i18n.h | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/i18n.h b/src/i18n.h index 0344092..2ed1ea8 100644 --- a/src/i18n.h +++ b/src/i18n.h @@ -34,7 +34,6 @@ on this file might be covered by the GNU General Public License. #define i18n(String) gettext(String) #define i18n_plural(String1, String2, Count) ngettext(String1, String2, Count) #define i18n_noop(String) (String) -#define i18n_noops(String) std::string(String) void i18n_init(const std::string& domain, const std::string& path="."); void i18n_set_language(const std::string &lang=""); -- 1.7.1