Commit Graph

21171 Commits

Author SHA1 Message Date
John Ralls
29cf6674b5 Install image files to $(prefix)/share/gramps/images
Instead of $(prefix)/share/gramps/icons/hicolor, which was an old (early Gtk2) theming requirement.

svn: r21615
2013-03-11 22:44:23 +00:00
John Ralls
ee639ec7da 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: r21614
2013-03-11 22:44:15 +00:00
John Ralls
fa0eb6cebe 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: r21613
2013-03-11 22:43:58 +00:00
John Ralls
56e29c162b GrampsLocale: Protect another setlocale instance
svn: r21612
2013-03-11 22:43:52 +00:00
Tim G L Lyons
7055827260 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: r21610
2013-03-11 18:45:09 +00:00
Nick Hall
709eb0ebcd 6237: Suppress Gramps ID in Narrative Web report
svn: r21607
2013-03-10 23:55:08 +00:00
Paul Franklin
55e2863a0b sync a few files in gramps40 and trunk
svn: r21603
2013-03-10 21:51:52 +00:00
John Ralls
b60dbf2782 Grampslocale: Protect from crashes due to passing bad strings to setlocale
svn: r21597
2013-03-09 22:31:13 +00:00
John Ralls
40ff796d93 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: r21596
2013-03-09 22:31:06 +00:00
John Ralls
068d50cc26 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: r21595
2013-03-09 22:31:00 +00:00
Paul Franklin
f984692474 slight tweaks to text, add text property
svn: r21594
2013-03-09 17:48:22 +00:00
Jérôme Rapinat
c9698f51e0 typo for handling translated strings
svn: r21589
2013-03-09 12:17:40 +00:00
Jérôme Rapinat
9856e108e6 "os" is not defined
svn: r21588
2013-03-09 12:15:39 +00:00
Paul Franklin
7823280d22 handle CLI pathological case
svn: r21584
2013-03-07 23:30:21 +00:00
Helge Herz
47b8dc8131 Revert of 215589 because of changes in the GTK package for Win
svn: r21581
2013-03-07 23:26:43 +00:00
Nick Hall
a5b4759f40 6128: Reverse bug fix keeping code refactor
svn: r21577
2013-03-07 22:55:23 +00:00
Erik De Richter
5a64a968ff updated nl translation
svn: r21574
2013-03-07 20:15:51 +00:00
Tim G L Lyons
b5dc0630a6 0006507: GEDCOM import: Repositories not imported correctly from FTM for Windows and Heredis
svn: r21571
2013-03-06 17:42:14 +00:00
John Ralls
b262eeaab7 get_unicode_path_from_env_var(): make no-op if it's already unicode
svn: r21561
2013-03-06 01:07:05 +00:00
John Ralls
2dcc870dbc Adapt HTMLRenderer NavigationView init args to new signature
svn: r21560
2013-03-06 01:06:58 +00:00
Helge Herz
dd3bb6122c GEexiv2 vor Python 2.7.3 and Win (see 6464)
svn: r21559
2013-03-05 21:56:09 +00:00
John Ralls
b57e7b7508 GrampsLocale:Move setlocale from _set_from_environment to __init_first_instance
So that encoding is set for Mac as well.

svn: r21554
2013-03-05 17:23:21 +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
78624360cd tweak the default format for the report
svn: r21551
2013-03-05 01:03:25 +00:00
Mirko Leonhäuser
09f276990f updated german translation
svn: r21548
2013-03-04 18:36:19 +00:00
Paul Franklin
7892d02a5d 6494: svn_revision module ignores translated SVN stdout value for "exported"
svn: r21546
2013-03-04 05:12:32 +00:00
Paul Franklin
1d4ae20433 skip error msg if no file exists
svn: r21544
2013-03-04 00:41:54 +00:00
John Ralls
694f757463 GrampsLocale: Add _win_bindtextdomain
Adapted from init_windows_gettext in Gramps3.
Libintl-8.dll must be on the path, just like all of the other C-library
dependencies.



svn: r21540
2013-03-03 23:40:27 +00:00
John Ralls
649bdf7bb7 GrampsLocale: Restore setlocale, add GrampsLocale.encoding
encoding to replace translation().info()['encoding'] which isn't 
the encoding we're looking for. 

