Commit Graph

21715 Commits

Author SHA1 Message Date
Geert Janssens
d30fe7a365 Fix extraction of translatable strings with context using Q_
Q_('ctxt|msg') expands to g_dpgettext(NULL, 'ctxt|msg',0) and should be
interpreted as a message with message context. According to
https://www.gnu.org/software/gettext/manual/gettext.html#Language-specific-options
this glib extension is supported using the 'g' suffix to the keyword spec.
This was missing in our xgettext invocation.
2019-09-05 17:28:58 +02:00
Frank H. Ellenberger
d35ebd15f2 Fix of PR #577
Move he.po into po
5358 translated messages.
2019-09-05 16:29:56 +02:00
Christopher Lam
9b52fa685f [html-acct-table] ensure an integer number of empty-cells
tbl-width is not necessarily an even number; tbl-width being odd would
result in a half-fraction when calculating number of
empty-cells. convert to the appropriate integer.

this is the proper fix for the bug fixed by d865b149.
2019-09-05 20:07:32 +08:00
Christopher Lam
b9af094f8b [reports] fix some uses of assoc-ref
assoc-ref (or better, assq-ref because we're comparing symbols) is
used to lookup from the 'car's of a list of pairs, and return the
found pair's 'cdr'. the previous use of 2-element lists demonstrate a
lack of understanding how to encode the list of pairs. rewrite using
proper pairs rather than 2-element lists, which means the assq-ref
does not need a subsequent 'car' to retrieve the desired symbol.
2019-09-05 20:07:28 +08:00
Frank H. Ellenberger
f389a2af05 [I18N] Add a translator comment about date formats 2019-09-05 04:19:58 +02:00
Frank H. Ellenberger
2c787d5b36 Merge branch 'PR_#577' into maint 2019-09-04 21:03:59 +02:00
Frank H. Ellenberger
b697611b50 [L12N] he.po: another 2 fixes on top of PR #577
5341 translated messages.
for GnuCash 3.6
2019-09-04 21:01:56 +02:00
Christopher Lam
af238ee470 [income-gst-statement] fix "tax payable" reuse existing string 2019-09-05 00:01:57 +08:00
Christopher Lam
e386a2a77d [report-utilities] deprecate gnc:acccounts-get-all-subaccounts
* this function has a typo in name
* all uses of accounts-get-all-subaccounts were followed by appending
the result to the original accounts list. we have already rewritten to
use the better function in previous commit. this is now obsolete.
* inline its last use, omit sorting. list is sorted anyway afterwards.
2019-09-05 00:01:57 +08:00
Christopher Lam
2ac8cb2f79 [reports] use more efficient gnc:accounts-and-all-descendants
All uses of gnc:acccounts-get-all-subaccounts were immediately
followed by appending the result to the original accounts list. Use
gnc:accounts-and-all-descendants instead which is more efficient.
2019-09-05 00:01:57 +08:00
Christopher Lam
d0d6a824f4 [reports] remove dead code - terse-period? always true 2019-09-05 00:01:57 +08:00
avma
c4ac716f65
he.po cleanups 2019-09-04 17:31:14 +03:00
John Ralls
78d4d60b9c Bug 797389 - Random Crashes while attaching a document.
Fixes the immediate cause, dereferencing the return value of
gnucash_style_get_cell_dimensions, which can be NULL, without
checking.
2019-09-03 16:18:31 -07:00
Frank H. Ellenberger
4950748406 de.po: recover a few translations from previous versions
5267 übersetzte Meldungen, 72 ungenaue Übersetzungen, 18 unübersetzte
Meldungen.
2019-09-03 23:24:01 +02:00
Frank H. Ellenberger
be51f778fb de.po: merge recent changes
5176 übersetzte Meldungen, 147 ungenaue Übersetzungen, 34 unübersetzte
Meldungen.
2019-09-03 20:17:26 +02:00
Frank H. Ellenberger
500d0ae887 de.po: A few fixes and some cleanup 2019-09-03 20:11:50 +02:00
Pictarus
d6fff59eac Update de.po
5250 übersetzte Meldungen, 11 unübersetzte Meldungen.
2019-09-03 10:16:59 +02:00
Christian Stimming
16a69e2a63 I18n fix: Trim user-visible strings from unneeded whitespace.
This makes translations unnecessarily confusing. If the layout
needs some space, feel free to add padding and such.
2019-09-02 22:25:39 +02:00
Frank H. Ellenberger
abc0964c86 Merge branch 'PR#570' into maint 2019-08-30 15:05:44 +02:00
Frank H. Ellenberger
8d1c5f8936 Fix contexts in he.po 2019-08-30 14:58:57 +02:00
avma
d8468b9370 Complete Hebrew translation for version 3.6
5341 translated messages.
2019-08-30 14:37:45 +02:00
Christopher Lam
ef3157db19 [budget] rename envelope option to 'Use accumulated amounts'
Because envelope budgeting means something else. This means release
3.7 (the first release with this feature) will use the better name.
2019-08-30 18:28:57 +08:00
Christopher Lam
fa6948a2be [dialog-search] expand&fill search results
https://lists.gnucash.org/pipermail/gnucash-user/2019-August/086733.html

Allow the search result frame to expand when dialog box is resized.
2019-08-30 18:27:19 +08:00
Frank H. Ellenberger
e3ba73683e Fix file copy destination for accounts/he 2019-08-29 18:53:47 +02:00
Christopher Lam
bb4348fce9 Bug 797378 - QIF file import fails: Loading gives wrong type argument in position 2 2019-08-29 20:16:57 +08:00
Robert Fewell
d4379644c2 Stop duplicate entries for the invoice taxtable cell
When the ledger is loaded, the list for the taxtable combo is created
but as the item_list gui is not initialised yet a temporary list store
is used. This is done twice and hence end up with duplicate entries. To
fix this add the missing gtk_list_store_clear to
gnc_combo_cell_clear_menu to clear the temporary list store when the
item_list is not initialised.
2019-08-29 11:29:23 +01:00
Robert Fewell
2bcb9bb1a5 Test for Invoices XML dates not being INT64_MAX
To prevent errors being logged to the trace file when invoices are
saved test for the date values not being INT64_MAX which is an unset
date.
2019-08-29 11:28:18 +01:00
Robert Fewell
d677e3c5df Do not log an error when no default tax tables set 2019-08-29 11:27:10 +01:00
Robert Fewell
251d39477f Prevent artefacts of imported transactions from showing
When you start the import process, possible imported transactions are
displayed in the source open register and if you deselect any and press
the OK button you are left with blank lines in the register for those
deselected so move the gnc_gen_trans_list_delete to before the gui
refresh call.
2019-08-29 11:26:27 +01:00
Christopher Lam
ca061f0665 [test-extras] show better error message if report is not found
this leads to better error messages during test development and other
work. e.g. a report-module isn't loaded by mistake during a test,
would formerly lead to a cryptic #f error; this commit ensures the
uuid cannot be found error is reported.
2019-08-28 23:36:40 +08:00
Christopher Lam
8e2141ce67 [html-utilities] deprecate function 2019-08-28 23:36:40 +08:00
John Ralls
f00777ca07 Add scm-srfi64-extras and scm-qif-import as check dependencies
Fixes make check when make all hasn't been run.
2019-08-27 11:50:25 -07:00
Christopher Lam
2fa442638d fix typo in he/CMakelists.txt templates dist_list 2019-08-27 22:29:45 +08:00
Christopher Lam
f4a1b2fdf2 Revert "[standard-reports] modernise to srfi-9 records"
This reverts commit
123033e5ea. Unfortunately srfi-9 records
don't travel well outside modules, so, will fail on master.
2019-08-27 22:29:28 +08:00
Christopher Lam
d963ca0d3a fincalc: remove C accelerator for Clear
because it clashes with Close button
2019-08-27 21:15:28 +08:00
Christopher Lam
13d3179729 Bug 605602 - precision of Financial Calculator seems to depend on locale
* the calc_clicked_cb had mechanism to abort if no fields were
  empty. disable it.

* to convert gnc_numeric to string, the only suitable print_info is
  gnc_share_print_info_places which takes decimal and outputs suitable
  print_info. Not very appropriate, but works.
2019-08-27 21:15:28 +08:00
Christopher Lam
90da06b8af [dialog-import] connect delete_event to gnc_gen_trans_list_delete 2019-08-27 06:48:28 +08:00
Frank H. Ellenberger
02f03235bf Merge branch 'PR569' into maint
This adds Hebrew account templates
2019-08-26 23:35:54 +02:00
Frank H. Ellenberger
e4af626d84 he templates: Revert a sporadic "ILS" for consistency 2019-08-26 23:30:55 +02:00
Frank H. Ellenberger
7db2ccc4e0 Bug 796819 - bad icon with Spanish localization
Temporary fix for Farsi, which was afffected, too.
As it is maintained by TP, the final fix has to come from them.
2019-08-26 22:55:41 +02:00
Geert Janssens
ebdebb0a5b Clarify the translation remark for the gnucash-icon 2019-08-26 19:01:38 +02:00
Geert Janssens
54dae108a6 Properly mark the renamed appdata.xml.in.in for translation 2019-08-26 19:01:38 +02:00
Christopher Lam
18aff5d1c1 Bug 797355 - General Journal report seems to be off balance
Previously, for general-journal, each split was being analyzed, and
only the source split was counted for totals. This change will means
the source split *and* its peers were accounted for.
2019-08-26 18:36:46 +08:00
Christopher Lam
0d35e7c63d [register] remove unused functions 2019-08-26 18:36:46 +08:00
Christopher Lam
6b0bfa075c [register] fix Transfer acc for single-account splits
single account splits shouldn't show "-- Split Transaction --" in
transfer account. show "None".
2019-08-26 18:36:45 +08:00
Christopher Lam
d7813206ce [register] compact functions, inline single-use function 2019-08-26 18:36:45 +08:00
Geert Janssens
cc222515a3 Fix in-tree builds after the appdata file changes
We don't recommend this as it risks tainted build environments. However if
you know what you're doing it should still work. In particular sandboxed systems
such as flatpak don't have this problem and hence they do build in-tree.
2019-08-26 12:17:39 +02:00
Geert Janssens
8c2f5fb7a2 Minor tweaks to appdata file generation
* Use cmake's built-in copy command rather than an external one
* depend directly on gnc-vcs-info.h rather than the global gnc-vcs-info-target
  The latter won't trigger a rerun of the command if gnc-vcs-info.h already exists
  regardless of whether it had changed.
2019-08-26 09:24:19 +02:00
John Ralls
4de2e2b9c2 Merge Craig Mason-Jones's 'gncnumeric-neg-string' into maint. 2019-08-25 15:55:36 -07:00
Craig
04aab7cea3 Correctly parse decimals between 0 and -1.
The negative sign was being lost because stoll("-0") is 0.
Also permits parsing decimals between -1 and 1 without the leading 0.
2019-08-25 15:50:29 -07:00