Commit Graph

17948 Commits

Author SHA1 Message Date
fell
5eb1fffa7d Review of pull request #125 from Mechtilde 2017-02-14 08:08:09 +01:00
Frank H. Ellenberger
03d6b7c200 Merge pull request #125 from Mechtilde/TranslationDE
Translation de
2017-02-14 05:27:48 +01:00
Mechtilde
02d9065db6 msgmerge with gnucash-2.6.15.pot 2017-02-12 09:48:45 +01:00
Mechtilde
bcffaea86e translation tip_of_the_day 2017-02-12 09:43:13 +01:00
fell
b78d7c72ce Improve comment about available languages 2017-02-12 00:02:33 +01:00
fell
260f1ba312 Set a separate translator comment to avoid pulling the whole file header
comment in POT

Follow up of commit 7432ba8
2017-02-10 22:52:02 +01:00
fell
cfdaa073a1 Fix german language tag
found by i18nspector
2017-02-10 21:48:14 +01:00
fell
2ac3ddec9c Update PACKAGE_BUGREPORT, set PACKAGE_URL
We prefer bugzilla entries over emails
2017-02-10 21:31:52 +01:00
Geert Janssens
2d451801e9 One more stab at properly discovering gtest/gmock
My previous attempt made wrong assumptions on the
way source files got included in the mock tree.
2017-02-08 17:16:58 +01:00
Geert Janssens
1241b71770 Fix cmake's gmock handling to work with Fedora packages
Similar checks were already in configure.ac for the autotools variant
2017-02-06 11:10:41 +01:00
John Ralls
93301cd285 Make gnc_dbi_safe_sync_all safer.
Creates a new safe_sync function in struct provider and a new
gnc_db_do_safe_sync_all function with the guts of gnc_dbi_do_safe_sync_all.
The last calls the provider’s safe_sync function, which for SQLite3 and
PGSql wraps the call to gnc_dbi_do_safe_sync_all in a SQL transaction.
Unfortunately MySQL commits the transaction on the first schema-altering
query (CREATE_TABLE in this case) without decrementing sql_savepoint, so
raising an error when we try to release the (non-existent) save point at
the end of writing the tables.

Add a gnc_dbi_check_and_rollback_failed_save() to restore the database
after a failed safe_save; this is performed at the next connection.
2017-02-04 17:36:09 -08:00
John Ralls
a70637f34d Move the transaction-lock on obtaining the database lock earlier.
So that opening/creating the table is included. Also modify the condition
to reduce code nesting.
2017-02-04 17:24:32 -08:00
John Ralls
979e6397c1 Add SAVEPOINT support to enable nested gnc_dbi_transaction calls. 2017-02-04 09:50:50 -08:00
John Ralls
db73c39bf1 Extract static gnc_dbi_transaction functions.
To enable local calls (as opposed to just virtual calls via
GncDbiSqlConnection) and replace all direct transaction queries with the
new functions.
2017-02-04 09:41:45 -08:00
Geert Janssens
659c96eb1b Optionally locate boost via environment variable BOOST_ROOT
This was already the case for our autotools based build
and simplifies the build setup for our Windows build system.
2017-02-02 18:48:15 +01:00
Geert Janssens
4fdacb9b2a Fix building gtest library on mingw
See https://github.com/google/googletest/issues/893
2017-02-02 18:31:54 +01:00
Geert Janssens
0a8d7a2142 Make google test framework a mandatory build dependency
All c++ unit tests will be written with it, and testing
should be possible out of the box.
We could make it optional, but then lots of tests will
be skipped. This creates an illusion of all tests passing
while many are simply not run. This confusion should be
avoided.
This change depends on a second commit for the windows build
in the gnucash-on-windows repository. This commit will be
pushed at the same time.
2017-02-02 17:20:43 +01:00
DIG
b682fe6b43 Small updates for Russian translation 2017-02-02 09:28:45 +01:00
Geert Janssens
aeb04e1d9d Fake change to test mail script on code.gnucash.org 2017-02-01 22:25:44 +01:00
Geert Janssens
d503f3438e Drop callback that reloads report when a report tab is selected
This has the unwanted side-effect of misaligning the chart
legends (due to some internal bug in webkit). Resizing the window
properly redraws the chart afterwards, but leaving the page and
returning reloads the page again, hitting the bug again. This
prevents multiple report tabs open at once to show a correct chart.
Each resize of the window to correct one chart will trigger a
misaligned legend on all other charts the next time you look at them.

The disadvantage of removing this code is that reports loaded
automatically when gnucash opens are not sized properly. (All but
the one in the very last tab of the book being opened, that is).
However these pages can be corrected by manually reloading them
once. That's annoying but at least allows for correctly displayed reports.

A proper solution must be found for this of course.
2017-02-01 21:46:01 +01:00
Geert Janssens
996b6047fc Revert "Add call back to track page size changes"
This reverts commit 12994ca6e7.

Webkit takes care of this properly for newly opened reports. It
somehow fails for reports that are automatically loaded when
reopening gnucash. This needs additional investigation, but
reloading the report when exposing the page has undesired
side-effects which should be avoided.
2017-02-01 21:29:36 +01:00
Geert Janssens
d9d5f07451 Revert "Change report resizing when not in view"
This reverts commit 74091fbcfa.

