[c-interface] deprecate gnc:make-string-database

This commit is contained in:
Christopher Lam
2020-11-22 21:21:58 +08:00
parent 3be7935965
commit b67bf4b761

View File

@@ -78,6 +78,8 @@
;; translated with gettext. ;; translated with gettext.
(define (gnc:make-string-database) (define (gnc:make-string-database)
(define string-hash (make-hash-table)) (define string-hash (make-hash-table))
(issue-deprecation-warning "gnc:make-string-database is deprecate. record \
translatable strings with N_ and G_.")
(lambda args (lambda args
(match args (match args
(('lookup key) (G_ (hash-ref string-hash key))) (('lookup key) (G_ (hash-ref string-hash key)))