summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-11-28 20:38:23 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-11-28 20:38:23 +0000
commitc05e30c04327b1972d51e6186117e36492566cd9 (patch)
tree91ee67ded3b48d7ef1a90488da86ca4a3731e89b /libs
parent23964284a4d5a4fb2e392d6dd73be05f15ef6c7b (diff)
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
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/i18n.h4
-rw-r--r--libs/gtkmm2ext/i18n.h4
2 files changed, 8 insertions, 0 deletions
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__