Commit Graph

26716 Commits

Author SHA1 Message Date
Geert Janssens
37d009bd08 Remove debug output 2023-01-01 17:24:48 +01:00
Geert Janssens
470afc918f Relocate resource to /org/gnucash/GnuCash prefix
This is done to be consistent with the GSettings
prefix (which is also a GLib subsystem).

In the process replace the magic string with
a single, globally defined macro.
2023-01-01 17:23:17 +01:00
Geert Janssens
b3fa876da3 Drop ui path specifier from resources paths
They were only there due to how the source directories
are organized and not really adding useful detail.
Removing it from the resource paths gives more freeedom
wrt to the organization of source files.
2023-01-01 16:34:29 +01:00
Geert Janssens
a543143689 Generate the gresource xml file based on a list of resources
This inverts the logic from
- having an xml file and extracting dependencies
  from it to
- having a list of dependencies and generating
  an xml file from it

In the original configuration adding or removing a
resource to/from the gresources.xml file would not
be detected by cmake as a change in dependencies.
The user would have to remember to rerun cmake manually.
By explicitly listing the dependencies, cmake will
properly recongifure and regenerate if that list is
updated. The remainder of the dependency configuration
also ensures proper rebuilds of gnucash, libaqbanking
and libofx if any of the resource files change, a new
one is added or an existing one is removed.

