Commit Graph

21138 Commits

Author SHA1 Message Date
Erik De Richter
a0016381c4 updated nl translation
svn: r21714
2013-03-20 20:05:24 +00:00
Paul Franklin
6e8435baab CLI typos and slight code cleanup
svn: r21713
2013-03-20 16:16:21 +00:00
Jérôme Rapinat
d72ef5e5dc 4687: missing content migration...
svn: r21710
2013-03-20 14:05:37 +00:00
Jérôme Rapinat
01f6e3e79e 4687: global name 'warn' is not defined
svn: r21707
2013-03-20 13:57:31 +00:00
Jérôme Rapinat
3eed3217f4 merge after 3.4.3 release
svn: r21705
2013-03-20 13:49:31 +00:00
Nick Hall
a4314abb61 Fix bug in citations bottombar gramplet
svn: r21702
2013-03-19 23:15:11 +00:00
John Ralls
393323a670 [r21696]TreeBaseModel: Avoid TypeError when bisecting
svn: r21700
2013-03-19 18:34:44 +00:00
John Ralls
764f17b935 [r21695]GrampsLocale: Ensure correct stdout encoding
Replace stdout with one that uses a transcoding Streamwriter. This
better handles differences between Py2 and Py3 than does trying to
encode strings prior to output. In particular Py3's default stdout
demands unencoded strings and prints byte-strings when one tries to
pre-encode them.

svn: r21699
2013-03-19 18:34:34 +00:00
John Ralls
1f38fd43f5 [r21694]GrampsLocale: Use glocale.lang or glocale.language[0]
To get the default localization instead of locale.getlocale() or
glocale.get_translation().language().

svn: r21698
2013-03-19 18:34:11 +00:00
John Ralls
38cc711bde [r21693]GrampsLocale: Prevent some AttributeErrors
and 'referenced before assignment' errors.

svn: r21697
2013-03-19 18:33:31 +00:00
Paul Franklin
bdcc43b911 6542: book report: graphic ancestor or descendant tree reports fail
svn: r21678
2013-03-18 18:54:01 +00:00
Tim G L Lyons
b8f2f13e33 README file. Add PyICU as strongly recommended.
svn: r21676
2013-03-17 14:47:38 +00:00
Nick Hall
738c95dedc Revert change to const.py
svn: r21672
2013-03-17 12:29:04 +00:00
Tim G L Lyons
820816f409 Standardise messages about missing modules to include problem, consequence and what to do about it (currently including references to GEPS 029 where necessary).
svn: r21670
2013-03-17 11:40:08 +00:00
Paul Franklin
a713d5c388 ignore any CLI book report "item" which crashes
svn: r21668
2013-03-16 22:50:21 +00:00
Nick Hall
8af82fae08 Add methods used for modal ProgressMeter to CLIDialog
svn: r21665
2013-03-16 21:47:29 +00:00
Nick Hall
da39d249de Add modal option to ProgressMeter
svn: r21662
2013-03-16 19:48:21 +00:00
Jérôme Rapinat
56136e1083 6195: Import citation for pro-gen file format (patch by keestux)
svn: r21658
2013-03-16 10:23:42 +00:00
Nick Hall
063efad45f 6336: Convert to use DbGUIElement
svn: r21655
2013-03-15 21:02:44 +00:00
Nick Hall
b885391182 6526: Check for invalid handle
svn: r21652
2013-03-15 16:17:11 +00:00
John Ralls
0e195c04c8 [r21646]GrampsLocale: Code cleanup
And make sure that setting lang on the GrampsLocale constructor
overrides the languages from the first instance.

svn: r21650
2013-03-14 23:08:06 +00:00
John Ralls
6e525893bd [r21645]Plugins: Limit addon translators
Only get an addon translator if the plugin has a locale directory
Prevents pointless warnings, esp. when the translations are in the
main Gramps message file.

svn: r21649
2013-03-14 23:07:59 +00:00
John Ralls
e4202098b7 [r21644]GrampsLocale: Suppress double printing of log messages
Grampsapp.py sets a global handler, so install one only during the first
init and remove it when done.

svn: r21648
2013-03-14 23:07:47 +00:00
John Ralls
2629bf3dee [r21640]GrampsLocale: Reduce circular imports
Lets one import grampslocale directly in a test script:
>>> from gramps.gen.utils.grampslocale import GrampsLocale
>>> import os
>>> gl = GrampsLocale(lang='fr_FR.UTF-8', localedir=os.path.join('build', 'mo'))
>>> tr = gl.get_translation().gettext
>>> tr("List of known family trees in your database path\n")
u'Liste des arbres familiaux connus dans votre chemin de base de donn\xe9es\n'

svn: r21647
2013-03-14 23:07:40 +00:00
John Ralls
0fda971b4c [r21636]GrampsLocale: Better handle invalid/missing locale
svn: r21639
2013-03-12 22:33:28 +00:00
John Ralls
651b3776f0 [r21635]MacLocale: Extract function _mac_get_gramps_defaults
And correct line handling on the languages list.

