gnucash master: Multiple changes pushed

Frank H.Ellenberger fell at code.gnucash.org
Mon Jan 9 21:33:01 EST 2023


Updated	 via  https://github.com/Gnucash/gnucash/commit/c5be64de (commit)
	 via  https://github.com/Gnucash/gnucash/commit/73e18b96 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/2976acd6 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/86a03b28 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/f081a206 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/afc32af5 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/5af82139 (commit)
	from  https://github.com/Gnucash/gnucash/commit/a9be8d51 (commit)



commit c5be64de59a812086c6a96a019eb34b2f95755d0
Merge: 73e18b961 2976acd67
Author: Frank H. Ellenberger <frank.h.ellenberger at gmail.com>
Date:   Tue Jan 10 03:18:49 2023 +0100

    Merge weblate-beta


commit 73e18b9619e1ce3e9ddd72006dcd334a2dd7fdbe
Merge: a9be8d518 86a03b280
Author: Frank H. Ellenberger <frank.h.ellenberger at gmail.com>
Date:   Tue Jan 10 03:14:05 2023 +0100

    Merge branch 'maint'


commit 2976acd67709c1e52108b41c488b67ce670c0d08
Author: Giuseppe Foti <foti.giuseppe at gmail.com>
Date:   Mon Jan 9 06:36:14 2023 +0000

    Translation update  by Giuseppe Foti <foti.giuseppe at gmail.com> using Weblate
    
    po/it.po: 100.0% (5401 of 5401 strings; 0 fuzzy)
    24 failing checks (0.4%)
    Translation: GnuCash/Program-beta (Italian)
    Translate-URL: https://hosted.weblate.org/projects/gnucash/program-beta/it/

diff --git a/po/it.po b/po/it.po
index 094c937ab..2eaa9bb36 100644
--- a/po/it.po
+++ b/po/it.po
@@ -52,19 +52,19 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: GnuCash 4.13-pre1\n"
-"Report-Msgid-Bugs-To: https://bugs.gnucash.org/enter_bug.cgi?"
-"product=GnuCash&component=Translations\n"
+"Report-Msgid-Bugs-To: https://bugs.gnucash.org/enter_bug."
+"cgi?product=GnuCash&component=Translations\n"
 "POT-Creation-Date: 2022-12-04 19:47-0800\n"
-"PO-Revision-Date: 2022-09-08 09:22+0000\n"
+"PO-Revision-Date: 2023-01-09 07:51+0000\n"
 "Last-Translator: Giuseppe Foti <foti.giuseppe at gmail.com>\n"
-"Language-Team: Italian <https://hosted.weblate.org/projects/gnucash/gnucash/"
-"it/>\n"
+"Language-Team: Italian <https://hosted.weblate.org/projects/gnucash/"
+"program-beta/it/>\n"
 "Language: it\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Plural-Forms: nplurals=2; plural=n != 1;\n"
-"X-Generator: Weblate 4.14.1-dev\n"
+"X-Generator: Weblate 4.15.1-dev\n"
 
 #: borrowed/goffice/go-charmap-sel.c:70
 msgid "Arabic"
@@ -2745,8 +2745,6 @@ msgid "Empty"
 msgstr "Vuoto"
 
 #: gnucash/gnome/dialog-lot-viewer.c:829
-#, fuzzy
-#| msgid "Open"
 msgctxt "Adjective"
 msgid "Open"
 msgstr "Aperto"
@@ -9253,7 +9251,7 @@ msgstr "Contabilità delle finanze personali e per piccole imprese."
 #: gnucash/gnome-utils/gnc-main-window.c:4954
 msgid "translator-credits"
 msgstr ""
-"Giuseppe Foti (2020, 2021, 2022)\n"
+"Giuseppe Foti (2020, 2021, 2022, 2023)\n"
 "Cristian Marchi (2008, 2009, 2010, 2014)\n"
 "Simone Zinanni (2008)\n"
 "Lorenzo Cappelletti (2002, 2003-2005)\n"
@@ -22422,7 +22420,7 @@ msgstr "Disabilitato"
 #. Translators: Menu entry, no full stop
 #: gnucash/import-export/import-main-matcher.c:1317
 msgid "_Assign a transfer account to the selection"
