From 68079ec0cd7a2029f52bf736929cc623ff8ac6a3 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 3 Jan 2013 14:19:16 +0000 Subject: [PATCH] new plural form i18n macro git-svn-id: svn://localhost/ardour2/branches/3.0@13759 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/i18n.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk2_ardour/i18n.h b/gtk2_ardour/i18n.h index d004a72911..4b75d34315 100644 --- a/gtk2_ardour/i18n.h +++ b/gtk2_ardour/i18n.h @@ -36,4 +36,8 @@ */ #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__