[app-utils] upgrade Tax/Tax Number option to all locales

Previously de_DE locale will add a *global* 'Tax/Tax Number'
option. This is immediately translated.

This change will upgrade it to be present in all locales, and can be
queried by any report.
This commit is contained in:
Christopher Lam 2019-09-20 10:16:17 +08:00
parent 49372e76be
commit 3208879e64
4 changed files with 9 additions and 18 deletions

View File

@ -300,6 +300,8 @@
(define gnc:*company-contact* (N_ "Company Contact Person"))
(define gnc:*fancy-date-label* (N_ "Fancy Date Format"))
(define gnc:*fancy-date-format* (N_ "custom"))
(define gnc:*tax-label* (N_ "Tax"))
(define gnc:*tax-nr-label* (N_ "Tax Number"))
(define (gnc:company-info book key)
;; Access company info from key-value pairs for current book
@ -328,6 +330,7 @@
gnc:*option-name-currency-accounting* gnc:*option-name-book-currency*
gnc:*option-name-default-gains-policy*
gnc:*option-name-default-gain-loss-account*
gnc:*tax-label* gnc:*tax-nr-label*
gnc:*option-name-auto-readonly-days* gnc:*option-name-num-field-source*)
(define gnc:*option-section-budgeting* OPTION-SECTION-BUDGETING)

View File

@ -157,6 +157,12 @@
gnc:*option-section-budgeting* gnc:*option-name-default-budget*
"a" (N_ "Budget to be used when none has been otherwise specified.")))
;; Tax Tab
(reg-option
(gnc:make-string-option
gnc:*tax-label* gnc:*tax-nr-label*
"a" (N_ "The electronic tax number of your business") ""))
;; Counters Tab
(for-each
(lambda (vals)

View File

@ -49,10 +49,5 @@
(export txf-asset-categories)
(export txf-liab-eq-categories)
(define gnc:*tax-label* (N_ "Tax"))
(define gnc:*tax-nr-label* (N_ "Tax Number"))
(export gnc:*tax-label* gnc:*tax-nr-label*)
(load-from-path "txf-de_DE")
(load-from-path "txf-help-de_DE")

View File

@ -312,16 +312,3 @@ Fehlermeldungen + Dankschreiben an: stoll@bomhardt.de"))
)
)
))
;;; Register global options in this book
(define (book-options-generator options)
(define (reg-option new-option)
(gnc:register-option options new-option))
(reg-option
(gnc:make-string-option
gnc:*tax-label* gnc:*tax-nr-label*
"a" (N_ "The electronic tax number of your business") ""))
)
(gnc-register-kvp-option-generator QOF-ID-BOOK-SCM book-options-generator)