svn: r21638
2013-03-12 22:33:22 +00:00
John Ralls
cfea1e98dc GrampsLocale: Correct some differences with trunk
Thanks to Paul Franklin for pointing these out.

svn: r21637
2013-03-12 22:33:16 +00:00
Nick Hall
901ec7dc5c Fix VERSION_DIR path
svn: r21633
2013-03-12 17:01:13 +00:00
Nick Hall
06df52881e Remove post-install script for linux
svn: r21629
2013-03-12 14:53:00 +00:00
Nick Hall
13bb98be10 Remove redundant code
svn: r21627
2013-03-12 14:40:18 +00:00
Nick Hall
9c0f85b3c2 Fix some properties
svn: r21625
2013-03-12 14:23:19 +00:00
Jérôme Rapinat
5d1a7e3b4e typo on version (backport from trunk)
svn: r21624
2013-03-12 13:49:54 +00:00
John Ralls
553d82ba34 [r21616]GrampsLocale: Ensure that encoding gets set to something
In the C locale, locale.getlocale() returns [None, None]

svn: r21621
2013-03-11 22:54:43 +00:00
John Ralls
bd61f08873 [r21615]Install image files to $(prefix)/share/gramps/images
Instead of $(prefix)/share/gramps/icons/hicolor, which was an old (early
Gtk2) theming requirement.

svn: r21620
2013-03-11 22:54:37 +00:00
John Ralls
13a49a63ff [r21614]Move VERSION, VERSION_TUPLE, major_version
from const.py to version.py

As noted in the previous change, importing const into setup.py tried to
initialize GrampsLocale and ResourcePath, which won't work. Since all we
want is the VERSION string, move that to a new file, gramps/version.py

svn: r21619
2013-03-11 22:54:31 +00:00
John Ralls
3a73837dc9 [r21613]Determine Paths at Runtime
Uses GRAMPS_RESOURCES to override the root location of the Gramps data
files (which would normally be $(prefix)/share). In setup.py install,
writes $(prefix)/share to gen/utils/resource-path, installs that file,
then deletes it again from the source tree. The presence or absence
determines whether Gramps is running from the source directory or from
an installation.

Const.py is now a static file; const.py.in is no longer used. Note that
because importing const into setup tried to initialize things that we
don't want initialized, VERSION is removed, and imported from
gramps.version -- a file which will be added in the next change.
Consequently, this commit will not run.

svn: r21618
2013-03-11 22:54:20 +00:00
John Ralls
3490ebc684 [r21612]GrampsLocale: Protect another setlocale instance
svn: r21617
2013-03-11 22:54:11 +00:00
Mirko Leonhäuser
2ebec70e21 updated german translation
svn: r21611
2013-03-11 20:23:21 +00:00
Tim G L Lyons
87d91cdc20 Exportgedcom and importgedcom. 0006382: ADDR tag in GEDCOM export does not contain a full address. On export, all the elements of the structured address are output as ADDR/CONT. On import the structured address takes precedence (as at present), but a warning is only given if an element in the free-form address is missing from the structured address.
svn: r21609
2013-03-11 18:44:37 +00:00
Nick Hall
6a23860df2 6237: Suppress Gramps ID in Narrative Web report
svn: r21606
2013-03-10 23:54:52 +00:00
Paul Franklin
af3e34fef5 sync a few files in gramps40 and trunk
svn: r21604
2013-03-10 21:52:07 +00:00
John Ralls
1a5ad3b6f7 [r21597]Grampslocale: Protect from crashes due to passing bad strings to
setlocale

svn: r21600
2013-03-09 22:38:05 +00:00
John Ralls
a323c33c30 [r21596]Mac: Improve language list handling
Make sure that lang overrides the language list only if $LANG is set. Don't add encodings to the language list (e.g., en_US, not en_US.UTF-8). Start collation with None, because `if collation:` is True for collation = "". defaults may have whitespace at the end of "root", so use "startswith".

svn: r21599
2013-03-09 22:38:00 +00:00
John Ralls
5ecdde56f4 [r21595]GrampsLocale: Improve handling the language list
Replace "en" with "C" when setting $LANGUAGE ("en" confuses GtkBuilder), and explicitly iterate over languages when finding
the translator, because left to itself gettext will ignore English.

svn: r21598
2013-03-09 22:37:54 +00:00
Paul Franklin
aa21c636b2 slight tweaks to text, add text property
svn: r21593
2013-03-09 17:48:00 +00:00
Jérôme Rapinat
f84cc66c58 update Portuguese (Europe) translation by Frederico Muñoz
svn: r21592
2013-03-09 16:43:55 +00:00
Jérôme Rapinat
61046f3b75 "os" is not defined
svn: r21587
2013-03-09 10:25:10 +00:00
Jérôme Rapinat
2dab9b146e typo for handling translated strings
svn: r21586
2013-03-09 09:17:59 +00:00
John Ralls
54320efc45 Mac: Update Info.plist for alpha5
svn: r21585
2013-03-09 00:01:38 +00:00
Paul Franklin
113fbcfc7f handle CLI pathological case
svn: r21583
2013-03-07 23:30:03 +00:00