Webkit takes care of this properly for newly opened reports. It
somehow fails for reports that are automatically loaded when
reopening gnucash. This needs additional investigation, but
reloading the report when exposing the page has undesired
side-effects which should be avoided.
2017-02-01 21:21:45 +01:00
Geert Janssens
334fafc48d Merge branch 'maint' 2017-02-01 20:06:55 +01:00
Geert Janssens
6a5a850b73 Log javascript console messages to the trace file 2017-02-01 20:05:18 +01:00
Geert Janssens
eac7987564 Always use actual window size when calculating x-axis ticks for charts
Previously the window size was only captured once and reused all the time.
2017-02-01 20:04:11 +01:00
Geert Janssens
02adf447fd Bug 777875 - Reports with charts are flickering in certain circumstances
This flickering was triggered by interference between scrollbar
visibility changes and report reloading. Both should not happen
at the same time.
2017-02-01 19:18:00 +01:00
Geert Janssens
5a144699b9 Extend account color to all columns in the account hierarchy page 2017-01-30 22:12:25 +01:00
Geert Janssens
420f40ed9a Fix duplicate widget names in gtkbuilder file 2017-01-30 21:44:44 +01:00
Geert Janssens
ee7a73dea3 Drop with_html_engine option
We only support webkit. The option was there for backwards
compatibility in the 2.6 series, but for 2.8 it can go.
2017-01-30 19:34:53 +01:00
Geert Janssens
5cbdc5d816 Merge branch 'maint' 2017-01-30 19:34:29 +01:00
Geert Janssens
0a782dd0c0 Travis - fix failure to load some libraries while running scm tests
In the travis environment (guile 1.8 in combination with other unidentified,
particular package versions) the scm based tests are looking for
backend modules (xml and dbi) in the installation prefix instead of
in the build directory. Explicitly setting the environment variables
GNC_BUILDDIR and GNC_UNINSTALLED fix this. I haven't figured out why this
is not needed on all platforms/tool version combinations. But the fix
works in all (autotools based) cases. CMake builds may need a similar
fix, but I don't know that environment sufficiently to implement it.
2017-01-28 18:02:08 +01:00
Geert Janssens
c87fa9eac1 Bug 759934 - Tiny reports in HiDPI
While a proper solution is only possible with a more recent
version of webkit, this commit will allow users to work around
the issue by manually setting a default zoom level for reports.
This setting can be found under
Edit->Preferences->Reports
2017-01-28 17:56:59 +01:00
Geert Janssens
33f39627e3 Drop a couple of webkit related configure tests
The tests are only relevant to webkit versions older than our baseline.
2017-01-27 19:24:53 +01:00
D. Hugh Redelmeier
51332b1a65 add comments to clarify that taxtxf.scm is US-specific
src/report/locale-specific/us/taxtxf.scm is specific to US tax codes.
Add comments to make this clear.
2017-01-27 10:17:43 +01:00
Pedro Albuquerque
885227a63a Bug 777561 - Update pt.po to v. 2.6.15
4659 translated messages.
2017-01-26 15:36:24 +01:00
Robert Fewell
b798a6cdbd Bug 516920 - Calendar Pop up disappears of the left side
The last change did not check for the left screen edge. This update
checks for the calendar pop up going over the left, right, and
bottom edges of the screen. The top should not be an issue.
2017-01-23 14:09:59 +01:00
klemens
cb3dd4318d spelling fixes 2017-01-23 12:06:58 +01:00
Geert Janssens
695065a0aa Merge branch 'maint' 2017-01-23 12:03:00 +01:00
klemens
2a97675bee spelling fixes 2017-01-23 11:50:00 +01:00
Pedro Albuquerque
62e1274717 Several spelling corrections of the pt_PT translation 2017-01-21 16:21:21 +01:00
Mike Evans
f1c620f6d3 Make strings translatable in dialog-bi-import.c 2017-01-17 13:20:04 +00:00
Mike Evans
9c39d0e597 Bug 767032 - Bad invoices from importing "posted" needing currency conversion
Only auto-post if:
The posted_to account name is valid.
There's no currency conversion.
The invoice customer's currency matches the A/R account currency.

Tell the user what happened with a dialog.
2017-01-16 12:09:53 +00:00
John Ralls
88cb24caa7 Ensure that all GncDate and GncDateTime constructors are in try blocks.
To prevent leaking exceptions to C code.
2017-01-14 11:55:41 -08:00
John Ralls
43a8db25ac Make GncDate and GncDateTime default constructors have the current day/time.
Like documented, and instead of the epoch day/time like the underlying boost
implementation.
2017-01-14 11:55:41 -08:00
John Ralls
3925106e70 Fix crash when $TZ isn’t defined. 2017-01-14 11:55:41 -08:00
John Ralls
c1e38d5a9f Actually checkout gtest 1.8.0 in travis tests.
The other way just makes a new branch pointing to refs/master/HEAD.
2017-01-14 10:33:14 -08:00
John Ralls
67a0e46f18 Fix local timezone-dependent test. 2017-01-13 14:54:12 -08:00
John Ralls
09cbb9c12e Change last test in test-gnc-timezone to EXPECT_EQ so it will log the results. 2017-01-13 14:03:16 -08:00
John Ralls
8de841f1b8 Display failing test-gnc-timezone.log for troubleshooting. 2017-01-13 13:37:05 -08:00
John Ralls
b6838d039e Fix test failures from adding bad-date tests. 2017-01-13 12:29:07 -08:00