Revert "Add another convenience function allowing i18n_noops("foo")+"bar""
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Thu, 18 Apr 2019 15:35:21 +0000 (17:35 +0200)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Thu, 18 Apr 2019 15:35:21 +0000 (17:35 +0200)
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

index 0344092..2ed1ea8 100644 (file)
@@ -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="");