X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fgtkmm2ext%2Fi18n.h;h=2f1c52a90737f1473275a88e072313007a31e9e4;hb=eedcd83dbd5292ed0507e0ffda4faf197ddd6c2b;hp=7c79d2eb53ad83fc045d8a820d8f992126c62ae2;hpb=d09f6b3016bacbc2871a8946cbb24ad705076509;p=ardour.git diff --git a/libs/gtkmm2ext/i18n.h b/libs/gtkmm2ext/i18n.h index 7c79d2eb53..2f1c52a907 100644 --- a/libs/gtkmm2ext/i18n.h +++ b/libs/gtkmm2ext/i18n.h @@ -2,10 +2,15 @@ #define __i18n_h__ #include +#include #include "gettext.h" #define _(Text) dgettext (PACKAGE, Text) #define N_(Text) gettext_noop (Text) #define X_(Text) (Text) +/** Use this to translate strings that have different meanings in different places. + * Text should be of the form Context|Message. + */ +#define S_(Text) PBD::sgettext (PACKAGE, Text) #endif // __i18n_h__