Commit Graph

24755 Commits

Author SHA1 Message Date
Christopher Lam
b6cbc97865 Another double g_object_unref in 998e14c107 2021-09-24 09:35:59 +08:00
Christopher Lam
8e144c2d5c Don't double g_object_unref in 998e14c107 2021-09-24 09:32:29 +08:00
Alexandre
7e5f44c0ff
Translation update by Alexandre <nasmi3+weblate@gmail.com> using Weblate
po/fr.po: 75.5% (4052 of 5363 strings; 912 fuzzy)
376 failing checks (7.0%)
Translation: GnuCash/Program (French)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/fr/

Co-authored-by: Alexandre <nasmi3+weblate@gmail.com>
2021-09-23 21:11:06 +02:00
John Ralls
09b2533c0d More OFX_INVBANKTRANS fixes.
Includes fixing broken build if libofx is < v 0.10.
2021-09-23 12:10:40 -07:00
Alexandre
09da6aa183
Translation update by Alexandre <nasmi3+weblate@gmail.com> using Weblate
po/fr.po: 75.1% (4029 of 5363 strings; 934 fuzzy)
384 failing checks (7.1%)
Translation: GnuCash/Program (French)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/fr/

Translation update  by Alexandre <nasmi3+weblate@gmail.com> using Weblate

po/fr.po: 75.1% (4029 of 5363 strings; 934 fuzzy)
384 failing checks (7.1%)
Translation: GnuCash/Program (French)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/fr/

Co-authored-by: Alexandre <nasmi3+weblate@gmail.com>
2021-09-23 13:29:07 +02:00
Milo Ivir
75af645ab0
Translation update by Milo Ivir <mail@milotype.de> using Weblate
po/hr.po: 100.0% (5363 of 5363 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-23 01:14:11 +02:00
John Ralls
3cf9f85ea3 Bug 798208 - management fee transactions are ignored on OFX import
Treat INVBANKTRAN like BANKTRAN.
2021-09-22 16:07:49 -07:00
Geert Janssens
8ea52ae212 GSettings - run data model transations while setting up
This makes sure all schema changes are in effect before
the first consumer can query them. For example this will
prevent a one-time re-occurrence of the tip of the day dialog
the first time the new migrations are run.
2021-09-22 15:44:30 +02:00
Geert Janssens
e1039b2dba GSettings Upgrade - add missing aqb and ofx deprecated schema keys
They are unused by GnuCash except for migrating their
values to the newer equivalents. For simplicity they
are added to the main deprecated schema file. They
will be fully removed in a future major release.
2021-09-22 15:31:17 +02:00
Christopher Lam
94f6d11e3d [gnc-budget-view] initialize totals_col_list in reverse
b2b879211 had modified totals_cols_list from g_list_append to
g_list_prepend and g_list_reverse. this assumed that it was already
initialized in reverse. this commit fixes it to ensure
gnc_budget_view_refresh is processing the reversed totals_col_list.
2021-09-22 21:08:57 +08:00
Christopher Lam
c0736a1a04 Merge branch 'maint-leaks' into maint #1135 2021-09-22 21:06:25 +08:00
Frank H. Ellenberger
78d5003375
Translation update by Frank H. Ellenberger <frank.h.ellenberger@gmail.com> using Weblate
po/de.po: 100.0% (5363 of 5363 strings; 0 fuzzy)
231 failing checks (4.3%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/

Co-authored-by: Frank H. Ellenberger <frank.h.ellenberger@gmail.com>
2021-09-21 21:52:45 +02:00
Christian Wehling
569322c1e2
Translation update by Christian Wehling <christian.wehling@web.de> using Weblate
po/de.po: 99.9% (5361 of 5363 strings; 2 fuzzy)
231 failing checks (4.3%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/

Co-authored-by: Christian Wehling <christian.wehling@web.de>
2021-09-21 21:52:45 +02:00
Geert Janssens
f1802b6fdf GSettings Upgrade - add code to migrate settings
The rules for migration are read from an xml file. This file was
prepared in a previous commit. Future settings 'data model' changes can
reuse this code by simply adding migration rules in the xml file.

This replaces the hardcoded rules that were currently in place to
migrate a few settings from 2.6 and older to 3.0. These rules are no
longer meaningful as we require users to migrate from one major release
series to the immediate next one. So by the time the new migration rules
in this commit are applied by users they should already have run gnucash
3.x at least once. That run should have taken care of the pre-3.0
migration actions.
2021-09-21 17:10:56 +02:00
Geert Janssens
b3daeecb85 GSettings Upgrade - Compose a list of settings that can be migrated at runtime
This list consists of old and new values for gsettings paths and keys
and will allow gnucash to migrate values from each old path and key
to the corresponding new path and key.
2021-09-21 17:10:56 +02:00
Geert Janssens
f21c7b6e90 GSettings - define old prefix and check settings for the presence of both prefixes while normalizing 2021-09-21 17:10:56 +02:00
Geert Janssens
a203c5b2d5 GSettings - drop logic to relocate our settings
This was ported from GConf, but GSettings doesn't work that way.
Settings locations are defined at compile time and can't be
relocated at run time (unless you make all of the settings
explicitly relocatable. That however is not how GSettings is meant to be
used.)
2021-09-21 17:10:56 +02:00
Geert Janssens
d1113a4534 GSettings - build as cpp 2021-09-21 17:10:56 +02:00
Geert Janssens
02fbf217f6 GSettings Upgrade - change schema prefix from org.gnucash to org.gnucash.GnuCash
The latter is the prefix format prescribed by gsettings itself. The former never
was an issue until flatpak decided to not accept the shorter prefix when
requesting a settings migration from host system to flatpak sandbox.

In order to allow for migration, keep the old schema around in
org.gnucash.GnuCash.deprecated.gschema.in

While we're at it, make the new prefix an internal implementation detail.
There's no need for it to be visible to the rest of the gnucash code.
2021-09-21 17:10:55 +02:00
Geert Janssens
6674b1bb6b Cleanup - minimal glib=2.56.1 - drop all conditionals on older versions 2021-09-21 17:10:55 +02:00
Eric
a20f2defc2
Translation update by Eric <spice2wolf@gmail.com> using Weblate
po/zh_CN.po: 99.9% (5358 of 5363 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-21 05:37:43 +02:00
Wellington Terumi Uemura
2870d3f2d2
Translation update by Wellington Terumi Uemura <wellingtonuemura@gmail.com> using Weblate
po/pt_BR.po: 100.0% (5363 of 5363 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-21 05:37:42 +02:00
Yaron Shahrabani
06346c5ef0
Translation update by Yaron Shahrabani <sh.yaron@gmail.com> using Weblate
po/he.po: 100.0% (5363 of 5363 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>
2021-09-21 05:37:41 +02:00
Frank H. Ellenberger
1af8deac60 I18N: msgmerge 4.7-pre2 2021-09-20 22:42:35 +02:00
Frank H. Ellenberger
2b5a4fef76 I18N: Mark a forgotten message translatable
found by Christian Wehling
2021-09-20 22:28:17 +02:00
Christopher Lam
87b61bf6fb [account.cpp] GValue must be unset in old functions
GValue in DxaccAccount[Set|Get]Currency is unset correctly.

However dxaccAccountGetPriceSrc and dxaccAccountSetQuoteTZ reuse a
static char* therefore the latter must be used carefully before
calling the function again. The functions are tested in
4309469730.
2021-09-19 11:28:25 +08:00
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