Add another convenience function allowing i18n_noops("foo")+"bar"
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Wed, 15 Feb 2017 14:40:50 +0000 (15:40 +0100)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Thu, 23 Mar 2017 09:33:42 +0000 (10:33 +0100)
src/i18n.h

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