For reusability the code to generate the gresource related
files as been extracted into a separate function.
2023-01-01 15:06:42 +01:00
Kaligula
a66dec3d71
Translation update by Kaligula <kaligula.dev@gmail.com> using Weblate
po/pl.po: 71.2% (3846 of 5401 strings; 1096 fuzzy)
255 failing checks (4.7%)
Translation: GnuCash/Program (Polish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pl/

Co-authored-by: Kaligula <kaligula.dev@gmail.com>
2022-12-31 22:51:40 +01:00
Geert Janssens
bdde17115d Use relative paths to ui files 2022-12-31 14:49:19 +01:00
Geert Janssens
510b57843b Some whitespace fixes
Kept separate to not clutter the actual changes
2022-12-31 13:17:22 +01:00
Geert Janssens
57294d7e16 Keep ui files for optional modules within the module
This goes for ofx and aqbanking. If either
module is not part of the build, the ui files
should not be part of the resource of gnucash.
It turns out each compilation unit can have
its proper resource though, so the build system
was changed to include the ui files in a local resource
for the aqbanking and ofx modules instead of to
the gnucash global resource.
2022-12-31 13:13:40 +01:00
John Ralls
31d79e3004 Merge Bob Fewell's 'bug798673' into master. 2022-12-30 16:00:12 -08:00
John Ralls
a7abb82d30 Merge Bob Fewell's 'bug403979' into master. 2022-12-30 15:46:51 -08:00
John Ralls
fb29ed9d4f Merge Bob Fewell's 'bug769256' into master. 2022-12-30 14:43:52 -08:00
John Ralls
a9756b1950 Change all ... to … in files added by mainwin2. 2022-12-30 14:17:35 -08:00
John Ralls
5c17950a59 Merge Bob Fewell's 'mainwin2' into master. 2022-12-30 13:56:54 -08:00
John Ralls
72f81f7b83 Merge Bob Fewell's 'reg-desc' into master. 2022-12-30 11:38:58 -08:00
Christopher Lam
259881f940 [gnc-optiondb] add some more renamed options
following ab13b01f8c Replace ... with … in all translatable strings.
2022-12-24 22:14:35 +08:00
Christopher Lam
c21aecccc5 [investment-lots] tidier cons instead of append
(append (list new-item) (map...)) is more succinctly formed as
(cons new-item (map...))
2022-12-24 22:13:24 +08:00
Christopher Lam
d928ed4ada [investment-lots] use higher order functions, instead of lambdas 2022-12-24 21:51:53 +08:00
Christopher Lam
6907d772d4 [investment-lots] more succinctly add chart and table 2022-12-24 21:42:48 +08:00
Christopher Lam
1f2b5881ae [investment-lots] ST/LT grouping option enables LT gain option 2022-12-24 14:06:08 +08:00
Christopher Lam
552bc17af2 [investment-lots] delete-trailing-whitespace 2022-12-24 14:06:08 +08:00
John Ralls
ab13b01f8c Replace ... with … in all translatable strings.
Also a few other places like translator comments and report options.

Replaces https://github.com/Gnucash/gnucash/pull/1033.
2022-12-23 12:43:54 -08:00
John Ralls
ff6d3d899b Fix some unknown symbol warnings in reports. 2022-12-23 11:08:34 -08:00
John Ralls
79d46be8bc Merge Brad McBride's Investment Lots Report into master. 2022-12-23 11:07:22 -08:00
John Ralls
7b3928c4da Update investment lots report to new options API. 2022-12-23 11:06:50 -08:00
mcbridebt
ea026ff4ee Add investment-lots.scm report
Add investment-lots.scm report

cleanup code comments

add start date, fix end date, add stats collector

Fix format errors (breaks on Guile 3.0, but not 2.2?)

Fix build warnings

Fix bugs

Reduce set! usage, add new validation warning, misc code cleanup

fix bug where value display strings were wrongly respecting the show-mnemonics option that should only apply to amount display strings

misc bug fixes

gain age: use last bought date instead of first

change basis calculation to be more like cap-gains.c

Move report to Assets & Liabilities menu

fix chart bug, add option to group sales by age

Add support for alternate-row style

resolve code review comments
2022-12-23 10:33:43 -08:00
John Ralls
c8eb55bb34 Merge John Ralls's c++options reprise into master. 2022-12-23 10:04:46 -08:00
John Ralls
40c55899bc [c++options] Convert remaining reports and tests to new API. 2022-12-23 10:01:52 -08:00
John Ralls
cec27308d8 Convert non-trep-based report tests to new API 2022-12-23 09:59:04 -08:00
John Ralls
58147ea470 [c++options] Convert trep-engine, trep-based-reports, and tests to new API 2022-12-23 09:57:23 -08:00
John Ralls
3c406c9374 # This is a combination of 2 commits.
# This is the 1st commit message:

Convert trep-engine to the new options API.

# This is the commit message #2:

Update trep-based reports to new options API.
2022-12-22 18:12:07 -08:00
John Ralls
e79fe2f2d9 [options] Update stylesheets to use new API. 2022-12-22 17:31:59 -08:00
John Ralls
018d5d8d83 [options] Update documentation to reflect C++ options. 2022-12-22 17:31:59 -08:00
John Ralls
4825960089 Convert report core and html to new options API. 2022-12-22 16:19:19 -08:00
John Ralls
30b2c0bcac [options] Provide gnc:register-multichoice-callback-option.
Compatibility function for passing symbols or numbers as the default
value.

Note that this isn't used by GnuCash code and so isn't exercised or
tested, it's provided only to simplify user-written code migration.
2022-12-22 13:53:44 -08:00
John Ralls
80c015d6d6 Defer calling the bl::format::str()'s c-str() until point of use.
Otherwise the string is a temporary that gets destructed at the end
of the statement and passing the char* to gnc_update_splash_screen
is a use-after-free.

Fixes macOS CI.
2022-12-22 10:58:39 -08:00
aleksej0R
ea6cc6f892
Translation update by aleksej0R <omolice@hotmail.fr> using Weblate
po/glossary/fr.po: 100.0% (216 of 216 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (French)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/fr/

Co-authored-by: aleksej0R <omolice@hotmail.fr>
2022-12-20 00:55:57 +01:00
Geert Janssens
0421ff834a A few minor c++ tweaks regarding variables 2022-12-19 22:18:12 +01:00
Geert Janssens
d65f991e4b Drop help message for gtk options
Gtk has deprecated their use and will be dropping them
completely from Gtk 4. No need for us to continue to
promote them.
2022-12-19 22:18:12 +01:00
Geert Janssens
734f90bd36 Replace string literal 'gnucash' with PROJECT_NAME parameter where it makes sense
The idea behind this is to not assume the project is always built
as "gnucash" exactly.
One example where it can be useful to use a different project name
would be when building multiple development versions of the project
on the same system and don't want these different versions share
the same settings in GSettings or the same stored passwords.
2022-12-19 22:18:12 +01:00
Geert Janssens
2c93c383ac Change remaining references to 'help' into 'manual'
In addition, change the prefixes for all documentation related macros:
- HL_ ('help link') -> DL_ ('documentation link')
- HF_ ('help files') -> DF_ ('documentation files')
2022-12-19 21:35:02 +01:00
John Ralls
b8c0673526 Merge branch 'maint' 2022-12-19 12:11:32 -08:00
Christopher Lam
52deda868f [assistant-stock-transaction] handle sign reversal outside create_split
Passing the FieldMask as an arg to create_split is the wrong approach;
it needs to test the input_new_balance bool and the FieldMask to
determine whether negation should take place. It's best to handle
negation outside create_split.

Thus cash&fee amounts are not mangled when creating a stock-split
transaction whose input_new_balance is true.
2022-12-19 11:46:53 +08:00
John Ralls
dec66bc8c6 Release GnuCash 4.13 2022-12-17 18:20:21 -08:00
John Ralls
98155795d6 [register] Don't usleep on Apple or Win32.
Not needed and usleep needs an extra include for MinGW64.
2022-12-17 18:20:21 -08:00
John Ralls
092d67eb1a [import] Don't leak returns of g_utf8_normalize. 2022-12-17 15:38:03 -08:00
John Ralls
9a8142cacb Merge weblate translations into maint. 2022-12-17 12:56:02 -08:00
帅是我2
787a2cda3b
Translation update by 帅是我2 <a1173522112@163.com> using Weblate
po/zh_CN.po: 99.9% (5397 of 5401 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: 帅是我2 <a1173522112@163.com>
2022-12-17 21:00:10 +01:00
YOSHINO Yoshihito
85dc4a5ef7
Translation update by YOSHINO Yoshihito <yy.y.ja.jp@gmail.com> using Weblate
po/ja.po: 92.7% (5011 of 5401 strings; 154 fuzzy)
444 failing checks (8.2%)
Translation: GnuCash/Program (Japanese)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ja/

Translation update  by YOSHINO Yoshihito <yy.y.ja.jp@gmail.com> using Weblate

po/ja.po: 92.7% (5011 of 5401 strings; 154 fuzzy)
444 failing checks (8.2%)
Translation: GnuCash/Program (Japanese)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ja/

Translation update  by YOSHINO Yoshihito <yy.y.ja.jp@gmail.com> using Weblate

po/ja.po: 91.9% (4968 of 5401 strings; 188 fuzzy)
469 failing checks (8.6%)
Translation: GnuCash/Program (Japanese)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ja/

Translation update  by YOSHINO Yoshihito <yy.y.ja.jp@gmail.com> using Weblate

po/ja.po: 91.8% (4963 of 5401 strings; 193 fuzzy)
472 failing checks (8.7%)
Translation: GnuCash/Program (Japanese)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ja/

Translation update  by YOSHINO Yoshihito <yy.y.ja.jp@gmail.com> using Weblate

po/ja.po: 91.8% (4959 of 5401 strings; 197 fuzzy)
476 failing checks (8.8%)
Translation: GnuCash/Program (Japanese)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ja/

Co-authored-by: YOSHINO Yoshihito <yy.y.ja.jp@gmail.com>
2022-12-17 21:00:10 +01:00
John Ralls
ccd328db9a [import matcher] Don't normalize text when appending descriptions or notes.
Another fix for Bug 798679. Normalized strings are still stored in
quickfills.
2022-12-17 11:57:58 -08:00
John Ralls
65d3546f10 [register] Delay post-ime reset of the selection.
Works around bug 798587.
2022-12-17 10:45:24 -08:00