39 Commits

Author SHA1 Message Date
Paul Franklin
be53411b39 enable translated output for this report
svn: r22076
2013-04-23 04:48:57 +00:00
Paul Franklin
df431da250 reenable translated report title
svn: r22074
2013-04-22 18:17:45 +00:00
John Ralls
5db0763970 GrampsLocale: Fix 'Foo has no attribute _Foo__get_type' execption
From moving the set_locale function to the superclass. One can get
carried away with enforcing private attributes...

svn: r22062
2013-04-21 17:49:08 +00:00
John Ralls
769203162c GrampsLocale: Wrap locale.format and locale.format_string
To concentrate the locale dependency in grampslocale.py

svn: r22027
2013-04-20 23:09:09 +00:00
Paul Franklin
dc128110bc typos
svn: r22021
2013-04-19 16:58:24 +00:00
Paul Franklin
3a06d7b204 typo
svn: r22017
2013-04-18 20:56:27 +00:00
Paul Franklin
9804301762 give the "ahnentafel" report a user-settable title string
(since many English speakers do not know what "ahnentafel" means)


svn: r22015
2013-04-18 19:08:46 +00:00
Paul Franklin
cceb28c5b9 refactor: move name_format into stdoptions.py
svn: r22009
2013-04-17 20:49:50 +00:00
John Ralls
00aa00fbf5 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: r21968
2013-04-12 22:32:11 +00:00
John Ralls
56254d4a14 GrampsLocale: Integrate libtranslate functions into GrampsLocale
And remove libtranslate

svn: r21967
2013-04-12 22:27:54 +00:00
John Ralls
665206df85 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: r21966
2013-04-12 22:27:44 +00:00
Paul Franklin
25315ceece add person-index entries, for book report
svn: r21953
2013-04-10 21:56:10 +00:00
Paul Franklin
87c11877f4 add TOC and index entries, for book report
svn: r21952
2013-04-10 20:26:35 +00:00
Paul Franklin
d96c766cb1 add TOC entry, for book report
svn: r21949
2013-04-10 19:05:41 +00:00
Peter Landgren
a71e8f5689 Update for spelling of Family Tree.
svn: r21938
2013-04-10 09:34:27 +00:00
Paul Franklin
cf4a3aefbd shorten the report name for easier CLI use
svn: r21552
2013-03-05 04:45:57 +00:00
Paul Franklin
658134e464 6448: Text Reports>Descendant Report gives an AttributeError: 'Sort' object has no attribute by_birthdate
svn: r21357
2013-02-14 23:41:35 +00:00
John Ralls
fd61b21a2d GrampsLocale: Replace locale.strcoll, locale.strxfrm, and conv*_tosrtkey
With GrampsLocale.sort_key (for strxfrm and conv*_tosrtkey) and
GrampsLocale.strcoll.

If ICU is available will use the correct ICU::Collator for the locale,
otherwise falls back to locale.strxfrm -- for which it temporarily
changes the LC_COLLATE locale.

svn: r21275
2013-02-01 22:49:14 +00:00
John Ralls
72051dd488 GrampsLocale: Replace use of get_language_string with GrampsLocale.get_language_dict
Permits sorting by localized language name.
Also hides the language code, which the user doesn't really care about.
Removes get_language_string from libtranslate.py, no longer needed.

svn: r21236
2013-01-27 21:10:17 +00:00
John Ralls
85a082bb6d Descendant Report: Fix changed Sort function name
svn: r21156
2013-01-17 19:48:58 +00:00
John Ralls
ef6892abbd GrampsLocale: Remove ggettext
svn: r21144
2013-01-17 19:46:55 +00:00
John Ralls
d3c2a8a490 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: r21143
2013-01-17 19:42:11 +00:00
John Ralls
eecf57a0f6 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: r21142
2013-01-17 19:41:58 +00:00
Doug Blank
91173ba2a8 Bumped trunk to 4.1, updated plugins, requires setup.py build rather than copy of const.py.in, show svn number in version number
svn: r20919
2012-12-31 22:51:11 +00:00
Peter Landgren
ee2f5a990d Fix for correct unique surname statistics.
svn: r20686
2012-11-21 12:32:46 +00:00
Benny Malengier
8b39b80dc8 2620: GEPS 031: Python 3 support - 3.2
round 2 for python 3 support:
* no more cmp, also not in sort and sorted
* bsddb needs bytestring keys
* gtk does not need utf-8 encoded anymore...


svn: r20658
2012-11-15 08:08:31 +00:00
Benny Malengier
bb5fc7cb7c 2620: GEPS 031: Python 3 support - 3.2
This does patch updates Gramps to the 3.2 syntax, it does not yet mean Gramps works with python 3.2
Expect next day commits to fix further issues, but this is the main 2to3 tool created patch changed
where needed to have python 2.7 work. 
Specific issues might be:
  1. next has been changed, must be checked
  2. new division as on the wiki page listed is to do
  3. ...


svn: r20634
2012-11-07 17:53:14 +00:00
Nick Hall
bdb2e632a4 5969: Remove Gramps ID from title of Individual report
svn: r20625
2012-10-28 14:58:13 +00:00
Nick Hall
bb679b51a0 5969: Add Gramps ID option to individual report (based on a patch submitted by MathieuMD)
svn: r20613
2012-10-26 23:00:51 +00:00
Jérôme Rapinat
11aadc005d 6086: minor improvements on translation strings (part1)
svn: r20546
2012-10-09 08:53:47 +00:00
Nick Hall
759dd6bce5 GEPS 008: Move records report and gramplet into appropriate directories
svn: r20525
2012-10-05 16:50:44 +00:00
Benny Malengier
91e6df28c1 GEPS 026: Replace 'make' for Gramps build
Remove all makefile in gramps code
Still present: make for doc creation and make for webapp


svn: r20499
2012-10-03 08:46:04 +00:00
Nick Hall
55c19e4180 Changes to imports - part 7
svn: r20492
2012-10-02 21:08:19 +00:00
Nick Hall
80fbfd4d8c Remove redundant imports
svn: r20490
2012-10-02 20:13:17 +00:00
Nick Hall
a5c41d0566 Changes to imports - part 3
svn: r20487
2012-10-02 19:47:38 +00:00
Nick Hall
6b5318fa18 Changes to imports - part 2
svn: r20486
2012-10-02 19:34:37 +00:00
Benny Malengier
149298c52b GEP 026: replace make
* somewhere along the road, all of plugins dir was added to sys.path, this
   is not ok, we only needed lib on sys.path
 * As due to the GEP we can import from the plugin directory, better just
   import the lib modules needed, and avoid sys.path extension
 * At the same time this fixes a bug due to __init__.py being present, import
   of a file named equal to the plugin directory was importing the __init__.py, 
   not the intended file.
 


svn: r20481
2012-10-02 11:31:00 +00:00
Benny Malengier
4f5f419b78 GEPS 026: Replace 'make' for Gramps build
svn: r20467
2012-09-30 12:19:14 +00:00
Benny Malengier
326d604365 GEPS 026: Replace 'make' for Gramps build
If we want to use Gramps from the code directory, src should be called gramps to allow import


svn: r20466
2012-09-30 11:55:52 +00:00