Christopher Lam
d5a957278f
[html-utilities] use ice-9 match
2020-06-22 19:53:31 +08:00
Christopher Lam
8db13470e2
deprecations: remove functions deprecated in 3.x
2020-06-22 19:53:31 +08:00
Christopher Lam
851bc7f8d9
deprecations: clarify functions deprecated in 4.x.
2020-06-22 19:53:29 +08:00
Christian Stimming
f072fef014
i18n: very minor string improvement: Match string to another existing one
...
So no new string is introduced, just two are merged into on in the i18n.
2020-06-21 23:21:54 +02:00
Christian Stimming
bdc2c7bad8
L12N:de update translation
...
5475 übersetzte Meldungen, 27 ungenaue Übersetzungen,
71 unübersetzte Meldungen.
2020-06-21 23:21:14 +02:00
Geert Janssens
1d3164bfdb
Build depedency fix - build backend libararies before the guile bindings
...
Compiling our guile scripts will run loaded libraries. One of the libraries to
load is the engine library which expects to find the enabled backends (xml and or dbi).
If those aren't built yet, this will result in error messages printed in the build output.
2020-06-21 21:45:57 +02:00
Geert Janssens
7b090c710a
Drop code to attach output to console on Windows
...
This was not built-in by default (required a build-time define to be set)
and intended only for debugging.
Most of its intended goal can also be achieved by redirecting
standard output from the command line (verified to work in cmd.exe):
gnucash --help | more
gnucash --help > file-to-store-output.txt 2>&1
2020-06-21 21:18:07 +02:00
c-holtermann
7c8e0a28fc
better display for doxygen, typo and consistent naming
2020-06-21 16:24:53 +02:00
c-holtermann
3e842a7bf6
use urllib.parse.urlparse to check for xml on python Session init
2020-06-21 16:24:53 +02:00
c-holtermann
b9c6fc2876
add some unittests for python Session
...
test arguments, deprecated as well as new mode arguments
test creating a session with a new xml file using __init__()
and begin(). Test raising exception when opening nonexistent
file without respective mode setting.
2020-06-21 16:23:32 +02:00
c-holtermann
0434acbe10
reformat two python example scripts with black
...
use black python code formatter on latex_invoices.py and gncinvoice_jinja.py
2020-06-21 16:23:32 +02:00
c-holtermann
485d8a65b0
decorate Session.begin with default mode argument
2020-06-21 16:23:32 +02:00
c-holtermann
44e61f4df2
enable Session.__init__() to be provided with existing instance or book
2020-06-21 16:23:32 +02:00
c-holtermann
5833c5afcb
add unittests for function_class
...
add tests for some existing function_class functionality.
Add tests for the keyword argument changes.
2020-06-21 16:23:32 +02:00
c-holtermann
17d606e1f8
enable keyword arguments for default_arguments_decorator
...
default_arguments_decorator until now only allows positional
argument defaults. This adds keyword defaults. The keywords
can be mapped to the positional arguments by optional argument
kargs_pos so interactions between keyword and positional arg
defaults can raise a TypeError. Some more information in
the docstring is included. In addition the docstring of
the wrapped function will be modified to contain information
about the defaults.
2020-06-21 16:23:32 +02:00
c-holtermann
c222503f42
add method decorate_method to function_class.py
...
ClassFromFunctions.decorate_method() allows to provide positional
and keyword arguments for the decorator call besides the wrapped
method.
2020-06-21 16:23:32 +02:00
c-holtermann
ee77b713c2
update example scripts to SessionOpenMode
2020-06-21 16:23:32 +02:00
c-holtermann
b073dbc5c3
allow keyword arguments for function_class.py
...
allow keyword arguments for function_class methods
and functions. process_dict_convert_to_instance() is added to
mimic the behavior of the process_list_convert_to_instance()
Derived methods in gnucash_core.py like raise_backend_errors_after_call
get modified to accept being called with keyword args.
Also adds some docstrings.
2020-06-21 16:23:32 +02:00
Frank H. Ellenberger
677090c5c1
L12N: merge recent messages into all po files
...
Language: translated, fuzzy, untranslated
ar: 4239, 795, 405
as: 4201, 825, 413
az: 111, 1290, 4038
bg: 3143, 1597, 699
brx: 4205, 821, 413
ca: 4360, 764, 315
cs: 2467, 1927, 1045
da: 3593, 1081, 765
de: 5403, 27, 9
doi: 2953, 1770, 716
el: 2955, 1479, 1005
en_GB: 2726, 1577, 1136
es_NI: 803, 2958, 1678
es: 5013, 334, 92
eu: 1526, 2558, 1355
fa: 2957, 865, 1617
fi: 2749, 29, 2661
fr: 3928, 1054, 457
gu: 2969, 1739, 731
he: 5409, 26, 4
hi: 4161, 865, 413
hr: 5409, 26, 4
hu: 3026, 1490, 923
it: 4172, 896, 371
ja: 4687, 451, 301
kn: 4203, 823, 413
kok@latin: 4139, 887, 413
kok: 4206, 820, 413
ko: 2291, 1811, 1337
ks: 4101, 925, 413
lt: 4029, 887, 523
lv: 4664, 588, 187
mai: 4179, 847, 413
mni@bengali: 4206, 820, 413
mni: 4206, 820, 413
mr: 4164, 860, 415
nb: 2616, 1966, 857
ne: 2442, 2043, 954
nl: 4506, 653, 280
pl: 3504, 1501, 434
pt_BR: 3750, 1291, 398
pt: 5182, 203, 54
ro: 2851, 1759, 829
ru: 4440, 702, 297
rw: 193, 2885, 2361
sk: 2487, 1694, 1258
sr: 4388, 743, 308
sv: 2878, 704, 1857
ta: 4201, 825, 413
te: 4188, 838, 413
tr: 4366, 650, 423
uk: 5389, 26, 24
ur: 4171, 855, 413
vi: 2699, 1892, 848
zh_CN: 3094, 1640, 705
zh_TW: 2637, 1675, 1127
2020-06-21 05:00:00 +02:00
Frank H. Ellenberger
879a6cb568
Merge branch 'maint'
2020-06-21 04:56:42 +02:00
Frank H. Ellenberger
46b776a5ee
L12N 🇬🇧 remove duplicate message block
...
5411 translated messages, 4 fuzzy translations, 21 untranslated
messages.
2020-06-21 04:19:07 +02:00
John Ralls
4595a3d088
Release GnuCash 3.906
2020-06-20 16:44:18 -07:00
John Ralls
9c0b290ca8
Updated Ukrainian translation from the Translation Project.
2020-06-20 15:44:04 -07:00
John Ralls
d308028353
Merge branch 'maint'
2020-06-20 15:36:58 -07:00
John Ralls
04d4c0ce40
Merge new Ukrainian translation into maint.
2020-06-20 15:08:45 -07:00
John Ralls
d87bc61fb5
Updated Ukrainian Translation from the Translation Project.
2020-06-20 13:33:49 -07:00
c-holtermann
4e280b9593
adapt to use of sessionOpenMode in qof_session_begin
2020-06-20 13:40:11 +02:00
c-holtermann
48072f5a4c
make SessionOpenMode enum available for python
2020-06-20 11:02:13 +02:00
c-holtermann
ee3342d2b4
introduce python submodule deprecation
...
the deprecation submodule will house content related to deprecation.
That is general convenience function and functions related to specific
deprecation issues. The latter starts with decorator functions to bridge
the change in qof_session_begin argument change to SessionOpenMode.
2020-06-20 10:40:54 +02:00
Christopher Lam
9a9fa5e5de
[report-utilities] ensure commodity-collector doesn't round amounts
2020-06-20 11:49:52 +08:00
John Ralls
50329df082
Bug 797811 - GnuCash crashes with segfault when saving to mysql...
...
when database already exists.
Crashed because of dereferencing GncSqlBackend::m_conn when it's nullptr
after the DB create failed. Protect all such dereferences.
2020-06-19 15:08:58 -07:00
Robert Fewell
3d5606a54b
Bug 797808 - Caps Lock Breaks Almost Everything
...
Put back the test for modifiers obtained from
gtk_accelerator_get_default_mod_mask
2020-06-19 16:05:36 +01:00
Frank H. Ellenberger
f147f4d760
Merge branch 'maint'
2020-06-18 00:56:38 +02:00
Frank H. Ellenberger
66c6e6ee52
Add missing #includes into gnc-imp-settings-csv-price.cpp
...
Found in failed win maint nightlies.
2020-06-17 05:35:25 +02:00
Christopher Lam
0b386157a1
[business-core] string-hash doesn't not guarantee unique hash
...
subtle bug here-- used string-hash to convert guid-string to a number
which is faster to use as hash key. but string-hash does not guarantee
that there are no hash collisions. it is best to use guid string
instead which is guaranteed to uniquely define a split.
2020-06-17 08:08:51 +08:00
Christian Gruber
8ac640d5fa
Fix typo
2020-06-15 22:57:13 +02:00
Christian Gruber
610bbda23f
Add glib-object.h to includes
2020-06-15 22:57:13 +02:00
Christian Gruber
53c294f9e8
Remove unnecessary type check
2020-06-15 22:57:13 +02:00
Christian Gruber
bb0088c43c
Replace g_return_if_fail() and g_return_val_if_fail() by ASSERT_TRUE and EXPECT_TRUE
2020-06-15 22:57:13 +02:00
Christian Gruber
967cf0b430
Pass std::vector arguments by reference instead of by value
2020-06-15 22:57:12 +02:00
Christian Gruber
d084279891
State comment on unused GObject instance init function more precisely
2020-06-15 22:57:12 +02:00
Christian Gruber
67f63053fb
Remove todo comments on replacement of std::vector by std::list
...
Replacing std::vector by std::list wouldn't have any advantage
2020-06-15 22:57:12 +02:00
Christian Gruber
a9d85e8f8e
Use std::vector of const char* instead of std::string where meaningful
...
This avoids additional string allocation
2020-06-15 22:57:12 +02:00
John Ralls
6071202c0f
Release GnuCash 3.905.
2020-06-14 12:43:48 -07:00
Robert Fewell
dcfe85ce11
Bug 797804 - Another misbehaving text cursor in register.
2020-06-14 13:48:36 +01:00
Robert Fewell
4ca52b2380
Error in trace file for Dialog Options
...
When the New Account Hierarchy Assistant is used, the book options are
added to the assistant as a notebook page and so will not have a parent
widget to be used when restoring the window size so test for parent
before using gnc_restore_window_size
2020-06-14 12:58:57 +01:00
Frank H. Ellenberger
1d055b6d24
L12N: merge recent gnucash.pot in po files
...
Current state: translated, fuzzy, untranslated messages.
ar: 4186, 917, 470
as: 4148, 947, 478
az: 111, 1374, 4088
bg: 3106, 1710, 757
brx: 4152, 943, 478
ca: 4308, 885, 380
cs: 2437, 2036, 1100
da: 3553, 1197, 823
de: 5324, 175, 74
doi: 2917, 1882, 774
el: 2928, 1582, 1063
en_GB: 2695, 1688, 1190
es: 4932, 481, 160
es_NI: 800, 3042, 1731
eu: 1514, 2651, 1408
fa: 2911, 984, 1678
fi: 2711, 140, 2722
fr: 3874, 1181, 518
gu: 2934, 1850, 789
he: 5315, 189, 69
hi: 4108, 987, 478
hr: 5315, 189, 69
hu: 2991, 1602, 980
it: 4122, 1016, 435
ja: 4611, 595, 367
kn: 4150, 945, 478
ko: 2268, 1912, 1393
kok: 4153, 942, 478
kok@latin: 4086, 1009, 478
ks: 4049, 1046, 478
lt: 3979, 1006, 588
lv: 4596, 723, 254
mai: 4126, 969, 478
mni: 4153, 942, 478
mni@bengali: 4153, 942, 478
mr: 4111, 982, 480
nb: 2584, 2075, 914
ne: 2411, 2151, 1011
nl: 4451, 777, 345
pl: 3456, 1618, 499
pt: 5095, 357, 121
pt_BR: 3712, 1406, 455
ro: 2693, 1975, 905
ru: 4381, 832, 360
rw: 193, 2972, 2408
sk: 2458, 1799, 1316
sr: 4335, 865, 373
sv: 2846, 811, 1916
ta: 4148, 947, 478
te: 4135, 960, 478
tr: 4313, 773, 487
uk: 5540, 17, 16
ur: 4118, 977, 478
vi: 2668, 2001, 904
zh_CN: 3052, 1758, 763
zh_TW: 2604, 1785, 1184
2020-06-13 21:00:50 +02:00
John Ralls
b126227aab
Merge Chris Good's 'gnc-fq-dumpMas' into master.
2020-06-13 11:09:32 -07:00
Frank H. Ellenberger
e972860de3
Merge branch 'pr734'
2020-06-13 18:55:32 +02:00
Jannick
4cb634a2e6
de.po: fixes for the Account Import Assistant
2020-06-13 18:54:34 +02:00