-msgstr "_Assegnare un conto di trasferimento alla selezione."
+msgstr "_Assegna un conto di trasferimento alla selezione"
 
 #. Translators: Menu entry, no full stop
 #: gnucash/import-export/import-main-matcher.c:1368

commit 86a03b280bc3236a88ca7d20f58012b51b077a7c
Author: Giuseppe Foti <foti.giuseppe at gmail.com>
Date:   Mon Jan 9 08:49:19 2023 +0100

    Translation update  by Giuseppe Foti <foti.giuseppe at gmail.com> using Weblate
    
    po/glossary/it.po: 99.5% (215 of 216 strings; 0 fuzzy)
    1 failing checks (0.4%)
    Translation: GnuCash/Glossary (Italian)
    Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/it/
    
    Translation update  by Giuseppe Foti <foti.giuseppe at gmail.com> using Weblate
    
    po/it.po: 100.0% (5401 of 5401 strings; 0 fuzzy)
    1 failing checks (0.1%)
    Translation: GnuCash/Program (Italian)
    Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/it/
    
    Co-authored-by: Giuseppe Foti <foti.giuseppe at gmail.com>

diff --git a/po/glossary/it.po b/po/glossary/it.po
index 7c7eee389..783f4bc72 100644
--- a/po/glossary/it.po
+++ b/po/glossary/it.po
@@ -1,7 +1,7 @@
 # Italian translation for GnuCash package (Glossary)
 # Copyright (C) 2020 Giuseppe Foti <foti.giuseppe at gmail.com>.
 # This file is distributed under the same license as the GnuCash package.
-# Giuseppe Foti <foti.giuseppe at gmail.com>, 2020, 2021.
+# Giuseppe Foti <foti.giuseppe at gmail.com>, 2020, 2021, 2023.
 # Cristian Marchi <cri79 at libero.it>, 2008;
 # Lorenzo Cappelletti <lorenzo.cappelletti at email.it>, 2003;
 # Lorenzo Cappelletti <L.Cappelletti at mail.com>, 2002 2003;
@@ -18,11 +18,11 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: GnuCash 4.8\n"
-"Report-Msgid-Bugs-To: https://bugs.gnucash.org/enter_bug.cgi?"
-"product=GnuCash&component=Translations\n"
+"Report-Msgid-Bugs-To: https://bugs.gnucash.org/enter_bug."
+"cgi?product=GnuCash&component=Translations\n"
 "POT-Creation-Date: 2021-12-05 20:11+0100\n"
-"PO-Revision-Date: 2022-01-02 22:54+0000\n"
-"Last-Translator: Anonymous <noreply at weblate.org>\n"
+"PO-Revision-Date: 2023-01-09 07:49+0000\n"
+"Last-Translator: Giuseppe Foti <foti.giuseppe at gmail.com>\n"
 "Language-Team: Italian <https://hosted.weblate.org/projects/gnucash/glossary/"
 "it/>\n"
 "Language: it\n"
@@ -30,7 +30,7 @@ msgstr ""
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Plural-Forms: nplurals=2; plural=n != 1;\n"
-"X-Generator: Weblate 4.10.1\n"
+"X-Generator: Weblate 4.15.1-dev\n"
 
 #. "English Definition (Dear translator: This file will never be visible to the user! It should only serve as a tool for you, the translator. Nothing more.)"
 msgid "Term (Dear translator: This file will never be visible to the user!)"
@@ -894,4 +894,4 @@ msgid "Online"
 msgstr ""
 
 msgid "Direct Debit"
-msgstr ""
+msgstr "Addebito diretto"
diff --git a/po/it.po b/po/it.po
index 094c937ab..8fb5519c9 100644
--- a/po/it.po
+++ b/po/it.po
@@ -1,7 +1,7 @@
 # Italian translation of Gnucash.
 # Copyright (C) 2020 by the GnuCash developers and the translators below.
 # This file is distributed under the same license as the Gnucash package.
