use existing API to find the instrument
[ardour.git] / libs / ardour / i18n.h
index dcbbfcf52efe7f586d6a962dfeff633344eda83c..b04c96d4353c1c5a9584345dd441a8b46c7e5146 100644 (file)
 #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)
+
+/** Use this to translate strings with plural forms
+ */
+#define P_(Singular,Plural,HowMany) dngettext (PACKAGE, (Singular), (Plural), (HowMany))
 
 #endif // __i18n_h__