gnucash maint: Bug 797279 - Reports RTL do not support RTL

Christopher Lam clam at code.gnucash.org
Mon Dec 9 06:32:17 EST 2019


Updated	 via  https://github.com/Gnucash/gnucash/commit/60765e38 (commit)
	from  https://github.com/Gnucash/gnucash/commit/e40bee0f (commit)



commit 60765e388ac69c4ae95223562de1108bc1a9f43e
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Mon Dec 9 19:31:31 2019 +0800

    Bug 797279 - Reports RTL do not support RTL
    
    RTL autodetect seems to rely on the report-title being RTL.

diff --git a/gnucash/report/business-reports/new-owner-report.scm b/gnucash/report/business-reports/new-owner-report.scm
index 5b40d0b7b..257e077ee 100644
--- a/gnucash/report/business-reports/new-owner-report.scm
+++ b/gnucash/report/business-reports/new-owner-report.scm
@@ -725,7 +725,7 @@ invoices and amounts.")))))
          (document (gnc:make-html-document))
          (table (gnc:make-html-table))
          (headings (make-heading-list used-columns link-option))
-         (report-title (string-append (owner-string type) " " (_ "Report"))))
+         (report-title (string-append (_ (owner-string type)) " " (_ "Report"))))
 
     (cond
      ((not (gncOwnerIsValid owner))
@@ -751,7 +751,7 @@ invoices and amounts.")))))
 
         (gnc:html-document-set-headline!
          document (gnc:html-markup
-                   "span" (owner-string type) " " (_ "Report:") " "
+                   "span" report-title ": "
                    (gnc:html-markup-anchor
                     (if (eqv? GNC-OWNER-JOB type)
                         (gnc:job-anchor-text (gncOwnerGetJob owner))



Summary of changes:
 gnucash/report/business-reports/new-owner-report.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)



More information about the gnucash-changes mailing list