-# Giuseppe Foti <foti.giuseppe at gmail.com>, 2020;, 2021, 2022.
+# Giuseppe Foti <foti.giuseppe at gmail.com>, 2020;, 2021, 2022, 2023.
 # Cristian Marchi <cri79 at libero.it>, 2008, 2009, 2010;
 # Simone Zinanni <simone at develer.com>, 2008;
 # Lorenzo Cappelletti <lorenzo.cappelletti at email.com>, 2003-2005.
@@ -52,10 +52,10 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: GnuCash 4.13-pre1\n"
-"Report-Msgid-Bugs-To: https://bugs.gnucash.org/enter_bug.cgi?"
-"product=GnuCash&component=Translations\n"
+"Report-Msgid-Bugs-To: https://bugs.gnucash.org/enter_bug."
+"cgi?product=GnuCash&component=Translations\n"
 "POT-Creation-Date: 2022-12-04 19:47-0800\n"
-"PO-Revision-Date: 2022-09-08 09:22+0000\n"
+"PO-Revision-Date: 2023-01-09 07:49+0000\n"
 "Last-Translator: Giuseppe Foti <foti.giuseppe at gmail.com>\n"
 "Language-Team: Italian <https://hosted.weblate.org/projects/gnucash/gnucash/"
 "it/>\n"
@@ -64,7 +64,7 @@ msgstr ""
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Plural-Forms: nplurals=2; plural=n != 1;\n"
-"X-Generator: Weblate 4.14.1-dev\n"
+"X-Generator: Weblate 4.15.1-dev\n"
 
 #: borrowed/goffice/go-charmap-sel.c:70
 msgid "Arabic"
@@ -2745,8 +2745,6 @@ msgid "Empty"
 msgstr "Vuoto"
 
 #: gnucash/gnome/dialog-lot-viewer.c:829
-#, fuzzy
-#| msgid "Open"
 msgctxt "Adjective"
 msgid "Open"
 msgstr "Aperto"
@@ -9253,7 +9251,7 @@ msgstr "Contabilità delle finanze personali e per piccole imprese."
 #: gnucash/gnome-utils/gnc-main-window.c:4954
 msgid "translator-credits"
 msgstr ""
-"Giuseppe Foti (2020, 2021, 2022)\n"
+"Giuseppe Foti (2020, 2021, 2022, 2023)\n"
 "Cristian Marchi (2008, 2009, 2010, 2014)\n"
 "Simone Zinanni (2008)\n"
 "Lorenzo Cappelletti (2002, 2003-2005)\n"
@@ -22422,7 +22420,7 @@ msgstr "Disabilitato"
 #. Translators: Menu entry, no full stop
 #: gnucash/import-export/import-main-matcher.c:1317
 msgid "_Assign a transfer account to the selection"
-msgstr "_Assegnare un conto di trasferimento alla selezione."
+msgstr "_Assegna un conto di trasferimento alla selezione"
 
 #. Translators: Menu entry, no full stop
 #: gnucash/import-export/import-main-matcher.c:1368

commit f081a2066eeda6817f9b8e99d30b1e4449edb9a6
Merge: 5e8de30b0 afc32af52
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Mon Jan 9 13:32:29 2023 +0800

    Merge branch 'maint-progress' into maint #1493


commit afc32af52171feec031947bb5b070c96d5521f01
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sun Jan 8 23:54:03 2023 +0800

    [balsheet-pnl] move out of experimental into regular menu
    
    After 4 years it can finally graduate. Also remove FOOTER-TEXT
    warning.

diff --git a/gnucash/report/reports/standard/balsheet-pnl.scm b/gnucash/report/reports/standard/balsheet-pnl.scm
index 2c082a7b0..e1f5d2b44 100644
--- a/gnucash/report/reports/standard/balsheet-pnl.scm
+++ b/gnucash/report/reports/standard/balsheet-pnl.scm
@@ -47,13 +47,6 @@
   (split-balance-with-closing col-datum-get-split-balance-with-closing)
   (split-value-balance col-datum-get-split-value-balance))
 
