Daniel Conrado
24e38a6138
Translation update by Daniel Conrado <dbconrado@gmail.com> using Weblate
...
po/pt_BR.po: 93.7% (5223 of 5571 strings; 233 fuzzy)
72 failing checks (1.2%)
Translation: GnuCash/Program (Portuguese (Brazil))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pt_BR/
Co-authored-by: Daniel Conrado <dbconrado@gmail.com>
2024-05-13 19:00:29 +02:00
Christopher Lam
3fc0413e49
[gnc-plugin-page-account-tree.cpp] wrap extern "C" for exposed funcs
2024-05-13 13:13:11 +08:00
Christopher Lam
7b46466ebd
[account.cpp] fix regression caused by 3f7a5a8267
...
whereby deleting an account and moving all splits to another account
would segfault. make a copy of priv->splits and work on the copy
rather than the original.
2024-05-13 12:45:56 +08:00
Christopher Lam
e54e9d8086
[account.cpp] use HashTable for splits
...
reduces xml loading time from 3.5s to 3.1s, i.e. 11% improvement
2024-05-13 12:45:46 +08:00
Christopher Lam
b28ca9bdb4
use c++ placement new
...
to initialize non-c++ object members
2024-05-12 21:00:56 +08:00
John Ralls
579da58a10
Merge Gwynn Ciesla's "Allow building with GCC 14.1" into stable.
2024-05-09 17:28:35 -07:00
Christopher Lam
7c233d46e6
Merge branch 'bug799305' into stable #1936
2024-05-10 08:06:26 +08:00
Christopher Lam
2817ca195f
[test-commodities.cpp] test stability of c_str names
2024-05-10 07:42:50 +08:00
Christopher Lam
f67233b662
Bug 799305 - Crash when there is more than one unknown quote source for commodities
...
instead of vector which requires reallocation, use a c++ linked list.
2024-05-10 07:42:50 +08:00
Gwyn Ciesla
f7df9755fc
Update CMakeLists.txt
...
Co-authored-by: Yaakov Selkowitz <yselkowi@redhat.com>
2024-05-08 14:07:20 -05:00
Szia Tomi
f3b203f4db
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
...
po/hu.po: 77.2% (4306 of 5571 strings; 396 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
po/hu.po: 77.2% (4304 of 5571 strings; 396 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Co-authored-by: Szia Tomi <sziatomi01@gmail.com>
2024-05-07 16:36:13 +02:00
Christopher Lam
4a1abec97e
[window-reconcile.cpp] fix previous commit comment
2024-05-07 22:35:35 +08:00
Christopher Lam
bcd706bf1a
[window-reconcile.cpp] clarify gnc_account_find_split predicate.
...
this clarifies the predicate.
2024-05-07 20:50:01 +08:00
Christopher Lam
d867a9d18a
Merge branch 'TransactionP-hpp' into stable #1928
2024-05-05 14:36:43 +08:00
Christopher Lam
9e4b03f71b
[SplitP.hpp] rename to .hpp
2024-05-05 14:35:44 +08:00
Christopher Lam
1e1d21b716
[Transaction.hpp] rename to .hpp
2024-05-05 14:35:38 +08:00
Christopher Lam
ef8afedd09
[gnc-euro.cpp] use c++isms
2024-05-05 09:28:32 +08:00
Christopher Lam
3bc7ce606d
[gnc-euro.cpp] convert to c++
2024-05-05 09:28:32 +08:00
Christopher Lam
80997ee5b4
[gtest-gnc-euro] add rounding test
2024-05-05 09:28:32 +08:00
John Ralls
a53ed8f501
Merge Steve Bruniges's 'feature/pricedb-add-clone-from-latest' into stable
2024-05-04 17:18:44 -07:00
Christopher Lam
d405b5891f
[gnc-log-replay.cpp] don't set import to DEBUG
...
because it'll spew too many debug messages when gnc-log-replay
completes.
2024-05-05 07:24:08 +08:00
Christopher Lam
c5caa55e9a
[gnc-log-replay.cpp] convert to c++
2024-05-05 07:24:08 +08:00
John Ralls
6642f4fb8a
CI: Update github action scripts take 2.
2024-05-04 13:55:21 -07:00
John Ralls
bba4a1099c
CI: Update github action scripts.
2024-05-04 13:35:47 -07:00
John Ralls
9f1597f540
Merge John Ralls's 'fix-mac-ci' into stable.
2024-05-04 11:48:07 -07:00
John Ralls
b4d92c50fb
[MacOS Workflow] New dependency tarball for macOS Sonora.
2024-05-04 11:47:24 -07:00
Christopher Lam
949c9c97c0
Bug 799300 - Nullpointer exception in gnc_quote_source_s
...
avoids constructing std::string with nullptr
2024-05-04 08:27:43 +08:00
John Ralls
64a3a38945
Add PKG_CONFIG_PATH to build environment.
2024-05-02 19:13:32 -07:00
Kaligula
d358998af7
Translation update by Kaligula <kaligula.dev@gmail.com> using Weblate
...
po/pl.po: 72.7% (4054 of 5571 strings; 1008 fuzzy)
275 failing checks (4.9%)
Translation: GnuCash/Program (Polish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pl/
Co-authored-by: Kaligula <kaligula.dev@gmail.com>
2024-05-02 23:07:28 +02:00
iceberg
ee28b639b3
Translation update by iceberg <usurprisedme@gmail.com> using Weblate
...
po/glossary/te.po: 4.2% (9 of 212 strings; 1 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Telugu)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/te/
Co-authored-by: iceberg <usurprisedme@gmail.com>
2024-05-02 23:07:27 +02:00
Christopher Lam
4c29f69d67
[engine.i] even faster gnc_get_match_commodity_splits
...
gnc_get_match_commodity_splits needs to scan the account splitlists to
find suitable splits upto end_date. Because splitlist is date-sorted,
use gnc_account_foreach_split_until_date to avoid scanning later
splits.
2024-05-02 22:21:31 +08:00
Christopher Lam
87dbbf25f8
[account.cpp] add gnc_account_foreach_until_date
...
- uses binary search to find first split after date
- for_each from earliest split to (but excluding) the above first split
2024-05-02 22:21:31 +08:00
Christopher Lam
2c6f15090a
[trep-engine] bugfix sorting/show-account-description was not working
...
also fix display code - omit " " if code is empty.
2024-05-02 13:09:01 +08:00
John Ralls
4c2320cf74
Use Homebrew to install ninja
2024-05-01 19:45:09 -07:00
Szia Tomi
926250afab
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
...
po/hu.po: 77.2% (4303 of 5571 strings; 396 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
po/hu.po: 77.2% (4303 of 5571 strings; 396 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Co-authored-by: Szia Tomi <sziatomi01@gmail.com>
2024-05-02 03:07:16 +02:00
Stephan Brunner
c10af4ebb0
[dialog-price-edit-db.cpp] Copy the latest price when creating a new entry from a commodity selection
...
When a price entry is selected, it's contents get copied 1:1 to the newly created price to facilitate faster entry based on existing values (e.g. the type).
When selecting a commodity instead, the user is presented with an empty price entry where only the commodity is set.
IMO the user ends up with the same values (except the price of course) as the latest entry.
So we check whether we have a (latest) entry and use that as the template, so that e.g. the type gets copied, too.
This spares the user some clicks.
2024-04-30 21:42:01 +02:00
Christopher Lam
3f0dd57b6f
[test-commodity-utils.scm] don't test TZ-sensitive datetimes
2024-04-30 08:38:45 +08:00
Christopher Lam
8fb5a6afd6
Fix tests so that they don't fail unnecessarily
...
- test-begin/test-end names must be consistent
- remove empty test group in test-scm-engine
2024-04-29 22:06:45 +08:00
Christopher Lam
25c02b4822
[test-commodity-utils] some tests for get_match_commodity_splits
2024-04-29 21:33:36 +08:00
mocsa
c9c6534a7e
Translation update by mocsa <csaba@feltoltve.hu> using Weblate
...
po/hu.po: 77.1% (4299 of 5571 strings; 399 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Co-authored-by: mocsa <csaba@feltoltve.hu>
2024-04-28 13:07:12 +02:00
Christian Wehling
d481d67da0
Translation update by Christian Wehling <christian.wehling@web.de> using Weblate
...
po/de.po: 100.0% (5571 of 5571 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/
Co-authored-by: Christian Wehling <christian.wehling@web.de>
2024-04-28 13:07:10 +02:00
Christopher Lam
818c7dc797
[gnc-report.cpp] hide gnc_reports impl, expose gnc_reports_foreach
...
Instead of retrieving the GHashTable and iterating through the
key/values, expose gnc_reports_foreach which does the same job.
2024-04-27 19:21:24 +08:00
Bora Atıcı
d3e8712b30
Translation update by Bora Atıcı <boratici.acc@gmail.com> using Weblate
...
po/tr.po: 70.1% (3907 of 5571 strings; 1047 fuzzy)
304 failing checks (5.4%)
Translation: GnuCash/Program (Turkish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/tr/
Co-authored-by: Bora Atıcı <boratici.acc@gmail.com>
2024-04-23 20:07:35 +02:00
Christian Wehling
1139f751dc
Translation update by Christian Wehling <christian.wehling@web.de> using Weblate
...
po/de.po: 100.0% (5571 of 5571 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/
Co-authored-by: Christian Wehling <christian.wehling@web.de>
2024-04-23 20:07:34 +02:00
John Ralls
9c18bc889c
Don't use Googletest internal API for unused decls.
2024-04-22 18:05:10 -07:00
Bruce P Schuck
d01aad68fb
Update gnc-commodity.cpp
...
Fool.pm not working. Removed references to it from sources JSON structures.
2024-04-22 18:05:10 -07:00
Bruce Schuck
6696bf0a41
Updated QuoteSourceVec to match F::Q v1.59
2024-04-22 18:05:10 -07:00
Christopher Lam
5dab612d1b
Merge branch 'bug799258-cpp' into stable #1920
2024-04-22 19:34:19 +08:00
Christopher Lam
3dc0df7f38
[commodity-utilities.scm] routines upgraded to accept a #:hide-warnings? argument
...
... whose default is #f, therefore warnings are shown.
In gnc:case-exchange-time-fn the routines are called at the report
end-date once. Therefore all relevant splits are analysed for
warnings.
Subsequent calls (at various report dates) will omit warnings.
2024-04-22 19:34:02 +08:00
Christopher Lam
daadfcf426
[balsheet-pnl.scm] use enhanced gnc:case-exchange-time-fn
...
Because gnc:case-exchange-time-fn now handles multiple report dates
correctly.
2024-04-22 19:34:02 +08:00