Commit Graph

28462 Commits

Author SHA1 Message Date
Petter Reinholdtsen
c3799d3f48
Translation update by Petter Reinholdtsen <pere-weblate@hungry.com> using Weblate
po/nb.po: 86.7% (4800 of 5532 strings; 725 fuzzy)
25 failing checks (0.4%)
Translation: GnuCash/Program (Norwegian Bokmål)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/nb_NO/

Co-authored-by: Petter Reinholdtsen <pere-weblate@hungry.com>
2023-11-19 00:01:58 +00:00
Christopher Lam
1d26d99ddb [gnc-budget] use std::optional<gnc_numeric> instead of bool+gnc_numeric
more expressive
2023-11-18 08:59:32 +08:00
John Ralls
dd0b72cdb5 Fix global array index out of range.
Tests must set the account type to avoid errors in xaccAccountOrder.
2023-11-17 15:20:29 -08:00
John Ralls
2db3a6bad9 Use csv_price_imp_preview_sep_button_cb only as a callback.
Its error handling doesn't make sense in other contexts.
2023-11-17 09:00:48 -08:00
John Ralls
102304b38b Bug 799121 - Parse error on CSV import on MacOS
Use csv_tximp_preview_sep_button_cb solely as a callback, its error
handling doesn't make sense otherwise. All we want at the end of
preview_refresh is to attempt a tokenize.

