Commit Graph

20779 Commits

Author SHA1 Message Date
John Ralls
fccfdecd03 [r21148]GrampsLocale: Simplify the file-finding functions
Making use of the fact that GrampsLocale now knows what
encoding to use, and noting that filesystems don't use
more than one encoding to write filenames in directories.

Also specify the encoding on some more files

svn: r21396
2013-02-24 00:52:26 +00:00
John Ralls
3f408af0fa [r21147][Bug 6364] Fix file-opening failures due to unicode content.
svn: r21395
2013-02-24 00:52:07 +00:00
John Ralls
8cea2e239a [r21146]GrampsLocale: Replace calls to sys.getfilesystemencoding
On MSWin and OSX, this call always returns the correct
value (utf-8 on OSX, 'mbcs' on MSWin), but on Linux the
return value is bizarrely dependent upon the environment.

Replace it with a GrampsLocale function which returns 'utf-8'
(the correct value for most Linux file systems) regardless of
the environment.

Also replace its use in print and write functions: It's the
encoding of paths in the filesystem, not of the files's content,
nor of the terminal's capabilities. The former is almost
always utf-8 as long as we write the file, the latter is
given by sys.stdout.encoding. Use the 'backslashreplace' error
handler to avoid exceptions when we need to output unicode
text to an ASCII terminal.

svn: r21394
2013-02-24 00:51:57 +00:00
John Ralls
221c30976f [r21145][Bug 6222]: Get the addons language list from the primary
GrampsLocale instance.

svn: r21393
2013-02-24 00:51:38 +00:00
John Ralls
e28e114c95 [r21144]GrampsLocale: Remove ggettext
svn: r21392
2013-02-24 00:51:17 +00:00
John Ralls
3788d52107 [r21143]Localization: Re-implement localization as a class, GrampsLocale
GrampsLocale is effectively a singleton: An instance is created in
const.py and retrieved everywhere.

Translations are provided via Translations classes, which are derived
from GNUTranslations and NullTranslations to provide extra functions
like sgettext.

svn: r21391
2013-02-24 00:46:03 +00:00
John Ralls
740c7036d7 [r21142]Rename trans.py and mactrans.py to grampslocale.py and
maclocale.py

Reflecting discussion on gramps-devel about their affecting more than
just translations.

Provide for a master GrampsLocale instance to be retrieved from
const.py, set by grampsapp.

svn: r21390
2013-02-24 00:45:50 +00:00
Nick Hall
eeaf8697f0 6408: Display GExiv2 version rather than pyexiv2 version
svn: r21389
2013-02-23 23:36:23 +00:00
Nick Hall
3fabbe1ecb 6408: Convert Metadata Viewer from pyexiv2 to GExiv2. Move Edit Exif Metadata gramplet into gramps-addons.
svn: r21387
2013-02-23 21:11:29 +00:00
Helge Herz
d10d572002 see issue 0006464
svn: r21384
2013-02-23 12:42:24 +00:00
John Ralls
3d0fa69bd0 ImportGedcom: Fix Python3 "dictionary changed size during iteration" errors
svn: r21380
2013-02-19 22:11:35 +00:00
John Ralls
a84d51d6b7 Import ProGen: Use python3 print syntax
svn: r21379
2013-02-19 22:11:29 +00:00
John Ralls
88831f8398 Fix Py2 TypeError in GEDCOM export
Due to writing regular strings instead of unicode strings.

svn: r21378
2013-02-19 22:11:21 +00:00
Paul Franklin
945bec0d6c basedocclass==>docclass to match the 20695 changes
svn: r21373
2013-02-19 19:18:59 +00:00
Serge Noiraud
dfb6be488d Geography : print suppression
svn: r21371
2013-02-18 19:57:11 +00:00
Serge Noiraud
22bcc94ec0 Geography : bug #06451 note 27413 : the ellipse become a line when it is too small
svn: r21369
2013-02-18 19:40:16 +00:00
Serge Noiraud
d02f6a3fb1 Geography : bug #06466 : History change when clicking on one marker
bug #06451 : incomplete precedent patch


svn: r21367
2013-02-17 12:46:13 +00:00
Nick Hall
76eae75da2 Make availability of GraphViz settings depend on output format
svn: r21366
2013-02-16 21:37:07 +00:00
Serge Noiraud
657d8e233f Geography : bug #06451 : Don't see chinese characters in the geography view.
svn: r21363
2013-02-16 13:33:10 +00:00
Nick Hall
5bb9581b15 Improve the descriptions and tooltip for GraphViz aspect ratio option
svn: r21361
2013-02-15 19:44:00 +00:00
Peter Landgren
d6c4298ff4 Fixed a typo.
svn: r21360
2013-02-15 08:46:02 +00:00
Paul Franklin
260170ce36 6448: Text Reports>Descendant Report gives an AttributeError: 'Sort' object has no attribute by_birthdate
svn: r21358
2013-02-14 23:42:02 +00:00
John Ralls
801f1b77aa [Bug 6413] Fix importing ProGen files
This isn't a perfect fix because it requires that the ProGen file is
encoded with CP437, which is guaranteed only in Version 3.21 and later.

