Commit Graph

24729 Commits

Author SHA1 Message Date
Christopher Lam
86cf327f09 [account.cpp] GValue containing string must be unset
already have comprehensive tests in 15852031d
2021-09-19 11:28:25 +08:00
Christopher Lam
c8a53c54f2 [account.cpp] refactor gnc_account_get_map_entry
Have comprehensive tests in a5d101d1b
2021-09-19 11:28:25 +08:00
Christopher Lam
4309469730 [utest-Account] test old dxaccAccount* functions
dxaccAccountGetPriceSrc and dxaccAccountGetQuoteTZ.

DxaccAccountSetCurrency remains untested - unsure how to retrieve an
ISO4217 currency to use as parameter.
2021-09-19 11:27:03 +08:00
Marco Zietzling
57cb8c193a
Translation update by Marco Zietzling <marco.zietzling@gmail.com> using Weblate
po/glossary/de.po: 100.0% (208 of 208 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/de/

Translation update  by Marco Zietzling <marco.zietzling@gmail.com> using Weblate

po/de.po: 99.9% (5361 of 5362 strings; 1 fuzzy)
231 failing checks (4.3%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/

Translation update  by Marco Zietzling <marco.zietzling@gmail.com> using Weblate

po/de.po: 99.9% (5361 of 5362 strings; 1 fuzzy)
248 failing checks (4.6%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/

Co-authored-by: Marco Zietzling <marco.zietzling@gmail.com>
2021-09-18 19:35:25 +02:00
Marco Zietzling
6573cb2835
Translation update by Marco Zietzling <marco.zietzling@gmail.com> using Weblate
po/de.po: 99.9% (5361 of 5362 strings; 1 fuzzy)
248 failing checks (4.6%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/

Co-authored-by: Marco Zietzling <marco.zietzling@gmail.com>
2021-09-18 02:38:53 +02:00
Marco Zietzling
5e57eee9e8
Translation update by Marco Zietzling <marco.zietzling@gmail.com> using Weblate
po/de.po: 99.8% (5353 of 5362 strings; 9 fuzzy)
251 failing checks (4.6%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/

Co-authored-by: Marco Zietzling <marco.zietzling@gmail.com>
2021-09-17 23:44:29 +02:00
John Ralls
9fb9868b54 Bug 798312 - Opening the help for dialogues in the wrong language. 2021-09-17 14:43:59 -07:00
John Ralls
37196fa015 g_list_reverse reverses in place, don't free trans_list_remain. 2021-09-16 18:08:48 -07:00
Jiri Grönroos
ca274e361e
Translation update by Jiri Grönroos <jiri.gronroos@iki.fi> using Weblate
po/fi.po: 67.2% (3606 of 5362 strings; 44 fuzzy)
16 failing checks (0.2%)
Translation: GnuCash/Program (Finnish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/fi/

Co-authored-by: Jiri Grönroos <jiri.gronroos@iki.fi>
2021-09-16 18:56:23 +02:00
John Ralls
fcce3ec9a4 Merge Chris Good's 'maintBug798235RecEndBal' into maint. 2021-09-16 09:52:17 -07:00
John Ralls
1170d7b0d4 Merge Jean Laroche's '105334_ofx_multiple_accounts' into maint. 2021-09-16 09:46:30 -07:00
Eugenia Russell
93289006e3
Translation update by Eugenia Russell <eugenia.russell2019@gmail.com> using Weblate
po/glossary/el.po: 100.0% (208 of 208 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Greek)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/el/

Co-authored-by: Eugenia Russell <eugenia.russell2019@gmail.com>
2021-09-16 07:35:25 +02:00
Wellington Terumi Uemura
48f3f84162
Translation update by Wellington Terumi Uemura <wellingtonuemura@gmail.com> using Weblate
po/pt_BR.po: 100.0% (5362 of 5362 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>
2021-09-16 07:35:25 +02:00
Jiri Grönroos
12fec5a449
Translation update by Jiri Grönroos <jiri.gronroos@iki.fi> using Weblate
po/fi.po: 66.8% (3582 of 5362 strings; 45 fuzzy)
16 failing checks (0.2%)
Translation: GnuCash/Program (Finnish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/fi/

Co-authored-by: Jiri Grönroos <jiri.gronroos@iki.fi>
2021-09-16 07:35:24 +02:00
John Ralls
5f8e0347ec Fix test-import-backend failure.
Linking gnc-engine caused an ODR violation in gnc-date.cpp. Instead
fake qof_log_check() in gtest-import-backend.cpp.
2021-09-15 10:19:20 -07:00
Avi Markovitz
1409c1c5f5
Translation update by Avi Markovitz <avi.markovitz@gmail.com> using Weblate
po/he.po: 100.0% (5362 of 5362 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>
2021-09-15 15:09:35 +02:00
Christopher Lam
a5d101d1be [utest-Account] test gnc_account_get_map_entry 2021-09-15 21:09:01 +08:00
Christopher Lam
73ad5b1265 [gnc-glib-utils] use g_stpcpy instead of gnc_strcat
g_stpcpy will use stpcpy wherever available.
2021-09-15 21:09:01 +08:00
Christopher Lam
aa0668f9e6 Revert "[account.cpp] deprecate old dxacc* functions"
This reverts commit d290c3c45d. These
functions are not deprecated after all.
2021-09-15 21:09:00 +08:00
Frank H. Ellenberger
134de3ab74 L10N🇩🇪 fix 2 messages
5352 translated messages, 9 fuzzy translations, 1 untranslated message.
2021-09-15 13:37:26 +02:00
Jiri Grönroos
c52b04c34c
Translation update by Jiri Grönroos <jiri.gronroos@iki.fi> using Weblate
po/fi.po: 63.6% (3412 of 5362 strings; 58 fuzzy)
19 failing checks (0.3%)
Translation: GnuCash/Program (Finnish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/fi/

Co-authored-by: Jiri Grönroos <jiri.gronroos@iki.fi>
2021-09-15 11:35:57 +02:00
Christopher Lam
d290c3c45d [account.cpp] deprecate old dxacc* functions 2021-09-15 09:20:04 +08:00
Christopher Lam
374443747d [account.cpp] new static: get/set_kvp_string_path
exactly the same as set_kvp_string_tag but will accept the full kvp
path.
2021-09-15 09:19:17 +08:00
John Ralls
1d8983191d Fix runaway sed error. 2021-09-14 16:24:28 -07:00
John Ralls
824b515430 Fix qoflog's comments to reflect a preference for the macros over GLib functions. 2021-09-14 15:59:01 -07:00
John Ralls
74d0630867 Bug 798237 - Logging during XML file loading degrades performance...
significantly

Modify the DEBUG and PINFO macros to return unless qof_log_check is
true. Replace almost all direct calls to g_debug and g_message with
DEBUG and PINFO respectively.

Track the highest logging level sent to qof_log_set_level to provide a
short-circuit return in qof_log_check. Remove setting GNC_MOD_TESTS to
QOF_LOG_DEBUG so that the short-circuit threshold isn't defeated by
always being DEBUG.

Net result: 33% improvement in xml load times.
2021-09-14 15:15:11 -07:00
John Ralls
574f567b62 Refactor GncXmlBackend::get_file_lock.
Moving all of the error-handling to it for better clarity and
simplicity. Drop the unnecessary stat call, open will fail with
EEXIST if there's already a lock file. Provide specific messages
for file system failures.
2021-09-14 09:32:12 -07:00
John Ralls
d7eae0664f [gz_open] Use compress and write consistent with calling functions. 2021-09-14 08:29:11 -07:00
John Ralls
8e4c4948cc Put version back to 4.6 2021-09-14 08:28:49 -07:00
Frank H. Ellenberger
3659c2a6a7 L10N:pt: update to PO-Revision-Date: 2021-09-14 06:55+0100 fom TP
5362 translated messages.
2021-09-14 10:36:44 +02:00
Frank H. Ellenberger
41c94e9409 L10N🇬🇧 update to PO-Revision-Date: 2021-09-13 19:25+0300 fom TP
5362 translated messages.
2021-09-14 10:35:09 +02:00
Milo Ivir
36797c1d0a
Translation update by Milo Ivir <mail@milotype.de> using Weblate
po/hr.po: 99.9% (5361 of 5362 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>
2021-09-14 01:29:11 +02:00
Avi Markovitz
7e2111f6f9
Translation update by Avi Markovitz <avi.markovitz@gmail.com> using Weblate
po/he.po: 99.9% (5360 of 5362 strings; 2 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>
2021-09-14 01:29:11 +02:00
Yaron Shahrabani
33d780080a
Translation update by Yaron Shahrabani <sh.yaron@gmail.com> using Weblate
po/he.po: 99.9% (5359 of 5362 strings; 2 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>
2021-09-14 01:29:10 +02:00
Eric
e43df5a804
Translation update by Eric <spice2wolf@gmail.com> using Weblate
po/zh_CN.po: 99.9% (5358 of 5362 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: Eric <spice2wolf@gmail.com>
2021-09-14 01:29:10 +02:00
Christopher Lam
15852031d4 [utest-account.cpp] increase test coverage
adds getter/setter tests for

xaccAccountSetLastNum
xaccAccountSetTaxUSCode
xaccAccountSetTaxUSPayerNameSource
2021-09-14 07:12:15 +08:00
John Ralls
c3f8daaf7d Bug 798250 - Gnucash permanent hang on save while loading report
Prevent WebKit's fork from getting a copy of the pipe's file descriptors
and so keeping the pipe from closing.

Thanks to Simon Arlott for recognizing the FD duplication.
2021-09-13 13:18:10 -07:00
Frank H. Ellenberger
c1525f78bc L10N: 4.7-pre1 msgmerge 2021-09-13 09:34:07 +02:00
John Ralls
edad194389 Bug 798180 - Update to macOS Big Sur 11.3 breaks Finance Quote
Added new dependency Test2 to gnc-fq-update. This is a second-order
dependency of Finanance::Quote that CPAN doesn't seem to recognize
on its own.
2021-09-11 16:09:55 -07:00
John Ralls
b9deb5ea2a Bug 798303 - account list is sorted wrong by amount
Use balances converted to the default currency when sorting columns on
the accounts page.
2021-09-11 10:11:36 -07:00
Christopher Lam
d0f7daf4cf Revert "[engine.i] QofQueryParamList * args must be freed"
This reverts commit 72a3ebbba3. Freeing
does not apply to all qof_query_* calls.
2021-09-11 15:45:32 +08:00
Christopher Lam
72a3ebbba3 [engine.i] QofQueryParamList * args must be freed 2021-09-11 14:59:18 +08:00
John Ralls
b8552a8070 Fix python transaction test_date on Ubuntu-81.04.
Python3 there is too old for fromisoformat, use direct construction
instead.
2021-09-10 17:01:38 -07:00
TianXing_Yi
a310b72b37
Translation update by TianXing_Yi <ytx.cash@gmail.com> using Weblate
po/zh_CN.po: 99.9% (5361 of 5364 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: TianXing_Yi <ytx.cash@gmail.com>
2021-09-10 22:28:34 +02:00
John Ralls
fcab298245 Add test for Transaction GetDate() in python bindings.
Pursuant to Bug 798284.
2021-09-10 13:26:59 -07:00
John Ralls
cd0d50aac1 Deprecate date options with a time of day setting.
Removing the only use, an example in hello-world.scm. GnuCash doesn't
use this value in any of its own report options and the feature will
be removed in GnuCash 5.

Related to bug 798297 Pref "Use 24-hour clock" obsolete?.
2021-09-10 12:21:46 -07:00
jean
34bd7b49b2 Restore previous behavior when the user cancels 2021-09-09 21:38:47 -07:00
John Ralls
ff26b71a91 Bug 798256 - Crash in recnFinishCB
Make the action_group not sensitive in the recn_destroy_cb so that
the action callbacks won't be called after the recnData is freed.
2021-09-09 18:03:18 -07:00
John Ralls
8ab8642e76 Fix leak of trading_splits list in xaccTransClearTradingSplits 2021-09-09 16:32:43 -07:00
John Ralls
1387d5f960 Fix unchecked ptr dereference.
First crash in Bug 798225.
2021-09-09 16:32:43 -07:00