X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fi18n.h;h=4b75d3431596162074e355c1cee16be53afc8ef5;hb=6a52dc321954b3d65ee9840bef08fe3c047d8850;hp=8dc13404aa0992e4dc862216c6a761a8d028a70e;hpb=e0aaed6d65f160c328cb8b56d7c6552ee15d65e2;p=ardour.git diff --git a/gtk2_ardour/i18n.h b/gtk2_ardour/i18n.h index 8dc13404aa..4b75d34315 100644 --- a/gtk2_ardour/i18n.h +++ b/gtk2_ardour/i18n.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2000-2007 Paul Davis + Copyright (C) 2000-2007 Paul Davis This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -31,5 +31,13 @@ #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__