Commit Graph

25448 Commits

Author SHA1 Message Date
Christopher Lam
a47413860a Factor out GValue access for setters and getters 2022-03-02 07:36:59 +08:00
Christopher Lam
8f845df934 Factor out make_period_[data|note]_path 2022-03-02 07:36:59 +08:00
Christopher Lam
919f392c7a Use kvp C++ interface rather than GValue 2022-03-02 07:36:59 +08:00
Christopher Lam
6c4c2512db Use C++ STL instead of GLib 2022-03-02 07:36:59 +08:00
Christopher Lam
9088acabd8 [gnc-budget.cpp] convert to c++ 2022-03-02 07:13:24 +08:00
John Ralls
aeefd89343 URL-encode # in file: URLs.
The final piece to fixing Bug 798392.
2022-03-01 13:26:12 -08:00
John Ralls
81b9a02235 Bug 798458 - Build failure with gcc 12
Refactor try_gz_open to return a std::pair<FILE*, thread>. That removes
the need for the threads hash-table and wait_for_gzip().

The cause of the gcc12 error was that we were using the thread's pipe's
FILE* as the key to the hash-table and had to close it before calling
wait_for_gzip(file) to remove the thread from the hash-table. gcc12
considers that a use-after-free. It happens to be wrong, but removing the
need for it results in a cleaner implementation as well as silencing the
warning.
2022-03-01 12:49:12 -08:00
John Ralls
67e8c317da [xml backend] Extract functions to make gz_trhead_func more readable. 2022-03-01 12:49:12 -08:00
Geert Janssens
25181a6c01 Fix function documentation
As pointed out by Kevin Buckley
2022-03-01 10:37:06 +01:00
Kárász Attila
6d1c9b534a
Translation update by Kárász Attila <cult.edie@gmail.com> using Weblate
po/hu.po: 54.5% (2937 of 5380 strings; 1468 fuzzy)
623 failing checks (11.5%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Translation update  by Kárász Attila <cult.edie@gmail.com> using Weblate

po/hu.po: 54.4% (2927 of 5380 strings; 1478 fuzzy)
636 failing checks (11.8%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Co-authored-by: Kárász Attila <cult.edie@gmail.com>
2022-02-28 22:55:45 +01:00
Avi Markovitz
310e2200db
Translation update by Avi Markovitz <avi.markovitz@gmail.com> using Weblate
po/he.po: 100.0% (5380 of 5380 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Hebrew)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/he/

Co-authored-by: Avi Markovitz <avi.markovitz@gmail.com>
2022-02-28 22:55:45 +01:00
Yaron Shahrabani
4693be5b10
Translation update by Yaron Shahrabani <sh.yaron@gmail.com> using Weblate
po/he.po: 100.0% (5380 of 5380 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Hebrew)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/he/

Co-authored-by: Yaron Shahrabani <sh.yaron@gmail.com>
2022-02-28 22:55:45 +01:00
Avi Markovitz
3901a784bc
Translation update by Avi Markovitz <avi.markovitz@gmail.com> using Weblate
po/he.po: 100.0% (5380 of 5380 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Hebrew)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/he/

Co-authored-by: Avi Markovitz <avi.markovitz@gmail.com>
2022-02-28 22:55:45 +01:00
YTX
e3ff00b354
Translation update by YTX <ytx.cash@gmail.com> using Weblate
po/zh_CN.po: 100.0% (5380 of 5380 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Co-authored-by: YTX <ytx.cash@gmail.com>
2022-02-28 22:55:45 +01:00
Pedro Albuquerque
43e537152f
Translation update by Pedro Albuquerque <pmra@gmx.com> using Weblate
po/pt.po: 100.0% (5380 of 5380 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Portuguese)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pt/

Co-authored-by: Pedro Albuquerque <pmra@gmx.com>
2022-02-28 22:55:45 +01:00
John Ralls
831b25f8f8 Merge Chris Lam's 'maint-progress1' into maint. 2022-02-28 13:51:45 -08:00
Christopher Lam
c3883e703b [trep-engine] faster csv list processing
instead of scanning the row 5 times: (length, make-list, append, map,
string-join), walk the list once building the accumulator along the way.
2022-02-28 21:34:25 +08:00
Christopher Lam
c642980456 [test-transaction] add tests for gnc:lists->csv 2022-02-28 20:59:41 +08:00
Arve Eriksson
c02e23bd96
Translation update by Arve Eriksson <031299870@telia.com> using Weblate
po/sv.po: 100.0% (5380 of 5380 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Swedish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/sv/

Translation update  by Arve Eriksson <031299870@telia.com> using Weblate

po/sv.po: 100.0% (5380 of 5380 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Swedish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/sv/

Co-authored-by: Arve Eriksson <031299870@telia.com>
2022-02-27 03:34:16 +01:00
Avi Markovitz
753bde5576
Translation update by Avi Markovitz <avi.markovitz@gmail.com> using Weblate
po/he.po: 100.0% (5380 of 5380 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Hebrew)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/he/

Translation update  by Avi Markovitz <avi.markovitz@gmail.com> using Weblate

po/he.po: 100.0% (5380 of 5380 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Hebrew)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/he/

Co-authored-by: Avi Markovitz <avi.markovitz@gmail.com>
2022-02-26 18:56:43 +01:00
Kárász Attila
35596d58d3
Translation update by Kárász Attila <cult.edie@gmail.com> using Weblate
po/hu.po: 54.2% (2918 of 5380 strings; 1487 fuzzy)
654 failing checks (12.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Translation update  by Kárász Attila <cult.edie@gmail.com> using Weblate

po/hu.po: 54.2% (2918 of 5380 strings; 1486 fuzzy)
654 failing checks (12.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Co-authored-by: Kárász Attila <cult.edie@gmail.com>
2022-02-25 11:55:38 +01:00
Avi Markovitz
142bbde44d
Translation update by Avi Markovitz <avi.markovitz@gmail.com> using Weblate
po/he.po: 100.0% (5380 of 5380 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Hebrew)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/he/

Co-authored-by: Avi Markovitz <avi.markovitz@gmail.com>
2022-02-25 11:55:37 +01:00
Francisco Serrador
4e6edeb06a
Translation update by Francisco Serrador <fserrador@gmail.com> using Weblate
po/es.po: 100.0% (5380 of 5380 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Spanish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/es/

Co-authored-by: Francisco Serrador <fserrador@gmail.com>
2022-02-23 19:56:09 +01:00
YTX
abed98a7c2
Translation update by YTX <ytx.cash@gmail.com> using Weblate
po/zh_CN.po: 100.0% (5380 of 5380 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Translation update  by YTX <ytx.cash@gmail.com> using Weblate

po/zh_CN.po: 100.0% (5380 of 5380 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Co-authored-by: YTX <ytx.cash@gmail.com>
2022-02-23 19:56:08 +01:00
Simeon
fd70c88423 [category-barchart] Added option to show ratios 2022-02-22 22:05:55 +08:00
Simeon
f991680644 [html-chart] Add format style option for numbers 2022-02-22 21:46:00 +08:00
Christopher Lam
136ddc9a57 [category-barchart] acct->name 2022-02-22 21:46:00 +08:00
Christopher Lam
5f06fc99fd [category-barchart] simplify code 2022-02-22 15:15:23 +08:00
Milo Ivir
b79dffc5f4
Translation update by Milo Ivir <mail@milotype.de> using Weblate
po/glossary/hr.po: 100.0% (216 of 216 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Croatian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/hr/

Co-authored-by: Milo Ivir <mail@milotype.de>
2022-02-19 18:50:39 +01:00
Christian Wehling
d7af17116f
Translation update by Christian Wehling <christian.wehling@web.de> using Weblate
po/de.po: 100.0% (5380 of 5380 strings; 0 fuzzy)
214 failing checks (3.9%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/

Translation update  by Christian Wehling <christian.wehling@web.de> using Weblate

po/de.po: 99.9% (5379 of 5380 strings; 0 fuzzy)
214 failing checks (3.9%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/

Translation update  by Christian Wehling <christian.wehling@web.de> using Weblate

po/glossary/de.po: 99.5% (215 of 216 strings; 1 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/de/

Translation update  by Christian Wehling <christian.wehling@web.de> using Weblate

po/de.po: 99.9% (5379 of 5380 strings; 0 fuzzy)
222 failing checks (4.1%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/

Co-authored-by: Christian Wehling <christian.wehling@web.de>
2022-02-19 18:50:39 +01:00
YTX
f6ed24995d
Translation update by YTX <ytx.cash@gmail.com> using Weblate
po/zh_CN.po: 100.0% (5380 of 5380 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Translation update  by YTX <ytx.cash@gmail.com> using Weblate

po/zh_CN.po: 100.0% (5380 of 5380 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Translation update  by YTX <ytx.cash@gmail.com> using Weblate

po/zh_CN.po: 100.0% (5380 of 5380 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Translation update  by YTX <ytx.cash@gmail.com> using Weblate

po/glossary/zh_CN.po: 100.0% (216 of 216 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/zh_Hans/

Translation update  by YTX <ytx.cash@gmail.com> using Weblate

po/zh_CN.po: 100.0% (5380 of 5380 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Translation update  by YTX <ytx.cash@gmail.com> using Weblate

po/zh_CN.po: 100.0% (5380 of 5380 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Translation update  by YTX <ytx.cash@gmail.com> using Weblate

po/zh_CN.po: 100.0% (5380 of 5380 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Translation update  by YTX <ytx.cash@gmail.com> using Weblate

po/zh_CN.po: 100.0% (5380 of 5380 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Translation update  by YTX <ytx.cash@gmail.com> using Weblate

po/zh_CN.po: 100.0% (5380 of 5380 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Co-authored-by: YTX <ytx.cash@gmail.com>
2022-02-19 18:50:39 +01:00
John Ralls
9a9bea4cd8 Replace code style guidance with reference to the wiki Coding Standard page. 2022-02-19 09:50:22 -08:00
YTX
1ed85c9b65
Translation update by YTX <ytx.cash@gmail.com> using Weblate
po/zh_CN.po: 100.0% (5380 of 5380 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Translation update  by YTX <ytx.cash@gmail.com> using Weblate

po/zh_CN.po: 100.0% (5380 of 5380 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Co-authored-by: YTX <ytx.cash@gmail.com>
2022-02-16 14:57:59 +01:00
Gregory-K
fc2fff0fea L10N:el: Add 17 accelerators 2022-02-15 11:11:21 +01:00
YTX
f9ae87e46c
Translation update by YTX <ytx.cash@gmail.com> using Weblate
po/zh_CN.po: 100.0% (5380 of 5380 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Translation update  by YTX <ytx.cash@gmail.com> using Weblate

po/zh_CN.po: 100.0% (5380 of 5380 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Co-authored-by: YTX <ytx.cash@gmail.com>
2022-02-15 10:56:04 +01:00
Gregory-K
de9b3324cf
Translation update by Gregory-K <lifeturn@gmail.com> using Weblate
po/el.po: 54.3% (2922 of 5380 strings; 1430 fuzzy)
506 failing checks (9.4%)
Translation: GnuCash/Program (Greek)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/el/

Co-authored-by: Gregory-K <lifeturn@gmail.com>
2022-02-14 07:58:07 +01:00
YTX
b6d7f4a270
Translation update by YTX <ytx.cash@gmail.com> using Weblate
po/zh_CN.po: 100.0% (5380 of 5380 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Translation update  by YTX <ytx.cash@gmail.com> using Weblate

po/zh_CN.po: 100.0% (5380 of 5380 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Translation update  by YTX <ytx.cash@gmail.com> using Weblate

po/zh_CN.po: 100.0% (5380 of 5380 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Translation update  by YTX <ytx.cash@gmail.com> using Weblate

po/zh_CN.po: 100.0% (5380 of 5380 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Co-authored-by: YTX <ytx.cash@gmail.com>
2022-02-14 07:58:07 +01:00
Avi Markovitz
a223038380
Translation update by Avi Markovitz <avi.markovitz@gmail.com> using Weblate
po/he.po: 100.0% (5380 of 5380 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Hebrew)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/he/

Co-authored-by: Avi Markovitz <avi.markovitz@gmail.com>
2022-02-14 07:58:06 +01:00
Milo Ivir
12133f9336
Translation update by Milo Ivir <mail@milotype.de> using Weblate
po/hr.po: 100.0% (5380 of 5380 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Croatian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hr/

Co-authored-by: Milo Ivir <mail@milotype.de>
2022-02-14 07:58:05 +01:00
Christian Wehling
1177cd5d98 taxinvoice.scm: removed trailing spaces 2022-02-13 15:50:14 +01:00
Frank H. Ellenberger
e25214bdbc L10N🇩🇪 Behebung eines Fehlers, gefunden von C. Wehling, und
"entfusseln"
2022-02-12 12:50:03 +01:00
Pedro Albuquerque
442921abd6
Translation update by Pedro Albuquerque <pmra@gmx.com> using Weblate
po/pt.po: 100.0% (5380 of 5380 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Portuguese)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pt/

Co-authored-by: Pedro Albuquerque <pmra@gmx.com>
2022-02-11 10:29:29 +01:00
Christopher Lam
4e950e6cf8 [net-charts] simplify code
Instead of collector->monetary which takes a collector (bag of
monetaries) and returns a monetary {report-currency, amount}, return
amount. Simplifies code.
2022-02-11 17:28:41 +08:00
Pedro Albuquerque
7d8c8cbb5c
Translation update by Pedro Albuquerque <pmra@gmx.com> using Weblate
po/pt.po: 100.0% (5380 of 5380 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Portuguese)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pt/

Co-authored-by: Pedro Albuquerque <pmra@gmx.com>
2022-02-09 08:40:38 +01:00
Wellington Terumi Uemura
1da41d488b
Translation update by Wellington Terumi Uemura <wellingtonuemura@gmail.com> using Weblate
po/pt_BR.po: 100.0% (5380 of 5380 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Portuguese (Brazil))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pt_BR/

Co-authored-by: Wellington Terumi Uemura <wellingtonuemura@gmail.com>
2022-02-08 23:57:16 +01:00
Christopher Lam
616658dbe9 [trep-engine] account name filter can exclude filtered string 2022-02-08 20:41:43 +08:00
Robert Fewell
331a394795 Console error when cleared transaction is deleted
If a cleared transaction is deleted when the reconcile dialog is open
on that account, the following console error is observed...

sys:1: Warning: g_hash_table_foreach: assertion
'version == hash_table->version' failed

To fix this use g_hash_table_foreach_remove and modify helper function
instead of g_hash_table_foreach
2022-02-08 09:53:19 +00:00
Robert Fewell
5d52fd8bd2 Change reconcile-view scrolling to selection
Change the gnc_reconcile_view_refresh function to use the function
gnc_query_view_force_scroll_to_selection function.
2022-02-08 09:53:19 +00:00
Robert Fewell
a9faf86141 Add functions to gnc-query-view to do scrolling to selection
Add the ability when a row is selected to scroll to that row so it is
always visible when reordering the list.

The first function, gnc_query_use_scroll_to_selection can enable or
disable this for the query view, the default is off.

Two functions do the scrolling, gnc_query_scroll_to_selection and
gnc_query_force_scroll_to_selection with the first one respecting the
value of use scrolling to selection whereas the second will always do
it.
2022-02-08 09:53:19 +00:00
Robert Fewell
c054b97718 Bug 798438 - on reconcile window, 'R' column sorting broken
Sorting on the 'R' column was enabled in version 3.0 by mistake and
never worked as expected. Due to the 'R' column using a function to
populate the model, the existing sorting method would not work as this
was achieved by changing the query.

To fix this add a sorting function to sort the model for the 'R' column.
2022-02-08 09:53:19 +00:00