Commit Graph

24849 Commits

Author SHA1 Message Date
Christopher Lam
f0970c8eb4 [gnc-features] don't repeatedly g_strconcat gchars* 2021-10-20 19:29:32 +08:00
Christopher Lam
31a0300abe [Recurrence.c] avoid repeated calls to g_list_length 2021-10-20 19:29:26 +08:00
Christopher Lam
6bcd69026b [gnc-budget-view] avoid O(N^2) g_list_length calls 2021-10-20 19:29:18 +08:00
Yaron Shahrabani
a3fedfe5ae
Translation update by Yaron Shahrabani <sh.yaron@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: Yaron Shahrabani <sh.yaron@gmail.com>
2021-10-19 22:41:28 +02:00
Frank H. Ellenberger
56ae17c731 L10N:sv:: merge recent 4.8-pot2
5245 translated messages, 113 fuzzy translations, 4 untranslated
messages.
2021-10-19 02:02:03 +02:00
Arve Eriksson
2a47344658 L10N:sv: 2021-10-17 Update from translationproject.org (4.7-pre1)
5256 translated messages, 106 fuzzy translations.
2021-10-19 02:01:43 +02:00
Wellington Terumi Uemura
a52f7eabed
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-10-18 16:42:40 +02:00
Yaron Shahrabani
d1bb815e33
Translation update by Yaron Shahrabani <sh.yaron@gmail.com> using Weblate
po/he.po: 99.9% (5361 of 5362 strings; 1 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hebrew)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/he/

