diff --git a/bindings/core-utils.i b/bindings/core-utils.i index 27976f2136..288e5c1d66 100644 --- a/bindings/core-utils.i +++ b/bindings/core-utils.i @@ -157,6 +157,9 @@ gchar *gnc_locale_name (void); } +%rename ("gnc:ngettext") ngettext; +extern const char* ngettext (const char *msgid1, const char *msgid2, + unsigned long int n); %rename ("gnc:gettext") gettext; extern const char* gettext(const char*); %rename ("gnc:C_gettext") wrap_C_; diff --git a/bindings/guile/core-utils.scm b/bindings/guile/core-utils.scm index c08643cf11..58685cee05 100644 --- a/bindings/guile/core-utils.scm +++ b/bindings/guile/core-utils.scm @@ -27,6 +27,7 @@ (define-module (gnucash core-utils) #:export (N_ G_ + NG_ C_ gnc:string-locale? @@ -46,6 +47,7 @@ ;; gettext functions (define G_ gnc:gettext) +(define NG_ gnc:ngettext) (define C_ gnc:C-gettext) (define-syntax-rule (N_ x) x) diff --git a/po/gnucash-pot.cmake b/po/gnucash-pot.cmake index d9c1e31f60..f59dba9adc 100644 --- a/po/gnucash-pot.cmake +++ b/po/gnucash-pot.cmake @@ -24,6 +24,7 @@ execute_process( --keyword=Q_:1g --keyword=G_ --keyword=N_ + --keyword=NG_:1,2 --keyword=C_:1c,2 --keyword=NC_:1c,2 --keyword=translate:1,1t