Rename report option for consistency

In English each word in option and menu names starts with a capital letter.
Also eliminates a redundant translatable string.
This commit is contained in:
Geert Janssens 2020-08-18 15:28:05 +02:00
parent 03ef88839b
commit 56210de9a2
3 changed files with 6 additions and 5 deletions

View File

@ -483,12 +483,12 @@
(length ((sxpath '(// (table 1) // (tr -1) // td)) sxml))
1)))
(set-option! options "Display" "Enable links" #f)
(set-option! options "Display" "Enable Links" #f)
(let ((sxml (options->sxml options "disable hyperlinks")))
(test-assert "no anchor when disabling hyperlinks"
(zero? (length ((sxpath '(// a // *text*)) sxml)))))
(set-option! options "Display" "Enable links" #t)
(set-option! options "Display" "Enable Links" #t)
(let ((sxml (options->sxml options "enable hyperlinks")))
(test-assert "anchors exist when enabling hyperlinks"
(positive? (length ((sxpath '(// a // *text*)) sxml)))))

View File

@ -911,7 +911,7 @@ be excluded from periodic reporting.")
(not (eq? amount-value 'none)))
(gnc-option-db-set-option-selectable-by-name
options gnc:pagename-display "Enable links"
options gnc:pagename-display "Enable Links"
(not (eq? amount-value 'none)))
(gnc-option-db-set-option-selectable-by-name
@ -1024,7 +1024,7 @@ be excluded from periodic reporting.")
(gnc:register-trep-option
(gnc:make-simple-boolean-option
gnc:pagename-display (N_ "Enable links")
gnc:pagename-display (N_ "Enable Links")
"m2" (G_ "Enable hyperlinks in amounts.") #t))
(gnc:register-trep-option
@ -1127,7 +1127,7 @@ be excluded from periodic reporting.")
(let* ((work-to-do (length splits))
(table (gnc:make-html-table))
(used-columns (build-columns-used))
(opt-use-links? (opt-val gnc:pagename-display "Enable links"))
(opt-use-links? (opt-val gnc:pagename-display "Enable Links"))
(account-types-to-reverse
(keylist-get-info sign-reverse-list
(opt-val gnc:pagename-display (N_ "Sign Reverses"))

View File

@ -1680,6 +1680,7 @@ the option '~a'."))
("Void Transactions?" "Filter" "Void Transactions")
("Void Transactions" "Filter" "Void Transactions")
("Account Substring" "Filter" "Account Name Filter")
("Enable links" #f "Enable Links")
;; invoice.scm, renamed November 2018
("Individual Taxes" #f "Use Detailed Tax Summary")
))