Tim G L Lyons
f0ed16a9eb
export file select dialogue does not correctly reject empty filenames - two (probably long standing) coding errors: use of method name 'strip' instead of calling it, and does not isolate the filename from the full pathname
...
svn: r21268
2013-02-01 17:40:24 +00:00
Tim G L Lyons
e2f4e39f7e
find_file and find_folder do not return null string if the file or folder resp. do not exist (coding typo)
...
svn: r21267
2013-02-01 17:35:37 +00:00
Nick Hall
7de1d4d40e
Remove duplicate LOCALE_DIR
...
svn: r21262
2013-01-31 18:33:20 +00:00
Jérôme Rapinat
ee96c874ba
6367: Update the Side/Bottombar text (patch by Patsyblefebre)
...
svn: r21260
2013-01-31 08:29:39 +00:00
Tim G L Lyons
fa1151ef05
Narrative web: fix tar file output and HTML encoding output support.
...
svn: r21258
2013-01-30 18:58:44 +00:00
John Ralls
9755c2f794
Revert "Allow hard-coded paths to be overridden with $XDG_DATA_DIRS"
...
This reverts r21246
svn: r21257
2013-01-30 14:54:08 +00:00
Benny Malengier
c2164fbb37
gdkpixbuf support on windows
...
svn: r21255
2013-01-30 10:05:29 +00:00
John Ralls
bf9af55a3f
Allow hard-coded paths to be overridden with $XDG_DATA_DIRS
...
Necessary for post-installation relocatability.
Also ensure that data installed to share/gramps is in mac bundle.
svn: r21246
2013-01-29 20:35:41 +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
091782abf7
GrampsLocale: Use module-specific logger for grampslocale.py
...
Fixes double-logging problem reported by Tim Lyons.
svn: r21235
2013-01-27 21:10:09 +00:00
Jérôme Rapinat
febd8842fd
behavior has changed on gramplet bars, message needs an update too
...
svn: r21231
2013-01-27 16:52:09 +00:00
Gary Burton
da7ab966d1
Bug #6371 . Fix memory leak caused by hanging reference to progress meter callback method.
...
svn: r21225
2013-01-26 09:28:52 +00:00
Doug Blank
23c9ce10b9
6364: dead people are shown as alive in narrated web page export
...
svn: r21219
2013-01-25 12:53:50 +00:00
Nick Hall
1200a57d53
6307: Use untranslated string in filter
...
svn: r21214
2013-01-24 16:47:14 +00:00
Nick Hall
a8a177d396
6360: Fix to work with new model
...
svn: r21212
2013-01-24 16:28:13 +00:00
Benny Malengier
3e80ed51e0
6288: crash: no attribute 'require_version' - better fix
...
svn: r21207
2013-01-24 08:45:00 +00:00
Gary Burton
284ee7dce9
Bug #6255 .
...
svn: r21201
2013-01-22 20:56:11 +00:00
John Ralls
4a1c769a7e
[Bug #6361 ] try to run soundex tool
...
Updated for python3
svn: r21199
2013-01-22 19:21:29 +00:00
John Ralls
7d9cc19ed0
Fix unhandled exception in expandersidebar
...
svn: r21198
2013-01-22 19:21:17 +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
Tim G L Lyons
b0f79b5bbe
Error in person.get_citation_child_list. Causes error in merging citation in person event reference attribute. (Discovered during investigation of 0006336: Delayed update of bottom bar in Person View after merge)
...
svn: r21196
2013-01-22 19:14:57 +00:00
Nick Hall
9c66c62d5c
Add tagging to all primary objects
...
svn: r21194
2013-01-22 16:12:15 +00:00
John Ralls
7fb81b5c21
GrampsLocale: Fix call to member function.
...
svn: r21186
2013-01-21 15:14:17 +00:00
John Ralls
5e505f2c21
GrampsLocale: Restructure so that multiple GrampsLocale objects can safely be created for different locales
...
Only the first dependent upon the environment
All may be created with parameters which override environment variables or OS settings.
See the GrampsLocale docstring for details.
svn: r21182
2013-01-21 01:27:29 +00:00
John Ralls
795b45c82f
relationship.py: Remove unused import
...
svn: r21181
2013-01-21 01:27:21 +00:00
John Ralls
c4802bd210
Fix undefined variable reference, make separate not-loaded warning
...
Thanks to Pat Lefebre for reporting the error.
svn: r21179
2013-01-20 19:35:28 +00:00
Gary Burton
1d002b3218
Bug #6255 . Wrap gzip files with TextIOWrapper to allow them to be read as text.
...
svn: r21177
2013-01-20 17:16:01 +00:00
Tim G L Lyons
c91b53f0c4
0005088: Narrated Web Site Report sort order different Windows vs Linux. Initial commit to resolve the issues on Linux and Mac (provided in both cases PyICU is installed). Windows still needs to be tested, and there may still be some other uses of strxfrm (or strcoll) that need to be fixed.
...
svn: r21175
2013-01-20 15:11:06 +00:00
John Ralls
9e09c4233f
GrampsLocale: Fix another typo
...
svn: r21171
2013-01-19 00:56:18 +00:00
John Ralls
b0e9f158d5
GrampsLocale: Convert some late-added translations to GRAMPS_LOCALE
...
svn: r21170
2013-01-18 22:23:11 +00:00
John Ralls
d5d0523303
GrampsLocale: Fix the typo in my typo fix.
...
svn: r21169
2013-01-18 22:04:46 +00:00
John Ralls
1a43859587
GrampsLocale: get_relationship_calculator: Fix missed variable name change.
...
svn: r21168
2013-01-18 21:27:48 +00:00
Nick Hall
d189448f39
Use public interface of Gtk.TreeModel in listview code
...
svn: r21165
2013-01-18 18:46:09 +00:00
Nick Hall
ddff6f95d9
6353: Fix error when setting colours
...
svn: r21163
2013-01-18 18:24:13 +00:00
Nick Hall
e4c0e079e7
Remove handle and tooltip columns from models
...
svn: r21158
2013-01-17 21:58:53 +00:00
John Ralls
5e914292fe
Fix GeoGraphyView.__init__ arg list for simplified bookmarks
...
svn: r21157
2013-01-17 19:49:04 +00:00
John Ralls
85a082bb6d
Descendant Report: Fix changed Sort function name
...
svn: r21156
2013-01-17 19:48:58 +00:00
John Ralls
d9409a8998
Use IMAGE_DIR in geography.py so that map images can be found when running from source directory.
...
svn: r21155
2013-01-17 19:48:51 +00:00
John Ralls
3f7d8933c7
Import get_svn_revision into const.py (via const.py.in, of course)
...
svn: r21154
2013-01-17 19:48:44 +00:00
John Ralls
b79eb50aba
PdfDocGen: Report cause of failure on all exceptions
...
not just file open ones. Expat can raise exceptions too!
svn: r21153
2013-01-17 19:48:37 +00:00
John Ralls
42de599bd0
GrampsLocale: Fix file encoding error in recentfiles
...
Expat wants a binary file, not a string file.
svn: r21152
2013-01-17 19:48:32 +00:00
John Ralls
e920cbfac1
GrampsLocale: Get the language code from the global translation
...
Instead of probing locale.getlocale() and environment variables
svn: r21151
2013-01-17 19:48:24 +00:00
John Ralls
df46941e73
GrampsLocale: Use the codeset from the singleton translation
...
Instead of locale.getlocale() or locale.nl_langinfo
svn: r21150
2013-01-17 19:48:14 +00:00
John Ralls
807512cd05
Fix some file resource leaks
...
I.e., files left open when the opening function exits. This is
a PyDebug warning.
svn: r21149
2013-01-17 19:48:07 +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
cc4ec85b4d
[Bug 6364] Fix file-opening failures due to unicode content.
...
svn: r21147
2013-01-17 19:47:44 +00:00
John Ralls
a58ef2b73f
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: r21146
2013-01-17 19:47:36 +00:00
John Ralls
ef7e047b4b
[Bug 6222]: Get the addons language list from the primary
...
GrampsLocale instance.
svn: r21145
2013-01-17 19:47:21 +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