X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fi18n.h;h=43ae07cac130dadd05b158a4afae3039b2134809;hb=204baa31d842d4c2f833d319b6fa55e402a1bfb8;hp=7c79d2eb53ad83fc045d8a820d8f992126c62ae2;hpb=8af0757b61990767f2a85e68f535a5af9976fd79;p=ardour.git diff --git a/libs/ardour/i18n.h b/libs/ardour/i18n.h index 7c79d2eb53..43ae07cac1 100644 --- a/libs/ardour/i18n.h +++ b/libs/ardour/i18n.h @@ -1,11 +1,20 @@ #ifndef __i18n_h__ #define __i18n_h__ -#include +#include "pbd/compose.h" +#include "pbd/convert.h" #include "gettext.h" -#define _(Text) dgettext (PACKAGE, Text) +#include +#include + +#define _(Text) dgettext (PACKAGE,Text) #define N_(Text) gettext_noop (Text) -#define X_(Text) (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__