svn: r21539
2013-03-03 21:55:02 +00:00
John Ralls
46d7c95f86 svn: r21538 2013-03-03 21:50:22 +00:00
Serge Noiraud
ee3469233a Geography : #05742 note 27613 : cairo arguments differ from gtk2 draw arc.
svn: r21534
2013-03-03 10:57:03 +00:00
Jérôme Rapinat
87838a3178 update Portuguese (Europe) translation by Frederico Muñoz
svn: r21533
2013-03-03 09:07:14 +00:00
Paul Franklin
1e208f02bb add ICU/PyICU to "gramps -v"
svn: r21531
2013-03-03 03:19:56 +00:00
John Ralls
f6ab91e87f GrampsLocale: Create GrampsTranslation attribute for language
Rather than relying on translators to correctly fill out po files

svn: r21526
2013-03-02 20:25:07 +00:00
John Ralls
67e975b31f GrampsLocale: Fix glocale without import
svn: r21525
2013-03-02 20:25:01 +00:00
Tim G L Lyons
41ff6f2fbd 0005058: Note reference on Attribute for individual is not filtered on Export. Fixed many other note references that are not filtered out.
svn: r21524
2013-03-02 19:30:41 +00:00
Peter Landgren
3cdfa558d6 Better translation for compare events.
svn: r21518
2013-03-02 13:45:46 +00:00
Helge Herz
968b4a882d adaption for python version less 3.x (see issue 6465) for details
svn: r21516
2013-03-02 13:44:04 +00:00
Tim G L Lyons
80f25e3806 0003428: When running with pythonw.exe, Windows may crash if you write to stdout. Some more print statements changed to log.warning.
svn: r21512
2013-03-01 13:13:58 +00:00
Tim G L Lyons
40b8b02838 Narrative Web: Fix alphabetic navigation bar and sorting in index pages using PyICU where available. Implements most collate contractions for western languages Gramps has been translated into. This fixes the following bugs:
0002933: Problems in Narrative Web Report with surnames beginning with V or W. Use collation primary difference to define index groupings. Special case for 'V' and 'W' in Swedish removed because the default CLDR has a primary difference between them.

0003434: NarrativeWeb new alphabet index sorted incorrectly. Fix Cyrillic sort order, and contractions for Slovak and Czech (among other languages).

0003933: References inside pages in NarWeb report and non-ascii characters. Sorting issues for Polish characters.

0004423: Web report does not handle Czech "CH" character properly. Dz contraction is not present in the CLDR. Slovak is similar.

0005088: Narrated Web Site Report sort order different Windows vs Linux. Resolved by using PyICU (if available).

0005645: can't sort greek names

0005767: Sorting in Narrative Webb does not work correctly. Fix sorting in Individuals, Surnames, Families, Events and Places to use PyICU (if available). This bug covers sorting in the index header (as well as in the body of the index pages).

svn: r21509
2013-03-01 12:42:16 +00:00
Serge Noiraud
58a2be3264 Bug #06459 : change the lock strategy and split transactions in Merge citation.
svn: r21503
2013-02-28 19:52:24 +00:00
John Ralls
b73e758a84 RelationshipCalculator: Promote no translation message to warning
And make it more specific.
Thanks to Tim Lyons.

svn: r21501
2013-02-28 19:36:09 +00:00
John Ralls
b87c663612 grampletpane: Fix typo, naked except.
Warn with the reason when Dashboard file can't be opened or parsed.

svn: r21492
2013-02-28 19:10:33 +00:00
John Ralls
ee7fdca6ef MacLocale: Handle AppleCollationOrder returning "root"
svn: r21491
2013-02-28 18:57:37 +00:00
John Ralls
1e41e76682 MacLocale: Allow $LANG to override defaults settings
For currency, calendar, and collation

svn: r21490
2013-02-28 18:57:31 +00:00
John Ralls
991447264a GrampsLocale: Handle errors in getting collation key from locale module
svn: r21489
2013-02-28 18:57:25 +00:00
John Ralls
38dcbbae58 GrampsLocale: Restore call to locale.bindtextdomain() for GtkBuilder
Apparently some Linuxes require it for GtkBuilder to find the localization files. It's not supported on Win32, though, so don't try in that case.

svn: r21488
2013-02-28 18:57:19 +00:00
John Ralls
ca80adeb01 GrampsLocale: Set collation, currency, and calendar to lang only on secondary locale objects.
svn: r21487
2013-02-28 18:57:13 +00:00
John Ralls
c0aa613e4a GrampsLocale: Use absolute address for importing grampslocale
so that it works from outside of Gramps itself, in particular gramps-addons/contrib/make.py

svn: r21486
2013-02-28 18:57:04 +00:00
John Ralls
4eb3e7c926 GrampsLocale: Fix get_addon_translator path
Add the locale subdirectory.
Also clean out some cruft left over from the old implementation.

svn: r21485
2013-02-28 18:56:59 +00:00