diff options
Diffstat (limited to 'libs/canvas/i18n.h')
-rw-r--r-- | libs/canvas/i18n.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libs/canvas/i18n.h b/libs/canvas/i18n.h new file mode 100644 index 0000000000..43ae07cac1 --- /dev/null +++ b/libs/canvas/i18n.h @@ -0,0 +1,20 @@ +#ifndef __i18n_h__ +#define __i18n_h__ + +#include "pbd/compose.h" +#include "pbd/convert.h" +#include "gettext.h" + +#include <vector> +#include <string> + +#define _(Text) dgettext (PACKAGE,Text) +#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__ |