Commit Graph

28644 Commits

Author SHA1 Message Date
Christopher Lam
9213853a3b [iter-to-stl] last merge: rename filename to gnc-tree-container.hpp
to reflect class name
2023-08-15 13:25:39 +08:00
Christopher Lam
d8a0e294dc Merge branch 'iter-to-stl' into stable #1745 2023-08-15 13:09:05 +08:00
Christopher Lam
bea6b52d3f [assistant-csv-trans-import.cpp] uses GtkTreeModelContainer 2023-08-15 12:41:40 +08:00
Christopher Lam
f10d7a7c8e [assistant-csv-price-import.cpp] uses GtkTreeModelContainer 2023-08-15 12:41:40 +08:00
Christopher Lam
d5b5d01698 [gnc-tree-model-container.hpp] GtkTreeModelContainer 2023-08-15 12:32:17 +08:00
Carsten Hütter
f6f305fdee
Translation update by Carsten Hütter <Carsten.Huetter@gmx.de> using Weblate
po/de.po: 100.0% (5524 of 5524 strings; 0 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/

Co-authored-by: Carsten Hütter <Carsten.Huetter@gmx.de>
2023-08-14 20:48:52 +02:00
Christian Wehling
9164c3fea6
Translation update by Christian Wehling <christian.wehling@web.de> using Weblate
po/glossary/de.po: 100.0% (216 of 216 strings; 0 fuzzy)
5 failing checks (2.3%)
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: 100.0% (5524 of 5524 strings; 0 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/

Co-authored-by: Christian Wehling <christian.wehling@web.de>
2023-08-14 20:48:52 +02:00
Carsten Hütter
e3e62c8363
Translation update by Carsten Hütter <Carsten.Huetter@gmx.de> using Weblate
po/de.po: 100.0% (5524 of 5524 strings; 0 fuzzy)
6 failing checks (0.1%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/

Translation update  by Carsten Hütter <Carsten.Huetter@gmx.de> using Weblate

po/de.po: 99.7% (5512 of 5524 strings; 10 fuzzy)
11 failing checks (0.1%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/

Co-authored-by: Carsten Hütter <Carsten.Huetter@gmx.de>
2023-08-14 03:52:28 +02:00
Stephan Paternotte
2bce6bd387
Translation update by Stephan Paternotte <stephan@paternottes.net> using Weblate
po/nl.po: 100.0% (5524 of 5524 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Dutch)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/nl/

Co-authored-by: Stephan Paternotte <stephan@paternottes.net>
2023-08-14 03:52:27 +02:00
Carsten Hütter
8fa8ee69b4
Translation update by Carsten Hütter <Carsten.Huetter@gmx.de> using Weblate
po/de.po: 99.7% (5509 of 5524 strings; 12 fuzzy)
12 failing checks (0.2%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/

Co-authored-by: Carsten Hütter <Carsten.Huetter@gmx.de>
2023-08-12 12:46:10 +02:00
Christopher Lam
9fea6a87c5 [gnucash-cli] doesn't need gnc-gnome-utils anymore
removing 4k from the gnucash-cli file
2023-08-12 00:07:27 +08:00
Christopher Lam
8d3b2d8c6b [gnucash-commands] gnucash-cli has customised gnc_shutdown
which doesn't need to shut down ui
2023-08-12 00:07:27 +08:00
Christopher Lam
bda9ab71e8 [gnucash-core-app.cpp] gnc_load_scm_config has callback to show/log message
thus the cli gnucash-commands.cpp sends a customised callback which
doesn't update splash screen.
2023-08-12 00:07:27 +08:00
Christopher Lam
f8546dc4da Fix compilation error from 5781f3445b 2023-08-11 23:35:10 +08:00
Frank H. Ellenberger
5bf7453183 Revert "Translation update by John Ralls <jralls@ceridwen.us> using
Weblate"

This reverts commit 4b633cf371.

John's change was also provided in PR #1743 and in its Rebase Weblate
did a line wrapping and removed some old msgids.
2023-08-11 06:41:06 +02:00
John Ralls
4b633cf371
Translation update by John Ralls <jralls@ceridwen.us> using Weblate
po/fr.po: 99.9% (5522 of 5524 strings; 2 fuzzy)
3 failing checks (0.1%)
Translation: GnuCash/Program (French)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/fr/

Co-authored-by: John Ralls <jralls@ceridwen.us>
2023-08-11 06:24:04 +02:00
Wellington Terumi Uemura
06e20a1e7b
Translation update by Wellington Terumi Uemura <wellingtonuemura@gmail.com> using Weblate
po/pt_BR.po: 91.7% (5066 of 5524 strings; 303 fuzzy)
131 failing checks (2.3%)
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>
2023-08-11 06:24:01 +02:00
Frank H. Ellenberger
56b788ecec Merge branch 'pr_#1743' into stable 2023-08-11 06:20:30 +02:00
John Ralls
73dec63d1d Eliminate a frequent exception in guid_from_string
By not trying to construct a GUID from an empty string.
2023-08-10 14:05:10 -07:00
John Ralls
5781f3445b SQLBackend: Use std::optional return value instead of exceptions
For wrong value type when retrieving a value from the SQL results row.

Profiling showed that most of the SQL load time was spent in handling
these exceptions, and using std::optional instead produced a > 11x
speedup (10 seconds vs. 115 seconds) when loading a large file.
2023-08-10 14:05:10 -07:00
xavier268
382407e2e6
L10N🇫🇷 Fix report title date issue 2023-08-10 20:54:56 +02:00
Milan Šalka
beec420486
Translation update by Milan Šalka <salka.milan@googlemail.com> using Weblate
po/sk.po: 50.9% (2816 of 5524 strings; 1406 fuzzy)
531 failing checks (9.6%)
Translation: GnuCash/Program (Slovak)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/sk/

Co-authored-by: Milan Šalka <salka.milan@googlemail.com>
2023-08-09 22:50:02 +02:00
Christopher Lam
5f01aebfaa [import-main-matcher.cpp] when main matcher finalizes, refresh gui
If an import would add new transactions into the current register, and
the import dialog is cancelled, the GUI would show extra blank lines
for the deleted imported transactions. Refreshing GUI will ensure the
correct unchanged account register is shown.
2023-08-09 21:52:58 +08:00
Robert Fewell
c52e64a174 Bug 799036 - Import prices from a CSV date problem
After importing CSV prices, the Chart of Accounts tree values are not
updated until forced to do so by say 'View->Refresh'. To fix this after
doing the import call 'gnc_gui_refresh_all' which will trigger a
refresh event similar to that when you update prices manually.
2023-08-09 11:07:43 +01:00
Robert Fewell
7a1f01d3ca Bug799051 - Shortcut Ctrl + Tab not working in 5.3
In a register description cell pressing Ctrl+Tab would populate the
description cell if the list had only one entry, i.e. all the register
transaction descriptions were the same. This was removed by mistake so
this commit adds it back.
2023-08-09 09:28:39 +01:00
Wellington Terumi Uemura
79e36e6cf5
Translation update by Wellington Terumi Uemura <wellingtonuemura@gmail.com> using Weblate
po/pt_BR.po: 91.7% (5066 of 5524 strings; 303 fuzzy)
131 failing checks (2.3%)
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>
2023-08-09 00:46:26 +02:00
John Ralls
a5404f6607 Improve reporting when parse_quote throws an exception.
Add more detail to the error message and pass the right value to the
gnc_error_dialog so that the error is actually displayed to the user.
2023-08-08 15:41:16 -07:00
Christopher Lam
0909fd9b0f [import-backend.cpp] match_list members must be freed
they were allocated in split_find_match with g_new0
2023-08-08 20:23:15 +08:00
Christopher Lam
e91752dba2 [gnc-ui-util.c] plug GList* leak
because gnc_account_get_children should have been freed.
2023-08-08 19:59:54 +08:00
Pedro Albuquerque
b2273a1e44
Translation update by Pedro Albuquerque <pmra@gmx.com> using Weblate
po/pt.po: 100.0% (5524 of 5524 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>
2023-08-08 02:12:43 +02:00
Christopher Lam
fc21c55a0b [gnc-pricedb.cpp] more glib g_list uses
* use g_list_find_custom where appropriate
* also g_list_free_full and g_list_foreach
2023-08-07 08:39:07 +08:00
Robert Fewell
190fbc2031 Bug 798990 - Notes No Longer Autofills
With the change to delay loading the non focused registers, the notes
and memo quick fills are empty. This is due to trying to populate the
quick fill on the first load when there are no splits so change
populating the quick fill lists to the subsequent load only.
2023-08-06 11:46:42 +01:00
Robert Fewell
0a9e999cfd Check that the register completioncell tree view is realized before trying to scroll to point 2023-08-06 11:37:25 +01:00
Robert Fewell
0bd34a010e Remove a couple of not used variables from previous commit. 2023-08-06 09:27:26 +01:00
Arve Eriksson
f5ec597bd7
Translation update by Arve Eriksson <031299870@telia.com> using Weblate
po/sv.po: 100.0% (5524 of 5524 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>
2023-08-06 03:49:11 +02:00
Robert Fewell
84db7916a0 Bug 799048 - Hover on tab not correct
When the account name is changed, an event is used to update the tool
tip on the register tab. If the account is moved, the same event is
triggered but as the name is the same, the tool tip is not updated.

Add a new function 'main_window_update_page_long_name' to only update
the long name and the tool tip and call it from the register event
after setting the name. Also remove the setting of the long name from
'main_window_update_page_name'.
2023-08-05 14:46:08 +01:00
Christopher Lam
d89544563d Revert "[gnc-pricedb.cpp] use std::pair instead of a struct for PriceTuple"
This reverts commit 2d730e38d5.
2023-08-05 11:02:57 +08:00
gallegonovato
d2e0ccfe29
Translation update by gallegonovato <fran-carro@hotmail.es> using Weblate
po/es.po: 100.0% (5524 of 5524 strings; 0 fuzzy)
2 failing checks (0.1%)
Translation: GnuCash/Program (Spanish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/es/

Co-authored-by: gallegonovato <fran-carro@hotmail.es>
2023-08-04 14:38:18 +02:00
Yuri Chornoivan
2c6c2074f1
Translation update by Yuri Chornoivan <yurchor@ukr.net> using Weblate
po/uk.po: 100.0% (5524 of 5524 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Ukrainian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/uk/

Co-authored-by: Yuri Chornoivan <yurchor@ukr.net>
2023-08-04 14:38:18 +02:00
Christopher Lam
2d730e38d5 [gnc-pricedb.cpp] use std::pair instead of a struct for PriceTuple 2023-08-04 20:34:07 +08:00
Christopher Lam
6b741ddf32 [gnc-pricedb.cpp] use forloop instead of do..while and while
because they're scanning GLists, and forloop is tidier than while
2023-08-04 20:33:02 +08:00
Stephan Paternotte
ce6bdc2c2d
Translation update by Stephan Paternotte <stephan@paternottes.net> using Weblate
po/nl.po: 100.0% (5524 of 5524 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Dutch)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/nl/

Co-authored-by: Stephan Paternotte <stephan@paternottes.net>
2023-08-03 20:14:40 +02:00
Yuri Chornoivan
062a2cec37
Translation update by Yuri Chornoivan <yurchor@ukr.net> using Weblate
po/uk.po: 100.0% (5524 of 5524 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Ukrainian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/uk/

Co-authored-by: Yuri Chornoivan <yurchor@ukr.net>
2023-08-03 20:14:40 +02:00
Simon Arlott
292d80cca6
Translation update by Simon Arlott <weblate.simon@arlott.org> using Weblate
po/en_NZ.po: 100.0% (5524 of 5524 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (English (New Zealand))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/en_NZ/

Translation update  by Simon Arlott <weblate.simon@arlott.org> using Weblate

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

Translation update  by Simon Arlott <weblate.simon@arlott.org> using Weblate

po/en_GB.po: 100.0% (5524 of 5524 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (English (United Kingdom))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/en_GB/

Co-authored-by: Simon Arlott <weblate.simon@arlott.org>
2023-08-03 20:14:40 +02:00
John Ralls
4d46a8191d Merge Simon Arlott's 'test-xml-save' into stable. 2023-08-03 11:05:11 -07:00
Frank H. Ellenberger
f8593a3c3f Msgmerge recent change 2023-08-03 06:25:38 +02:00
Frank H. Ellenberger
47e0edcf9c I18N: Replace "Split View" by "Show Splits" to avoid ambuigity 2023-08-03 05:24:48 +02:00
Andrea Andre
c4a5500330
Translation update by Andrea Andre <andrea.tsg19@slmail.me> using Weblate
po/ro.po: 48.5% (2682 of 5524 strings; 1898 fuzzy)
727 failing checks (13.1%)
Translation: GnuCash/Program (Romanian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ro/

Translation update  by Andrea Andre <andrea.tsg19@slmail.me> using Weblate

po/ro.po: 48.4% (2675 of 5524 strings; 1912 fuzzy)
734 failing checks (13.2%)
Translation: GnuCash/Program (Romanian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ro/

Co-authored-by: Andrea Andre <andrea.tsg19@slmail.me>
2023-08-02 18:57:40 +02:00
Christopher Lam
79c0fe4724 [gnc-pricedb.cpp] convert hash_table_to_list to hash_table_to_vector 2023-08-03 00:34:30 +08:00
Christopher Lam
5e09b662a1 [utest-gnc-pricedb] test gnc_pricedb_foreach_price both stable and unstable 2023-08-03 00:33:52 +08:00