In addition to not going into an infinite loop with the message box
this presents a more helpful message suggesting that the encoding is
wrong.
2023-11-16 20:30:20 -08:00
derxi
8d993e7332
Translation update by derxi <happycxin@163.com> using Weblate
po/zh_CN.po: 99.1% (5486 of 5532 strings; 42 fuzzy)
16 failing checks (0.2%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Co-authored-by: derxi <happycxin@163.com>
2023-11-16 09:03:56 +01:00
Zdenko Podobný
eaa8a37b9d
Translation update by Zdenko Podobný <zdenop@gmail.com> using Weblate
po/sk.po: 90.1% (4986 of 5532 strings; 122 fuzzy)
27 failing checks (0.4%)
Translation: GnuCash/Program (Slovak)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/sk/

Co-authored-by: Zdenko Podobný <zdenop@gmail.com>
2023-11-15 21:03:47 +00:00
hades
e299d5eb1d
Translation update by hades <dev@hades.name> using Weblate
po/glossary/ru.po: 92.9% (197 of 212 strings; 7 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Russian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/ru/

Translation update  by hades <dev@hades.name> using Weblate

po/ru.po: 71.6% (3963 of 5532 strings; 1052 fuzzy)
318 failing checks (5.7%)
Translation: GnuCash/Program (Russian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ru/

Co-authored-by: hades <dev@hades.name>
2023-11-15 21:03:45 +00:00
Robert Fewell
8466efc06d Change default column for SX list tree view
As the tree view is based on the GNC_TREE_VIEW, if the pref_name of a
column is "name" it should also be the default sort column. This is
because the default column for GNC_TREE_VIEW is "name" and when saving
state information, 'gnc_tree_view_save_state' will only save non
default values where possible.

In this case if the name column is selected to be default, no entries
are saved in the gcm file and hence the on next load 'next occurrence'
will be used as the default.
2023-11-15 10:12:20 +00:00
Robert Fewell
5df19f4985 Realign source files gnc-tree-view-sx-list.* 2023-11-15 10:10:14 +00:00
Robert Fewell
631ac2b371 Realign source files gnc-sx-list-tree-model-adapter.* 2023-11-15 10:09:15 +00:00
Milo Ivir
c4ccde69c8
Translation update by Milo Ivir <mail@milotype.de> using Weblate
po/hr.po: 97.1% (5372 of 5532 strings; 61 fuzzy)
2 failing checks (0.1%)
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: 97.0% (5371 of 5532 strings; 61 fuzzy)
2 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>
2023-11-12 20:17:17 +01:00
John Ralls
6be12c57cd Qif Import assistant: Extract function mark_page_complete
and remove unnecessary calls to gtk_assistant_update_buttons_state
because gtk_assistant_set_page_complete does that.
2023-11-12 11:15:56 -08:00
John Ralls
b7f231030f Qif import assistant: Use Enter and Leave macros
Instead of "Visibility Page" and "Builder Page" which don't
communicate well what function is running.
2023-11-12 11:15:56 -08:00
John Ralls
dcb24a2460 Bug 799113 - "Start Import" button reports "Failed"
Because acting on the date format selection was in the skipped
gnc_ui_qif_import_account_prepare. Move the action to
gnc_ui_qif_import_date_valid_cb so that it's done every time the date
format page is visited.
2023-11-12 11:15:56 -08:00
Christopher Lam
fdcb8b46bd [sixtp-dom-generators.cpp] char* must be freed 2023-11-11 12:45:57 +08:00
Christopher Lam
8f7eecd3e9 Merge branch 'icu-list-formatter' into stable #1791 2023-11-10 18:58:35 +08:00
Christopher Lam
ae58c12601 [import-main-matcher] don't quote account fullnames 2023-11-10 18:57:03 +08:00
John Ralls
087f135085 Add coverage option for Asan builds. 2023-11-09 15:06:15 -08:00
John Ralls
e6a30f7708 Merge Mark Browning's 'check-print-subacct' into stable. 2023-11-09 13:57:06 -08:00
hades
0650f56e96
Translation update by hades <dev@hades.name> using Weblate
po/ru.po: 71.5% (3959 of 5532 strings; 1056 fuzzy)
318 failing checks (5.7%)
Translation: GnuCash/Program (Russian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ru/

Co-authored-by: hades <dev@hades.name>
2023-11-07 22:56:01 +01:00
Pedro Albuquerque
575d5fc992
Translation update by Pedro Albuquerque <pmra@gmx.com> using Weblate
po/glossary/pt.po: 100.0% (212 of 212 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Portuguese)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/pt/

Co-authored-by: Pedro Albuquerque <pmra@gmx.com>
2023-11-07 22:56:01 +01:00
Christopher Lam
b450d9a637 [gnc-plugin-page-report] re-enable actions after disabling
Otherwise Print, PDFExport, Report Options remain disabled after
modifying report options. Also restore nullptr sentinel in
disable_during_load_actions array.
2023-11-08 05:53:50 +08:00
Mark Browning
c2ef684b59 Correct check amount when printed from subaccount
Previously, GnuCash would include only a single split's amount as the check
amount. If a "bank" account has multiple subaccounts for budgeting reasons, and
a transaction involves both "internal" (e.g. from one bank subaccount to
another bank subaccount) and external transfers, then even when a "subaccount"
register showing the top-level bank account is printed from, the check will
have the amount of the first split rather than the total of all splits which
are from subaccounts.

This change communicates the parent account (when viewed from a "subccount"
register) to the check printing dialog so that the check amount matches the
amount displayed in the register.
2023-11-06 21:52:49 -06:00
Christopher Lam
9e47c297ba Merge branch 'plug-recurrence-to-string' into stable #1812 2023-11-07 06:28:39 +08:00
Christopher Lam
6940488d2d recurrencePeriodTypeToString and recurrenceWeekendAdjustToString g_strdup only when necessary
... for sql use only. xml use assumes they return a const char*.
2023-11-06 14:12:17 -08:00
John Ralls
4da655d0f9 Merge Adam Wight's 'mem-fix' into stable. 2023-11-06 12:33:41 -08:00
John Ralls
4e937f55c5 Merge Hades's 'patch-1' into stable. 2023-11-06 12:20:59 -08:00
hades
e183d1d858
add a tip on keyboard shortcuts 2023-11-06 17:16:04 +01:00
hades
da6f20ddab
Translation update by hades <dev@hades.name> using Weblate
po/ru.po: 71.5% (3959 of 5532 strings; 1056 fuzzy)
318 failing checks (5.7%)
Translation: GnuCash/Program (Russian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ru/

Co-authored-by: hades <dev@hades.name>
2023-11-06 11:34:18 +01:00
Christopher Lam
12f4233396 recurrencePeriodTypeToString and recurrenceWeekendAdjustToString g_strdup only when necessary
... for sql use only. xml use assumes they return a const char*.
2023-11-06 17:37:17 +08:00
Adam Wight
fbc183a544 Always return an allocated gchar*
Returning the literal string will cause the caller to free unallocated
memory.
2023-11-05 23:58:01 +01:00
hades
4b6a9b8560
Translation update by hades <dev@hades.name> using Weblate
po/glossary/ru.po: 89.6% (190 of 212 strings; 12 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Russian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/ru/

Co-authored-by: hades <dev@hades.name>
2023-11-05 15:32:52 +01:00
mocsa
5937b5d542
Translation update by mocsa <csaba@feltoltve.hu> using Weblate
po/hu.po: 69.9% (3870 of 5532 strings; 599 fuzzy)
3 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>
2023-11-04 19:34:42 +00:00
Zdenko Podobný
a0d9694d2b
Translation update by Zdenko Podobný <zdenop@gmail.com> using Weblate
po/sk.po: 89.5% (4952 of 5532 strings; 129 fuzzy)
26 failing checks (0.4%)
Translation: GnuCash/Program (Slovak)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/sk/

Co-authored-by: Zdenko Podobný <zdenop@gmail.com>
2023-11-04 19:34:41 +00:00
Wellington Terumi Uemura
2ca6cb2a34
Translation update by Wellington Terumi Uemura <wellingtonuemura@gmail.com> using Weblate
po/pt_BR.po: 94.6% (5234 of 5532 strings; 186 fuzzy)
33 failing checks (0.5%)
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-11-03 00:24:01 +01:00
John Ralls
f67b53a440 Xml backend tests: Use libgnc-backend-xml-utils instead of sources.
Every test was rebuilding it except for gnc-backend-xml.cpp from
scratch, no point in that plus the Address Sanitizer needs the
definition of GncBackendXml.
2023-11-02 12:58:55 -07:00
John Ralls
fa119f8d17 Split test other 2023-11-02 12:58:55 -07:00
John Ralls
b9b7a9e009 Add CI job for Asan build. 2023-11-02 12:58:55 -07:00
John Ralls
e17ba3cc00 Fix UAF in xaccFreeSplit.
xaccSplitComputeCapGains creates gains_split pointers in both the Cap Gains Split and its Income split to the original split, but the original's gains_split pointer can point to only one of them, the Cap Gains split. When the original split is freed both the Cap Gains split's and its Income split need their gains_split pointers NULLed or when it's the Income split's turn to be freed it will try to deref the dangling pointer.
2023-11-02 12:58:55 -07:00
John Ralls
2234fa433e Add Asan build type that enables the Address and UB sanitizers.
Uses generator statements instead of CMAKE_<TYPE>_FLAGS_ASAN to support multiconfig generators like Xcode.
2023-11-02 12:58:46 -07:00
John Ralls
5e06c8d8a0 Fix NULL dereference in gnc_plugin_page_report_focus_widget.
Reported by Michael Hendry in gnucash-user.
2023-11-01 19:54:54 -07:00
Christopher Lam
d617129db8 avoid strlen where possible
if testing emptiness, test *str instead.
2023-11-01 22:43:16 +08:00
Kaligula
f30fcc2ac4
Translation update by Kaligula <kaligula.dev@gmail.com> using Weblate
po/pl.po: 70.8% (3918 of 5532 strings; 1070 fuzzy)
272 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>
2023-11-01 05:33:44 +01:00
Wellington Terumi Uemura
daf0dc01d9
Translation update by Wellington Terumi Uemura <wellingtonuemura@gmail.com> using Weblate
po/pt_BR.po: 93.6% (5183 of 5532 strings; 235 fuzzy)
80 failing checks (1.4%)
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-11-01 05:33:44 +01:00
Marko Kohtala
3fdcfc44f4
Translation update by Marko Kohtala <marko.kohtala@gmail.com> using Weblate
po/fi.po: 68.5% (3791 of 5532 strings; 0 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Finnish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/fi/

Co-authored-by: Marko Kohtala <marko.kohtala@gmail.com>
2023-10-30 13:04:28 +00:00
Wellington Terumi Uemura
74b0979811
Translation update by Wellington Terumi Uemura <wellingtonuemura@gmail.com> using Weblate
po/pt_BR.po: 93.1% (5154 of 5532 strings; 247 fuzzy)
80 failing checks (1.4%)
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-10-30 13:04:27 +00:00
Marko Kohtala
ad15b2db5d
Translation update by Marko Kohtala <marko.kohtala@gmail.com> using Weblate
po/fi.po: 68.3% (3780 of 5532 strings; 0 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Finnish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/fi/

Co-authored-by: Marko Kohtala <marko.kohtala@gmail.com>
2023-10-29 21:44:29 +01:00
Milo Ivir
196f9bf0e1
Translation update by Milo Ivir <mail@milotype.de> using Weblate
po/hr.po: 97.0% (5370 of 5532 strings; 61 fuzzy)
2 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>
2023-10-29 21:44:29 +01:00
Marko Kohtala
71b27c4f07
Translation update by Marko Kohtala <marko.kohtala@gmail.com> using Weblate
po/fi.po: 64.8% (3587 of 5532 strings; 193 fuzzy)
9 failing checks (0.1%)
Translation: GnuCash/Program (Finnish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/fi/

Co-authored-by: Marko Kohtala <marko.kohtala@gmail.com>
2023-10-28 16:03:22 +00:00