Skip to content

Commit

Permalink
Bug 797725 - Untranslatable string "For Period Covering ~a to ~a"
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherlam committed Jan 16, 2023
1 parent 645cc94 commit 580efe0
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 27 deletions.
19 changes: 11 additions & 8 deletions gnucash/report/reports/standard/account-summary.scm
Expand Up @@ -318,14 +318,17 @@
(exchange-fn (gnc:case-exchange-fn price-source report-commodity to-date)))

(gnc:html-document-set-title!
doc (string-append
company-name " " report-title " "
(if sx?
;; Translators: This is part of the report title, which is capitalzed in English, but not all other languages
(format #f (G_ "For Period Covering ~a to ~a")
(qof-print-date from-date)
(qof-print-date to-date))
(qof-print-date to-date))))
doc
(if sx?
(gnc:format (G_ "${company-name} ${report-title} For Period Covering ${start} to ${end}")
'company-name company-name
'report-title report-title
'start (qof-print-date from-date)
'end (qof-print-date to-date))
(gnc:format (G_ "${company-name} ${report-title} ${date}")
'company-name company-name
'report-title report-title
'date (qof-print-date to-date))))

(if (null? accounts)

Expand Down
11 changes: 5 additions & 6 deletions gnucash/report/reports/standard/equity-statement.scm
Expand Up @@ -298,12 +298,11 @@
(gnc:account-get-comm-balance-at-date account end-date #f))

(gnc:html-document-set-title!
doc (format #f
(string-append "~a ~a "
(G_ "For Period Covering ~a to ~a"))
company-name report-title
(qof-print-date start-date-printable)
(qof-print-date end-date)))
doc (gnc:format (G_ "${company-name} ${report-title} For Period Covering ${start} to ${end}")
'company-name company-name
'report-title report-title
'start (qof-print-date start-date-printable)
'end (qof-print-date end-date)))

(if (null? accounts)

Expand Down
9 changes: 5 additions & 4 deletions gnucash/report/reports/standard/income-statement.scm
Expand Up @@ -403,10 +403,11 @@
(gnc:html-table-append-ruler! table (* 2 tree-depth)))

(gnc:html-document-set-title!
doc (format #f (string-append "~a ~a " (G_ "For Period Covering ~a to ~a"))
company-name report-title
(qof-print-date start-date-printable)
(qof-print-date end-date)))
doc (gnc:format (G_ "${company-name} ${report-title} For Period Covering ${start} to ${end}")
'company-name company-name
'report-title report-title
'start (qof-print-date start-date-printable)
'end (qof-print-date end-date)))

(if (null? accounts)

Expand Down
20 changes: 11 additions & 9 deletions gnucash/report/reports/standard/trial-balance.scm
Expand Up @@ -399,15 +399,17 @@
(period-for (string-append " " (G_ "for Period"))))

(gnc:html-document-set-title!
doc (if (eq? report-variant 'current)
(format #f "~a ~a ~a"
company-name report-title
(qof-print-date end-date))
(format #f (string-append "~a ~a "
(G_ "For Period Covering ~a to ~a"))
company-name report-title
(qof-print-date start-date-printable)
(qof-print-date end-date))))
doc
(if (eq? report-variant 'current)
(gnc:format (G_ "${company-name} ${report-title} ${date}")
'company-name company-name
'report-title report-title
'date (qof-print-date end-date))
(gnc:format (G_ "${company-name} ${report-title} For Period Covering ${start} to ${end}")
'company-name company-name
'report-title report-title
'start (qof-print-date start-date-printable)
'end (qof-print-date end-date))))

(if (null? accounts)

Expand Down

0 comments on commit 580efe0

Please sign in to comment.