Expose ngettext as gnc:ngettext

This commit is contained in:
Christopher Lam 2020-10-27 06:47:07 +08:00
parent e7a3ec5631
commit 6d6eff6b70
3 changed files with 6 additions and 0 deletions

View File

@ -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_;

View File

@ -27,6 +27,7 @@
(define-module (gnucash core-utils)
#:export (N_
G_
NG_
C_
gnc:string-locale<?
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)

View File

@ -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