svn: r21354
2013-02-14 18:36:07 +00:00
Mirko Leonhäuser
d5dfa05ff9 updated german translation
svn: r21353
2013-02-13 22:35:21 +00:00
Paul Franklin
808002d419 6247: Crash when attempting to use Book Report
svn: r21352
2013-02-13 18:47:44 +00:00
Serge Noiraud
4dc0f01137 Geography : bug #6442 use the good glib with introspection.
svn: r21348
2013-02-13 13:39:58 +00:00
Tim G L Lyons
aa7e0b49e4 Reinstate inadvertent removal of rev 19988 change for bug 5900
svn: r21347
2013-02-13 11:08:52 +00:00
Peter Landgren
3c103143a6 Fixed a typo.
svn: r21345
2013-02-12 15:44:05 +00:00
Serge Noiraud
ef65c893ea Geography : replace GObject.timeout_add by glib.timeout_add as it is deprecated
svn: r21342
2013-02-12 08:38:19 +00:00
Erik De Richter
566c3fb32b updated nl translation
svn: r21339
2013-02-11 20:01:57 +00:00
Josip Pisoj
db1bd1e114 win32_py3: open use system encoding
svn: r21338
2013-02-10 22:52:19 +00:00
Paul Franklin
866796f5dc 6379: Can not get ancestry or relationship tabs to work
svn: r21336
2013-02-10 21:11:37 +00:00
Erik De Richter
fdf740b35c updated nl translation
svn: r21334
2013-02-10 19:29:32 +00:00
Josip Pisoj
1500556d99 win32 changes
svn: r21330
2013-02-10 17:37:56 +00:00
Helge Herz
5e4b2d3bdc Revert svn21254 as discussed in issue 6424
svn: r21328
2013-02-10 14:32:43 +00:00
Tim G L Lyons
880e6c44e7 Revert change 21304 for moving report_options file
svn: r21323
2013-02-08 17:09:50 +00:00
Serge Noiraud
4068bebb3e Geography : synchronize gramps and osm-gps-map for the free maps.
svn: r21319
2013-02-08 07:39:59 +00:00
Serge Noiraud
0465b9cf37 Geography : sometimes crash with unknown people or family.
svn: r21318
2013-02-07 23:25:46 +00:00
Josip Pisoj
fed5cc6a71 win32-py3 fix:ValueError: strftime() requires year in [1; 9999]
svn: r21317
2013-02-07 21:43:19 +00:00
Josip Pisoj
69800680a3 adapt setup script for win32
svn: r21316
2013-02-07 21:41:02 +00:00
Tim G L Lyons
a3a758fd13 0006411: Navweb crashes alpha4 when creating Media pages
svn: r21314
2013-02-07 16:42:16 +00:00
Benny Malengier
eadae6dbc9 use latest gtkspell if available
svn: r21308
2013-02-06 09:24:12 +00:00
Tim G L Lyons
3ee843917e 0003968: [NarWeb] Save/Restore settings for Narrated Website Generation. Change report_options file to be in the database directory, and implement different default report file and directory names based on the Family Tree Name. N.B. On upgrading, if you want to preserve your report_options, copy the report_option.xml file from the .gramps directory to the applicable .gramps.grampsdb.<number> directory. Also don't forget that the default options are to EXCLUDE private and living data.
svn: r21305
2013-02-05 18:07:03 +00:00
Tim G L Lyons
43c49238f5 Fix processing of contractions, and changes to ensure code (after initial lines) for narrativeweb is the same for trunk and gramps34 and gramps40. Also change default name of output directory (see bug 3968) and use website-directory configuration item.
svn: r21303
2013-02-05 18:00:09 +00:00
Peter Landgren
641155478f Fix of gramps -v for Graphviz and ghostscript.
svn: r21302
2013-02-05 15:18:59 +00:00
Tim G L Lyons
6ca692e33a 0006397: Navweb crashes alpha4. date.get_start_date has no attribute 'is_valid'
svn: r21300
2013-02-05 12:17:59 +00:00
Gary Burton
41fdca39dd Bug #6358. gc.DEBUG_OBJECTS removed from python3. Also handle exceptions due to collected weak references.
svn: r21299
2013-02-04 22:01:19 +00:00
Tim G L Lyons
bb3ac61359 Change format of console logging messages to have a meaningful timestamp
svn: r21297
2013-02-04 19:15:45 +00:00
John Ralls
a00a5ba32d [r21155]Use IMAGE_DIR in geography.py so that map images can be found
when running from source directory.

svn: r21288
2013-02-04 02:15:55 +00:00
Gary Burton
efdb6e9fd5 Fix memory leaks.
svn: r21284
2013-02-03 16:25:03 +00:00