Commit Graph

21217 Commits

Author SHA1 Message Date
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
John Ralls
7e8cc02568 Bundle libgexiv2, adjust data and icon paths back to share
svn: r21582
2013-03-07 23:27:10 +00:00
John Ralls
cd7b83086d Mac: Add patch for gexiv2 so that libtool can link the Gir,
svn: r21580
2013-03-07 23:24:05 +00:00
Helge Herz
fab25576db Revert of 21558 because of changes in the GTK package for Win
svn: r21579
2013-03-07 23:22:59 +00:00
John Ralls
d7b4bab8a9 Mac: Add goocanvas, replace pyexiv2 with gexiv2
svn: r21578
2013-03-07 23:22:43 +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
3cba0f2089 0006507: GEDCOM import: Repositories not imported correctly from FTM for Windows and Heredis
svn: r21570
2013-03-06 17:41:43 +00:00
Erik De Richter
3e3f5c0baf updated nl translation
svn: r21568
2013-03-06 10:15:51 +00:00
Jérôme Rapinat
80db60b332 check gettext syntax complains about missing '\n'
svn: r21566
2013-03-06 08:28:01 +00:00
Jérôme Rapinat
c06e8d3b64 update on translations
svn: r21565
2013-03-06 08:18:51 +00:00
Jérôme Rapinat
c19c5e2569 Bump alpha-version to 5
svn: r21564
2013-03-06 08:05:12 +00:00
John Ralls
992b161798 [r21561]get_unicode_path_from_env_var(): make no-op if it's already unicode
svn: r21563
2013-03-06 01:12:07 +00:00
John Ralls
2dee2c4d77 [r21560]Adapt HTMLRenderer NavigationView init args to new signature
svn: r21562
2013-03-06 01:11:59 +00:00
Helge Herz
96440156bd GEexiv2 vor Python 2.7.3 and Win (see 6464)
svn: r21558
2013-03-05 21:55:49 +00:00
Espen Berg
588089954a Some small revision of Norwegian bokmål language file for gramps40
svn: r21556
2013-03-05 19:37:45 +00:00
John Ralls
7e749a9e25 [r21554]GrampsLocale:Move setlocale from _set_from_environment to
__init_first_instance

So that encoding is set for Mac as well.

svn: r21555
2013-03-05 17:26:00 +00:00
Paul Franklin
3e0fd433b5 shorten the report name for easier CLI use
svn: r21553
2013-03-05 04:46:22 +00:00
Paul Franklin
8a4732a5d2 tweak the default format for the report
svn: r21550
2013-03-05 01:02:54 +00:00
Mirko Leonhäuser
8371684a98 updated german translation
svn: r21549
2013-03-04 18:36:58 +00:00
Paul Franklin
2828211c6a 6494: svn_revision module ignores translated SVN stdout value for "exported"
svn: r21547
2013-03-04 05:12:53 +00:00
Paul Franklin
bf67b3e114 skip error msg if no file exists
svn: r21545
2013-03-04 00:42:39 +00:00
John Ralls
d01f7bf7df [r21540]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: r21543
2013-03-03 23:59:44 +00:00