-(define FOOTER-TEXT
-  (gnc:make-html-text
-   (G_ "WARNING: Foreign currency conversions, and unrealized gains
-calculations are not confirmed correct. This report may be modified
-without notice. Bug reports are very welcome at
-https://bugs.gnucash.org/")))
-
 ;; define all option's names and help text so that they are properly
 
 (define optname-startdate (N_ "Start Date"))
@@ -1285,9 +1278,6 @@ also show overall period profit & loss."))
       (gnc:html-document-add-object!
        doc multicol-table))
 
-    (gnc:html-document-add-object!
-     doc FOOTER-TEXT)
-
     (gnc:report-finished)
     ;; (gnc:html-document-set-style-text!
     ;;  doc " table, td{ border-width: 1px; border-style:solid; border-color: lightgray; border-collapse: collapse}")
@@ -1300,7 +1290,7 @@ also show overall period profit & loss."))
  'version 1
  'name balsheet-reportname
  'report-guid "065d5d5a77ba11e8b31e83ada73c5eea"
- 'menu-path (list gnc:menuname-experimental)
+ 'menu-path (list gnc:menuname-asset-liability)
  'options-generator (lambda () (multicol-report-options-generator 'balsheet))
  'renderer (lambda (rpt) (multicol-report-renderer rpt 'balsheet)))
 
@@ -1308,7 +1298,7 @@ also show overall period profit & loss."))
  'version 1
  'name pnl-reportname
  'report-guid "0e94fd0277ba11e8825d43e27232c9d4"
- 'menu-path (list gnc:menuname-experimental)
+ 'menu-path (list gnc:menuname-income-expense)
  'options-generator (lambda () (multicol-report-options-generator 'pnl))
  'renderer (lambda (rpt) (multicol-report-renderer rpt 'pnl)))
 

commit 5af8213951e3a9c9806187d215bc9f00118118b2
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sun Jan 8 23:03:15 2023 +0800

    [balsheet-pnl] generate exchange-fn for each date separately
    
    and cache its result

diff --git a/gnucash/report/reports/standard/balsheet-pnl.scm b/gnucash/report/reports/standard/balsheet-pnl.scm
index a1d1aaa66..2c082a7b0 100644
--- a/gnucash/report/reports/standard/balsheet-pnl.scm
+++ b/gnucash/report/reports/standard/balsheet-pnl.scm
@@ -769,11 +769,17 @@ also show overall period profit & loss."))
               (cons acc (map col-datum-get-split-balance-with-closing cols-data))))
            accounts-cols-data))
 
-         (exchange-fn (and common-currency
-                           (gnc:case-exchange-time-fn
-                            price-source common-currency
-                            (map xaccAccountGetCommodity accounts) enddate
-                            #f #f)))
+         ;; generate an exchange-fn for date, and cache its result.
+         (get-date-exchange-fn
+          (let ((h (make-hash-table)))
+            (lambda (date)
+              (or (hashv-ref h date)
+                  (let ((exchangefn (gnc:case-exchange-time-fn
+                                     price-source common-currency
+                                     (map xaccAccountGetCommodity accounts)
+                                     date #f #f)))
+                    (hashv-set! h date exchangefn)
+                    exchangefn)))))
 
          ;; from col-idx, find effective date to retrieve pricedb
          ;; entry or to limit transactions to calculate average-cost
@@ -799,9 +805,9 @@ also show overall period profit & loss."))
                        (gnc:gnc-monetary-commodity monetary)
                        common-currency))
                  (has-price? (gnc:gnc-monetary-commodity monetary))
-                 (exchange-fn
-                  monetary common-currency
-                  (col-idx->price-date col-idx)))))
+                 (let* ((col-date (col-idx->price-date col-idx))
+                        (exchange-fn (get-date-exchange-fn col-date)))
+                   (exchange-fn monetary common-currency col-date)))))
 
          ;; the following function generates an gnc:html-text object
          ;; to dump exchange rate for a particular column. From the



Summary of changes:
 gnucash/report/reports/standard/balsheet-pnl.scm | 36 +++++++++++-------------
 po/glossary/it.po                                | 14 ++++-----
 po/it.po                                         | 20 ++++++-------
 3 files changed, 32 insertions(+), 38 deletions(-)



More information about the gnucash-changes mailing list