Commit Graph

20 Commits

Author SHA1 Message Date
John Ralls
0a6ff725ac Take the localization debug info from GrampsLocale instead of locale
svn: r22025
2013-04-20 23:08:53 +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
Paul Franklin
e142003601 restore SVN number to "gramps -v" output
svn: r21751
2013-03-26 19:01:54 +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
Paul Franklin
7823280d22 handle CLI pathological case
svn: r21584
2013-03-07 23:30:21 +00:00
Paul Franklin
1e208f02bb add ICU/PyICU to "gramps -v"
svn: r21531
2013-03-03 03:19:56 +00:00
Paul Franklin
4e04ec09fb behave gracefully if no GExiv2 under Python3
svn: r21468
2013-02-26 20:36:52 +00:00
Nick Hall
ddf9dc9f14 6408: Display GExiv2 version rather than pyexiv2 version
svn: r21388
2013-02-23 23:36:12 +00:00
Peter Landgren
1db1aefc81 Fix of gramps -v for Graphviz and ghostscript.
svn: r21301
2013-02-05 15:11:45 +00:00
Tim G L Lyons
1a5be24d56 Change format of console logging messages to have a meaningful timestamp
svn: r21295
2013-02-04 19:14:29 +00:00
John Ralls
33fe531672 GrampsLocale: Fix missing "operating_system" value
Inadvertently deleted the creation in r21143

svn: r21197
2013-01-22 19:21:04 +00:00
John Ralls
09a875db11 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: r21148
2013-01-17 19:47:59 +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
Benny Malengier
ce7192c034 6290: No Text report with output format PDF is created
6292: No Text report, with output format Print... , is created.


svn: r21064
2013-01-11 14:51:28 +00:00
Benny Malengier
b2e5f1ea0d Recover gracefully from some errors in python3
svn: r20951
2013-01-03 10:29:04 +00:00
Benny Malengier
59d54b9ba5 More version strings
svn: r20881
2012-12-30 15:14:58 +00:00
Benny Malengier
1cad822978 2620: GEPS 031: Python 3 support - 3.2
* fix introduced errors: write of reference in db, check in dbloader on string type
 * working import of xml file in python 3


svn: r20659
2012-11-15 10:28:19 +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
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