[balsheet-pnl] reuse i18n strings

This commit is contained in:
Christopher Lam 2019-08-18 14:37:45 +08:00
parent bd9edbbbf6
commit b3ff04eedc

View File

@ -879,10 +879,10 @@ also show overall period profit & loss."))
(lambda () (lambda ()
(display report-title) (display report-title)
(display " ") (display " ")
(when (or incr (eq? report-type 'pnl)) (if (or incr (eq? report-type 'pnl))
(display (qof-print-date startdate)) (format #t (_ "~a to ~a")
(display (_ " to "))) (qof-print-date startdate) (qof-print-date enddate))
(display (qof-print-date enddate))))) (qof-print-date enddate)))))
(if (eq? (get-option gnc:pagename-general optname-options-summary) 'always) (if (eq? (get-option gnc:pagename-general optname-options-summary) 'always)
(gnc:html-document-add-object! (gnc:html-document-add-object!
@ -1057,9 +1057,9 @@ also show overall period profit & loss."))
multicol-table-right (_ "Equity") multicol-table-right (_ "Equity")
(append equity-accounts (append equity-accounts
(list (list
(vector "Unrealized Gains" (vector (_ "Unrealized Gains")
unrealized-gain-fn) unrealized-gain-fn)
(vector "Retained Earnings" (vector (_ "Retained Earnings")
retained-earnings-fn))) retained-earnings-fn)))
#:negate-amounts? #t) #:negate-amounts? #t)
@ -1074,7 +1074,7 @@ also show overall period profit & loss."))
(gnc:html-document-add-object! (gnc:html-document-add-object!
doc doc
(gnc:make-html-text (gnc:make-html-text
(gnc:html-markup-anchor chart "Barchart")))))) (gnc:html-markup-anchor chart (_ "Barchart")))))))
((eq? report-type 'pnl) ((eq? report-type 'pnl)
(let* ((closing-str (get-option pagename-entries optname-closing-pattern)) (let* ((closing-str (get-option pagename-entries optname-closing-pattern))