Co-authored-by: Yaron Shahrabani <sh.yaron@gmail.com>
2021-10-18 16:42:40 +02:00
Christopher Lam
b480600dc8 [gnc-pricedb] gnc_price_list_equal: avoid 4 g_list_length calls 2021-10-18 22:41:44 +08:00
Christopher Lam
23e528f51a [utest-gnc-pricedb] add tests for gnc_price_list_equal
Also need to change PWARN which causes test failure, to PINFO
2021-10-18 22:25:21 +08:00
Frank H. Ellenberger
de6ee25e72 L10N: merge recent change 2021-10-17 23:12:26 +02:00
Frank H. Ellenberger
bdc14adffe I18N: Improve the recently marked messages from commit ae55908 2021-10-17 23:04:46 +02:00
Christian Wehling
e2d5257bbc
Translation update by Christian Wehling <christian.wehling@web.de> using Weblate
po/de.po: 99.8% (5356 of 5362 strings; 6 fuzzy)
229 failing checks (4.2%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/

Co-authored-by: Christian Wehling <christian.wehling@web.de>
2021-10-17 22:33:10 +02:00
John Ralls
fbf828476f Bug 798313 - "File/Import/Import Transactions From CSV" crashes Gnucash.
Don't shutdown and re-initialize the expression parser after every parse,
doing so overflows the Guile garbage collector's memory-region array.

It also forces the expression parser to load the user expressions-2.0
for every parse which is extremely expensive.
2021-10-16 16:25:56 -07:00
Geert Janssens
09b3ce2382 Revert "Add structure to map migrated preferences to old ones"
This reverts commit c6103a5c17.
2021-10-16 19:02:17 +02:00
Geert Janssens
806d0b3157 Revert "GSettings - make most of the api private"
This reverts commit 26b2d7ca78.
2021-10-16 19:02:10 +02:00
Geert Janssens
1d4673ed2a Revert "GSettings - rework internal helper functions to use more C++"
This reverts commit 24fa289952.
2021-10-16 19:02:04 +02:00
Milo Ivir
c07164f4db
Translation update by Milo Ivir <mail@milotype.de> using Weblate
po/hr.po: 100.0% (5362 of 5362 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Croatian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hr/

Translation update  by Milo Ivir <mail@milotype.de> using Weblate

po/hr.po: 99.9% (5360 of 5362 strings; 2 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Croatian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hr/

Co-authored-by: Milo Ivir <mail@milotype.de>
2021-10-16 17:05:13 +02:00
Eric
dff3e4fc82
Translation update by Eric <spice2wolf@gmail.com> using Weblate
po/zh_CN.po: 100.0% (5362 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-10-16 17:05:13 +02:00
Wellington Terumi Uemura
3bd55c6188
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-10-16 17:05:12 +02:00
Christopher Lam
171ce9413b Don't g_strdup char* returned by scm_to_locale_string
Previous code was returning a duplicated string and released the
original one. It's no better than returning the original returned
char* instead.
2021-10-16 22:50:09 +08:00
Christopher Lam
19a91f041e Revert "g_list_free swigged GList* arguments"
This reverts commit 16184daf95. Was
causing an unexplained GNC_IS_ACCOUNT assertion failure in
account_foreach_descendant.
2021-10-16 22:49:05 +08:00
Geert Janssens
d4e4062c93 Remove redundant function declaration
gnc_load_scm_configuration is declared and defined in gnucash-core-app.
2021-10-16 10:49:05 +02:00
Geert Janssens
24fa289952 GSettings - rework internal helper functions to use more C++ 2021-10-16 10:49:05 +02:00
Geert Janssens
26b2d7ca78 GSettings - make most of the api private
All preference calls should happen via the gnc_prefs_... apis.
The gnc_gsettings_... apis are an internal implementation of this.
2021-10-16 10:49:04 +02:00
Geert Janssens
c6103a5c17 Add structure to map migrated preferences to old ones
This can be used to keep both in sync in the period between
initial migration and eventual obsolence.
Note only non-obsoleted, migrated preferences are tracked.
We don't want to resync preferences that have been
obsoleted (reset). That would nullify the whole idea
of making them obsolete for future removal.

This commit only adds the mapping, synching will follow in a future
commit.
2021-10-16 10:49:04 +02:00
Christopher Lam
16184daf95 g_list_free swigged GList* arguments
used by xaccQueryAddAccountMatch and gnc_price_list_equal. SplitList
TransList LotList and CommodityList are not currently being passed as
arguments.
2021-10-16 12:57:03 +08:00
Frank H. Ellenberger
df2d9bcfb7 L10N🇩🇪 Update translator-credit 2021-10-16 01:16:08 +02:00
Yaron Shahrabani
7c6108f87c
Translation update by Yaron Shahrabani <sh.yaron@gmail.com> using Weblate
po/he.po: 99.9% (5360 of 5362 strings; 2 fuzzy)
2 failing checks (0.1%)
Translation: GnuCash/Program (Hebrew)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/he/

Co-authored-by: Yaron Shahrabani <sh.yaron@gmail.com>
2021-10-15 23:37:05 +02:00
Frank H. Ellenberger
7fa0ffe874 L10N: merge recent changes 2021-10-15 18:18:46 +02:00
Frank H. Ellenberger
7d2245c25c L10N: Patch PR 1156 into existing translatons 2021-10-15 17:47:24 +02:00
Francisco Serrador
15b6ed649d
Translation update by Francisco Serrador <fserrador@gmail.com> using Weblate
po/glossary/es.po: 97.5% (203 of 208 strings; 3 fuzzy)
2 failing checks (0.9%)
Translation: GnuCash/Glossary (Spanish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/es/

Translation update  by Francisco Serrador <fserrador@gmail.com> using Weblate

po/es.po: 93.9% (5037 of 5363 strings; 296 fuzzy)
101 failing checks (1.8%)
Translation: GnuCash/Program (Spanish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/es/

Co-authored-by: Francisco Serrador <fserrador@gmail.com>
2021-10-15 02:25:41 +02:00
John Ralls
2f4438ab28 Bug 798335 - No longer possible to change trading account
Strip trading splits only if "Use Trading Accounts" is enabled
for the book so that users who want to manage trading accounts by
hand may do so.
2021-10-14 17:22:32 -07:00
Christopher Lam
003b0a5deb Merge branch 'maint-leaks2' into maint #1166 2021-10-13 20:25:26 +08:00
Christopher Lam
ca1636643a [dialog-custom-report] don't allocate GValue
receive GncGUID* directly from GtkTreeModel
2021-10-13 19:53:03 +08:00
Christopher Lam
39060d8bde [dialog-custom-report] plug leaks when destroying dialog 2021-10-13 19:53:03 +08:00
Christopher Lam
62368a45dc [dialog-custom-report] refactor empty_tree_model into static fn
to be reused by next commit
2021-10-13 09:17:41 +08:00
Christopher Lam
b4a0b4f098 [dialog-custom-report] plug leaks
- g_free gchar*,
- guid_free GncGUID,
- gtk_tree_path_free a GtkTreePath
- don't guid_malloc a guid which will be overwritten
2021-10-13 09:17:41 +08:00
Christopher Lam
763780114a Merge branch 'price_and_reconcile' into maint #1165 2021-10-13 09:08:51 +08:00
Christopher Lam
ff0c02dba5 [reconcile-view][bug] dr/cr query tests amount instead of value
Because split->amount and split->value are generally of equal sign,
EXCEPT in stock transactions whereby split->value can be zero and
split->amount is non-zero. e.g. a stock split transaction.

Querying the split amount instead will allow stock accounts with
stock splits to be reconciled.
2021-10-13 06:08:25 +08:00
John Ralls
1354698b25 Merge Jean Laroche's '798327_ofx_import_terminates_too_early' into maint. 2021-10-12 11:09:10 -07:00
Christopher Lam
203432c436 [split-register-model.c] Hide price==1 for zero-amount splits
mainly of interest in zero-amount zero-value splits in the stock
register eg dividend splits.
2021-10-12 12:58:58 +08:00
Christopher Lam
2ace810e05 [split-register-model.c] more efficient acct->full_names constructor
don't repeatedly allocate
2021-10-12 12:58:33 +08:00
Christopher Lam
8940d9d8c6 [split-register-model.c] prepend parent account, faster
it's only required to accumulate account amounts. acct order is
irrelevant.
2021-10-12 12:58:19 +08:00
Christopher Lam
1b0bfa5da7 [reports] QofQuery must be qof_query_destroyed 2021-10-12 12:58:16 +08:00
jean
81b48ee882 Bug 798327 - Ofx import stops too early for multi-account OFX and one account has no new transactions
info->response must show GTK_RESPONSE_OK for the import to pproceed, otherwise the code assumes the
user canceled.
2021-10-11 21:03:31 -07:00
Frank H. Ellenberger
c2a449356b Don't translate org.gnucash.GnuCash.deprecated.gschema.xml.in 2021-10-12 00:51:51 +02:00
TianXing_Yi
e5e46fa509
Translation update by TianXing_Yi <ytx.cash@gmail.com> using Weblate
po/zh_CN.po: 100.0% (5363 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: TianXing_Yi <ytx.cash@gmail.com>
2021-10-11 19:18:27 +02:00
J0kWang
651f33e9e6
Translation update by J0kWang <lianjiefly@gmail.com> using Weblate
po/zh_CN.po: 100.0% (5363 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: J0kWang <lianjiefly@gmail.com>
2021-10-11 19:18:27 +02:00
John Ralls
bda7d50b1f Merge Christian Wehling's 'trailing_spaces' into maint. 2021-10-11 10:17:15 -07:00