mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-21 16:38:06 -06:00
Expose ngettext as gnc:ngettext
This commit is contained in:
parent
e7a3ec5631
commit
6d6eff6b70
@ -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;
|
%rename ("gnc:gettext") gettext;
|
||||||
extern const char* gettext(const char*);
|
extern const char* gettext(const char*);
|
||||||
%rename ("gnc:C_gettext") wrap_C_;
|
%rename ("gnc:C_gettext") wrap_C_;
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
(define-module (gnucash core-utils)
|
(define-module (gnucash core-utils)
|
||||||
#:export (N_
|
#:export (N_
|
||||||
G_
|
G_
|
||||||
|
NG_
|
||||||
C_
|
C_
|
||||||
gnc:string-locale<?
|
gnc:string-locale<?
|
||||||
gnc:string-locale>?
|
gnc:string-locale>?
|
||||||
@ -46,6 +47,7 @@
|
|||||||
|
|
||||||
;; gettext functions
|
;; gettext functions
|
||||||
(define G_ gnc:gettext)
|
(define G_ gnc:gettext)
|
||||||
|
(define NG_ gnc:ngettext)
|
||||||
(define C_ gnc:C-gettext)
|
(define C_ gnc:C-gettext)
|
||||||
(define-syntax-rule (N_ x) x)
|
(define-syntax-rule (N_ x) x)
|
||||||
|
|
||||||
|
@ -24,6 +24,7 @@ execute_process(
|
|||||||
--keyword=Q_:1g
|
--keyword=Q_:1g
|
||||||
--keyword=G_
|
--keyword=G_
|
||||||
--keyword=N_
|
--keyword=N_
|
||||||
|
--keyword=NG_:1,2
|
||||||
--keyword=C_:1c,2
|
--keyword=C_:1c,2
|
||||||
--keyword=NC_:1c,2
|
--keyword=NC_:1c,2
|
||||||
--keyword=translate:1,1t
|
--keyword=translate:1,1t
|
||||||
|
Loading…
Reference in New Issue
Block a user