From c05e30c04327b1972d51e6186117e36492566cd9 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 28 Nov 2011 20:38:23 +0000 Subject: [PATCH] add _S() macro to i18n.h for libs/ardour and libs/gtkmm2ext git-svn-id: svn://localhost/ardour2/branches/3.0@10834 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/i18n.h | 4 ++++ libs/gtkmm2ext/i18n.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/libs/ardour/i18n.h b/libs/ardour/i18n.h index dcbbfcf52e..43ae07cac1 100644 --- a/libs/ardour/i18n.h +++ b/libs/ardour/i18n.h @@ -12,5 +12,9 @@ #define N_(Text) gettext_noop (Text) #define X_(Text) Text #define I18N(Array) PBD::internationalize (PACKAGE, Array) +/** 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__ diff --git a/libs/gtkmm2ext/i18n.h b/libs/gtkmm2ext/i18n.h index 7c79d2eb53..edd0a9e315 100644 --- a/libs/gtkmm2ext/i18n.h +++ b/libs/gtkmm2ext/i18n.h @@ -7,5 +7,9 @@ #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__ -- 2.30.2