Commit Graph

69 Commits

Author SHA1 Message Date
Nick Hall
322185b339 4735: Check for updates in a separate thread
svn: r22925
2013-08-28 23:34:20 +00:00
Paul Franklin
9fa2057154 6872: wrong size of svg image in Family Lines Graph
svn: r22732
2013-07-24 16:27:09 +00:00
John Ralls
127567278e [r22705]Bug 6928: Windows: If LANG not equal en_GB Graphic Reports
in some cases produce empty PDF sheets or force graphviz to crash

Problem was due to calling localized float() when parsing a C-locale xml file

svn: r22706
2013-07-21 19:28:20 +00:00
Paul Franklin
991740e333 any documentation is better than none
svn: r22284
2013-05-13 22:37:59 +00:00
Paul Franklin
26b785b3e8 defer translation for one more date, and cleanup translation
svn: r22231
2013-05-09 22:25:55 +00:00
Paul Franklin
454180dcec better PEP-0008 (trans_text_ ==> trans_text)
PEP-0008 reserves the use of a trailing underscore for names
which conflict with Python keywords, which this doesn't.

The goal is to have a permanent name which is unique across
the gramps namespace, since it is defined (in po/genpot.sh
and po/update_po.py) as a keyword to flag strings to be put
into the translation "catalog" file (gramps.pot).

The new keyword "trans_text" is still unique.  (Also "_T_".)


svn: r22200
2013-05-07 18:59:15 +00:00
Paul Franklin
f60212f191 enable translated output for this report
svn: r22113
2013-04-28 19:28:19 +00:00
Paul Franklin
26ebc3bda7 typos
svn: r22094
2013-04-24 01:01:26 +00:00
John Ralls
f9e8c90b7d [r22062]GrampsLocale: Fix execption
'Foo has no attribute _Foo__get_type'
From moving the set_locale function to the superclass. One can get
carried away with enforcing private attributes...

svn: r22063
2013-04-21 18:02:47 +00:00
John Ralls
1436945239 [r22039]Bug 6533: Report plugin name
when failing to load an add-on translation
Message now says (e.g.) WARNING: Plugin ExtendedAttributes has no translation for any of your configured languages, using US English instead

svn: r22056
2013-04-20 23:24:11 +00:00
John Ralls
ea0a839ab1 [r22028]GrampsLocale: Replace gen.plug.utils gfloat()
With GrampsLocale.float().
Also remove gen.plug.utils gformat(), which was written to work
around string formatting with %f localizing the decimal point,
which it doesn't do. locale.format() does, but it wasn't being
used anyway.

svn: r22045
2013-04-20 23:23:07 +00:00
Paul Franklin
c032fc8dae typos
svn: r22020
2013-04-19 16:57:48 +00:00
Paul Franklin
feb36c5ce4 refactor: move name_format into stdoptions.py
svn: r22008
2013-04-17 20:49:14 +00:00
John Ralls
3127dc08e2 [r21977]Remove unnecessary (and broken in Py3) import
svn: r21986
2013-04-13 14:38:02 +00:00
John Ralls
58c2b11013 [r21968]GrampsLocale: Remove get_translation()
Only one base translation per locale. To set up a different locale
on any axis (locale, domain, directory, or languages) instantiate a
secondary locale by calling GrampsLocale() with the appropriate
arguments.

svn: r21985
2013-04-13 14:37:34 +00:00
John Ralls
d674eed2d4 [r21967]GrampsLocale: Integrate libtranslate functions into GrampsLocale
And remove libtranslate

svn: r21984
2013-04-13 14:35:30 +00:00
John Ralls
751ac2aef0 [r21966]GrampsLocale: Extract 2 reporting functions
set_translation() to the Report class
Add a new module stdoptions to gen.plug.report with function
add_localization_option(). The intent of stdoptions is to reduce the code-copying among reports; this is the first bit.

svn: r21983
2013-04-13 14:35:23 +00:00
Paul Franklin
e0ed05653d add person-index entries, for book report
svn: r21954
2013-04-10 21:56:35 +00:00
Paul Franklin
ca4c231eaa missing import
svn: r21947
2013-04-10 19:00:58 +00:00
Paul Franklin
d62b34125c send a CLI error string to stderr
svn: r21848
2013-04-02 05:07:21 +00:00
Paul Franklin
4064b9917f totally revert the whole 21728/21729 open=>io.open changes
svn: r21735
2013-03-24 22:27:27 +00:00
Paul Franklin
0c791b2d14 revert 21728/21729 open=>io.open change, for Windows
svn: r21732
2013-03-24 17:45:40 +00:00
Paul Franklin
42d8a95512 modify (semi-revert) 21728/21729 open=>io.open change, for Windows
svn: r21731
2013-03-24 15:48:58 +00:00
Paul Franklin
d5e63a30d5 more open=>io.open changes, as John advised
svn: r21728
2013-03-24 00:10:34 +00:00
Paul Franklin
8835e3f133 slight tweaks to booklist format
svn: r21718
2013-03-21 20:45:59 +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
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
Paul Franklin
af3e34fef5 sync a few files in gramps40 and trunk
svn: r21604
2013-03-10 21:52:07 +00:00
Nick Hall
c861968fd3 6128: Reverse bug fix keeping code refactor
svn: r21576
2013-03-07 22:54:58 +00:00
Tim G L Lyons
98fa69b717 0003428: When running with pythonw.exe, Windows may crash if you write to stdout. Some more print statements changed to log.warning.
svn: r21511
2013-03-01 13:12:29 +00:00
John Ralls
c01846fb84 [r21149]Fix some file resource leaks
I.e., files left open when the opening function exits. This is
a PyDebug warning.

svn: r21397
2013-02-24 00:52:35 +00:00
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
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
Paul Franklin
945bec0d6c basedocclass==>docclass to match the 20695 changes
svn: r21373
2013-02-19 19:18:59 +00:00
Nick Hall
76eae75da2 Make availability of GraphViz settings depend on output format
svn: r21366
2013-02-16 21:37:07 +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
Josip Pisoj
db1bd1e114 win32_py3: open use system encoding
svn: r21338
2013-02-10 22:52:19 +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
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
Benny Malengier
44ea1b0fa8 6330: Can't download ans install addons
svn: r21130
2013-01-15 10:59:06 +00:00
Paul Franklin
bd65cfcbea 6229: bug when creating a book reports
svn: r21091
2013-01-13 01:07:47 +00:00
Benny Malengier
642f837658 6256: Can't create graph reports
svn: r21011
2013-01-06 21:35:34 +00:00
Benny Malengier
ddd1aae5c3 06256: Can't create graph reports
svn: r21001
2013-01-05 13:33:03 +00:00
Benny Malengier
47fd0cf00f 6256: Can't create graph reports
svn: r20995
2013-01-05 11:34:36 +00:00
Paul Franklin
81e1237b3c revert accidental 20685 regression (iteritems)
svn: r20988
2013-01-04 22:58:09 +00:00
Jérôme Rapinat
77f9760504 6203: typo when interrupting a gramplet
svn: r20920
2013-01-01 07:15:23 +00:00