Commit Graph

13922 Commits

Author SHA1 Message Date
Christian Stimming
d6d0369c81 Bug #641557: I18n slightly improved in fancy-invoice
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20239 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-02-05 16:29:08 +00:00
Christian Stimming
14df88070d I18n: Fix misleading composed strings by defining two separate full sentences.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20238 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-02-05 16:28:55 +00:00
Christian Stimming
0854bcce96 i18n: Add more terms to the glossary
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20237 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-02-05 15:52:22 +00:00
Christian Stimming
e5eee6ed6b i18n: Fix missing space in message
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20236 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-02-05 15:52:09 +00:00
Phil Longstaff
02b3ffaea4 Update revision to 2.4.1
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20231 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-02-05 01:55:41 +00:00
John Ralls
f99d162fbb DBI Backend: Cleanup after testing version control so that repeating the tests doesn't fail.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20230 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-02-04 18:32:51 +00:00
Phil Longstaff
3fe1707d22 Check whether session has been created before trying to end it.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20229 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-02-04 01:54:30 +00:00
John Ralls
947b60f511 Fix compiler warning in gnc-backend-dbi.c.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20228 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-02-04 00:02:21 +00:00
Cristian Marchi
822eb02134 Updated Dutch translation, copied from the translation project.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20227 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-02-03 21:22:07 +00:00
John Ralls
bf8cc9ee08 Change dependency in src/backend/dbi/Makefile.am from app-utils to core-utils
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20226 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-02-03 14:43:39 +00:00
Christian Stimming
b042a6d536 Do not modify the entry's DateEntered when duplicating invoice to keep the entry ordering.
Follow-up to r20115.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20225 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-02-02 20:49:41 +00:00
Christian Stimming
d0b8c4296e Fix cmake build after latest configure changes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20224 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-02-02 20:31:10 +00:00
John Ralls
7cb436e08d Change GNC_RESAVE_VERSION to GNUCASH_RESAVE_VERSION so that it's similar to the other version macros; define it at the top of configure.ac so that it's obvious to everybody; and store the current Gnucash version only when doing a full save so that retrospective changes to GNUCASH_RESAVE_VERSION won't skip a resave because the database has been touchedby a newer version.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20223 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-02-02 00:04:29 +00:00
Christian Stimming
dd3f1a3c7d Win32: Add missing include for windows build
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20222 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-02-01 21:04:58 +00:00
Christian Stimming
a7226c0a0f Set line ending property svn:eol-style to LF for newly added files
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20217 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-31 20:07:00 +00:00
Christian Stimming
6bf3eb2941 Set line ending property svn:eol-style to LF for newly added files
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20216 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-31 19:54:45 +00:00
John Ralls
c8adfe555f The new files for gnc_locale functions, ommitted from r20110.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20214 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-31 15:27:57 +00:00
John Ralls
f273f3382e Adjustments to test Makefiles required by r20176 (move quickfill functions from gnome-utils to app-utils
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20211 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-31 04:35:49 +00:00
John Ralls
febfba65b4 More adjustments for moving gnc_locale functions from app-utils to core-utils
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20210 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-31 04:33:38 +00:00
John Ralls
8ff535a1af Move gnc_locale functions from src/app-utils/gnc-ui-util to src/core-utils/gnc-locale-utils (new files) and adjust accordingly.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20209 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-31 04:29:48 +00:00
John Ralls
9872a070e3 Adjust location and add gnc_(push|pop)_locale wrapper around dbi_conn_query() calls which retrieve data. Patch by Christoph Holtermann
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20208 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-30 22:40:22 +00:00
J. Alex Aycinena
9968d038a2 Modify Tax Info on Account Page to display or not display sub-account info based on whether row is expanded.
Revert changes made in gnc-ui-util.c in rev 20039 and instead put those changes in new function: gnc_ui_account_get_tax_info_sub_acct_string.

Define a new column, GNC_TREE_MODEL_ACCOUNT_COL_TAX_INFO_SUB_ACCT, in gnc-tree-model-account.c filled with gnc_ui_account_get_tax_info_sub_acct_string.

Modify gnc-tree-view-account.c to define a tax_info_data_func that displays only the the data in the GNC_TREE_MODEL_ACCOUNT_COL_TAX_INFO model column if the row is expanded; otherwise it combines it with the data in the GNC_TREE_MODEL_ACCOUNT_COL_TAX_INFO_SUB_ACCT model column. Modily the view creation function to use the new tax_info_data_func.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20207 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-30 20:34:55 +00:00
Geert Janssens
2897cd4d0e Bug #640061 - Invoice items are not saved, patch by Christoph
Holterman

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20206 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-30 18:33:53 +00:00
Christian Stimming
c2f070dcb8 Update newly introduced NANO version number in cmake build script as well.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20205 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-30 10:25:07 +00:00
Christian Stimming
47032f3687 Get rid of gtk dependency in <app-util/option-util.h> header by storing only a gpointer for the widget.
This means the very last part of a gtk-dependency in app-util is in option-util.c
in one error message. My goal is to remove gtk completely from app-util
so that all code in our dependency chain up to app-util can be packaged
into a GUI-independent library, which can then be used by the python wrappers
and other GUI frontends alike.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20204 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-30 10:21:48 +00:00
Christian Stimming
5cb52dbdb5 Updated Ukrainian translation, copied from the Translation Project.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20203 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-30 09:24:27 +00:00
John Ralls
725e14eb17 Add gnc_get_long_version, a guint concocted by adding the version values together allowing two digits for each. Add a new version value, GNUNCASH_NANO_VERSION, to be incremented when there's any change to data serialization. Use the new gnc_get_long_version to tag the Gnucash version in the versions table in the dbi backend.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20202 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-29 23:38:10 +00:00
John Ralls
e2c04cbbd4 Add libgncmod-app-utils.la to src/backend/dbi/tests LDADD so that gnc_push_locale and gnc_pop_locale can be found for testing.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20201 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-29 23:16:00 +00:00
Christian Stimming
2057e6ed34 Re-indentation of source code.
This re-indentation was done using astyle-1.24 using the following options:

  astyle --indent=spaces=4 --brackets=break --pad-oper --pad-header --suffix=none

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20200 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-29 21:37:27 +00:00
Christian Stimming
e16c4508af Fix missing include in cmake build file.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20199 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-29 21:33:43 +00:00
Christian Stimming
546b276912 Move gnc-ui.h file from top-level to gnome-utils. It is gtk-dependent anyway, so it is moved to where it belongs now.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20198 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-29 21:31:26 +00:00
Christian Stimming
5aa9a45fc2 Remove unneeded usage of a generic <gnc-ui.h> include in headers.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20197 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-29 21:31:16 +00:00
Christian Stimming
a00b438b3a Remove pointless header RecnWindow.h - nothing gtk-independent here anyway.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20196 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-29 21:17:59 +00:00
Christian Stimming
f72837c433 Fix cmake build file after file removal.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20195 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-29 21:13:21 +00:00
Christian Stimming
d5a71666b6 Drop the obsolete gncUIWidget typedef because all of our GUI-code is inherently gtk-dependent (with the exception of option-util.h).
If there were any re-write of gnucash with a different GUI toolkit, it will
define all GUI-related functions in its own way, so there's no point in
pretending those very gtk'ish functions were usable in a different toolkit as well.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20194 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-29 21:09:15 +00:00
John Ralls
1f3b1ea0db Delete the unused and slightly pointless gnucash_foo_version functions
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20193 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-29 20:58:56 +00:00
John Ralls
4187f8dc78 Adjust gnc_push_locale and gnc_pop_locale to take a locale category and
to handle MSWin32 (following gnome/druid-hierarchy.c) correctly.
Use them in gnc-backend-dbi.c instead of the incorrect code from r20189 
(Thanks, Christian).



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20192 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-29 20:40:02 +00:00
John Ralls
d681822461 Add locale.h; some systems seem not to pull it in via glib/gi18n.h
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20191 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-29 00:40:46 +00:00
John Ralls
dead5c2f81 Left out of r20188: Actually wrap the important code...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20190 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-28 23:47:30 +00:00
John Ralls
866ce51260 Handle localization-ignorance bug in libdbi by setting LC_NUMERIC locale
to "C" before calling dbi_result_get_double() and back afterwards. This 
is not thread-safe, but we're not multithreaded yet.
 


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20189 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-28 21:35:50 +00:00
John Ralls
c2702ebec4 Better OSX language handling: Add a "C" locale to the language-list
after any english locale so that if that english locale isn't present, 
gettext will fall through to "C", which makes unnecessary the "en.po" 
file. Also removed the special casing and locale truncation; gettext is 
quite capable of doing that itself.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20188 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-28 21:03:40 +00:00
Geert Janssens
742db08612 Clarify the use of pathnames in the python bindings example scripts
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20187 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-28 20:57:54 +00:00
Geert Janssens
4ff3fab49d Allow all book types instead of only sqlite3 for account_analysis.py
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20186 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-28 20:57:44 +00:00
Cristian Marchi
4abf1dceec Fix a typo.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20185 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-28 19:48:28 +00:00
Christian Stimming
370f7a8563 Update German translation.
This is merged using msgmerge --no-location de.po gnucash.pot -o de.new.po
and we use "--no-location" to make the updates actually readable.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20181 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-27 21:02:46 +00:00
Christian Stimming
2776f5a6a4 I18n improvements: Fix typos, fix unnecessary near-duplicates, remove unneeded strings.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20180 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-27 21:02:30 +00:00
John Ralls
8889b307e5 Clean up an obvious time-waster.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20178 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-27 20:07:45 +00:00
John Ralls
a6ad52d647 Change serialization of doubles in the dbi backend to use
g_ascii_dtostr() instead of sprintf. 

The problem is that sprintf is subject to localization and will output 
e.g. 1,25 for one-and-a-quarter in European locales. SQL doesn't support 
localization, so will interpret 1,25 as two fields, 1 and 25.

Note also that GUID_ENCODING_LENGTH isn't big enough for a double, so 
that's changed to G_ASCII_DTOSTR_BUF_SIZE.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20177 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-27 19:38:39 +00:00
Christian Stimming
ebef4d5f0f Move quickfill and gnc-entry-quickfill files from gnome-utils to app-utils because they don't require gtk/gnome.
(account-quickfill can't be moved because it also works with a GtkListStore.)

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20176 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-27 19:22:16 +00:00
John Ralls
cf4239d489 Add #include gnc-main.h for declaration of gnc_get_svn_version() for test_dbi_version_control().
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20175 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-27 19:16:47 +00:00