Baizley
3cb4115ae4
Use list comprehension for name format list.
...
Combine construction and filtering with list
comprehension.
Adjust sort method to work over tuples.
2022-02-13 19:43:25 +00:00
Baizley
b66b9b3727
Simplify sorting in get_name_format.
...
First, the simplification uses the
built-in cmp_to_key function from functools
to remove the duplicated function in the
class.
Second, the cmp function was reduced to
two cases:
1. When x and y is positive:
Here the st
2. When x or y is negative:
Here the sign of y determines the ordering,
which can be seen from the following cases:
1. x is negative, y is negative =>
their order needs to be, so y is considered
higher, which means x is considered lower
(negative).
2. x is negative, y is positive =>
x is considered higher (positive).
3. x is positive, y is negative =>
y is considered higher, which means x is
considered lower (negative).
Third, the sorting is abstracted away
behind a function declaring the sort order.
2022-02-13 19:43:25 +00:00
Baizley
02983370bd
Add test coverage for get_name_format.
...
The test class enumaretes all possible
values for the three boolean arguments.
Some of the results is arguably wrong,
but since other classes depend on the
current semantics, these cases have
not been corrected.
2022-02-13 19:43:25 +00:00
André Apitzsch
727139f817
Remove xdg-utils dependency
2022-02-13 19:23:00 +00:00
André Apitzsch
2b50f55991
Fix application id
2022-02-13 18:31:43 +00:00
Nick Hall
c2f46da34f
Fix unit test for check & repair tool
2022-02-10 22:08:56 +00:00
CWSchulze
dbc999669b
Add Godparent as event role
2022-02-10 22:08:56 +00:00
Paul Culley
c3c12b17cb
Update addrembedlist.py
...
Capitalize postal and phone column headers.
2022-02-09 21:12:01 +00:00
Brian McCullough
00121d1456
Add Phone/Postal to Addresses tab of Person editor
...
Fixes #11600
2022-02-09 21:12:01 +00:00
Nick Hall
00fa6d472a
Improved Age Stats gramplet
...
* New Histogram widget
* Extra bucket for ages above maximum
* Automatic scaling to available width
2022-02-08 23:34:07 +00:00
Nick Hall
a096901c53
Replace Marriage heading with relationship type
2022-02-08 21:29:08 +00:00
Nick Hall
13792c6948
Remove Husband and Wife headings
...
These are incorrect for same-sex relationships or when the
couple are unmarried.
Resolves #11199
2022-02-08 21:28:16 +00:00
Nick Hall
a5ac4ac43c
Merge branch 'gramps51'
2022-02-06 19:07:14 +00:00
Nick Hall
6df7c46400
Bump to 5.1.6
2022-02-05 23:33:10 +00:00
Nick Hall
b98f166a6d
Release Gramps 5.1.5
2022-02-05 23:28:04 +00:00
Nick Hall
a1ec516340
Update copyright date
2022-02-05 19:25:53 +00:00
SNoiraud
60b4866296
Strange behavior for the scrollbar in the bottombar
...
Fixes #012438
2022-02-04 22:13:05 +00:00
SNoiraud
8eed6b869a
Solve InterpolationSyntaxError if "%" in a string
...
The grampletpane module save data in a config file for all
the gramplets added in the dashboard.
The python configparser module doesn't like if we have a "%"
character in a string.
Fixes #012423
2022-02-01 21:57:37 +00:00
SNoiraud
f5202a9ab8
'<' not supported between 2 instances of IndexMark
...
Fixes #012467
2022-02-01 21:45:32 +00:00
Nick Hall
b8e5eacbbe
Remove debug sattements in unit tests
2022-02-01 21:36:44 +00:00
Nick Hall
810d2fca24
Fix negative Span when dates are not Gregorian
...
Fixes #12525
2022-02-01 21:33:53 +00:00
Serge Noiraud
b058c6854c
Narweb: translation problem + missing events on markers ( #1313 )
...
* Narweb: addressbooklist: headers aren't translated
* Missing events for markers + code simplification
2022-02-01 08:44:06 +01:00
SNoiraud
b52d90221f
Incorrect grouping if no ma/patronymic surname
2022-01-28 22:05:26 +00:00
SNoiraud
bfcbd38610
Group As override is ignored for ma/patronymic surnames
...
Fixes #12395
discourse:
https://gramps.discourse.group/t/patronymic-and-matronymic-name/1684/5
2022-01-28 22:05:17 +00:00
SNoiraud
8d355ee184
Add comments for the lat-lon field of editplace
2022-01-28 21:41:57 +00:00
SNoiraud
d5b28435e0
Place editor, lat and long text are swapped
...
Fixes #012374
2022-01-28 21:41:57 +00:00
prculley
61189d3930
Fix Statusbar progress being shown before use
...
Fixes #12373
2022-01-28 21:32:12 +00:00
prculley
fec961d992
Fix exception when removing a group name in Sqlite db when group
...
name is already missing.
Fixes #12367
2022-01-28 21:31:51 +00:00
prculley
8ceccb4a28
Fix error when trying to close name editor during long name group
...
mapping view rebuild.
Fixes #12328
2022-01-28 21:30:27 +00:00
SNoiraud
6ba9722dee
OsmGpsMap-CRITICAL: Map source setup called twice
...
Fixes #012352
2022-01-28 21:17:30 +00:00
Ross Gammon
4a9f658dd4
Fix probably alive test
...
The probably alive funtion was fixed just prior to the Gramps 5.1.4
release. It appears the relevant unit test was not updated to match.
The relevant commit:
a685b96f70
2022-01-28 19:52:42 +00:00
Christoph Eder
ebddc51fad
datehandler and relationship calculator with de_AT
2022-01-16 17:04:48 +00:00
Serge Noiraud
d0bd9b5b9f
Change order of Event Reference Notes and Notes ( #1281 )
...
Fixes #012356
2021-12-03 10:33:59 +01:00
Serge Noiraud
d3df718174
Possible loop with associated people ( #1308 )
2021-12-03 10:32:20 +01:00
Serge Noiraud
fd15775580
Navweb: add option to show all places ( #1230 )
...
* Navweb: add option to show all places
Fixes #012315
* Don't display media, source ref for unused place.
* backlink gramplet problem if no back references
* Show image on the map only if it was collected.
* Show the thumbnail place if already collected
* Narrative web: minor changes to the text
* changed back to source pages
* restore last tanslatable text.
* restore last strings
2021-12-03 10:31:06 +01:00
Nick Hall
9352f0c438
Bump to 5.1.5
2021-07-26 20:53:53 +01:00
Nick Hall
1ab4cbfa63
Release Gramps 5.1.4
2021-07-26 20:49:30 +01:00
Nick Hall
7cb8489ba2
Update copyright date
2021-07-26 15:43:24 +01:00
SNoiraud
a685b96f70
probably-alive incorrect if death without date
2021-07-26 15:38:25 +01:00
SNoiraud
b24ebd5d77
fix the commit in master without bug report:
...
commit: 410cffe832
2021-07-22 18:50:17 +01:00
SNoiraud
6dcb1d00d5
Place editor, copy and paste of lat and long text
...
no longer auto-populating latitude and longitude fields
Fixes #012349
2021-07-22 18:50:17 +01:00
prculley
a3b37b9627
Fix for crash when changing views if part of toolbar is not shown
...
because of a small screen when changing views.
Fixes #12048
2021-07-22 18:49:03 +01:00
prculley
034720321c
Fix bottombar always showing after restrt, even when not wanted
...
Fixes #12338
2021-07-22 18:47:46 +01:00
Serge Noiraud
101ccbc918
Navweb: add place name to birth and death dates ( #1228 )
...
* Navweb: add place name to birth and death dates
when we use the toggle section.
* Possible problem with RTL languages
2021-07-16 09:19:28 +02:00
Serge Noiraud
4472a38854
Narweb: Inconsistency between the name of the link ( #1272 )
...
to a reference and the name of this reference for an individual.
Fixes #12336
2021-07-16 09:12:29 +02:00
John Ralls
9cca728a66
Better to use locale.get_collation than locale.collation.
2021-07-03 21:54:57 -07:00
John Ralls
df270adc94
Wrap call to dbapi.check_collection to prevent a forced API change.
2021-07-03 21:49:01 -07:00
John Ralls
f75aa9302a
Always use filtered collation names.
...
Store the Sqlite3 collations in the __collations array to short-circuit
re-creation.
Fixes https://gramps-project.org/bugs/view.php?id=12343 .
2021-07-01 11:45:23 -07:00
prculley
708c83dc58
Revert "An experimental fix for bug12048"
...
This reverts commit 3c1c21163c
.
commited by mistake
2021-06-25 09:59:15 -05:00
prculley
0a809904dc
Revert "Change to timeout, rather than idle_add, and dereference toolbars in order they were added"
...
This reverts commit f91d3e94ab
.
commited by mistake.
2021-06-25 09:58:34 -05:00
Leonhaeuser
de0b3889ea
German relation calculator fixed issue if more then 24 generations between the two person
2021-06-23 10:26:29 +02:00
Leonhaeuser
486fae91ce
German relation calculator fixed issue if more then 24 generations between the two person
2021-06-23 10:23:33 +02:00
SNoiraud
ac67142665
Navweb: Solve a merge problem about msgctxt
2021-06-05 19:07:30 +01:00
Nick Hall
9dfa16a2b3
Use msgctxt in Lexeme docstring
2021-06-04 22:05:28 +01:00
Nick Hall
99bf949afa
Revert "Move comments away from translated strings"
...
This reverts commit 1423662e33
.
2021-06-03 00:04:53 +01:00
Nick Hall
ea802db485
Add de_AT to language lists
2021-06-02 23:29:03 +01:00
romjerome
001941ede3
Limit print statement by using logging module
...
python3 Gramps.py -d "gui.uimanager"
2021-06-01 18:45:09 +01:00
Nick Hall
d4d9e302f8
Fix spelling and remove extra newline
2021-06-01 18:29:27 +01:00
Nick Hall
a889b91b57
Further changes
2021-06-01 18:15:59 +01:00
Allan Nordhøy
ccf316f59e
Correct English in narrative web report
2021-06-01 18:15:59 +01:00
Nick Hall
7c43a08952
Add "Translator" tag to comments intended for translators
2021-06-01 14:29:00 +01:00
Nick Hall
7ef0cc3bff
Convert old translator tags
...
Change the old tags "translator" and "TRANSLATOR" to "Translator".
2021-06-01 14:16:44 +01:00
Tian Shixiong
fb97e918fa
Add the missing word
2021-05-28 19:19:16 +01:00
Allan Nordhøy
f84b1a23a3
Spelling: Python, media type, set up, could not
2021-05-24 22:55:05 +01:00
Luigi Toscano
fe2cd4caa6
Various fixes to user-visible strings
...
The change includes various fixes:
- removal of trailing whitespaces;
- consistent usage of the final dot (instead of a question mark);
- fix a few acronyms (uppercase when needed, correct spelling).
2021-05-24 22:54:47 +01:00
Nick Hall
1423662e33
Move comments away from translated strings
...
This will remove comments not relevant to translators from the
POT file.
2021-05-24 18:54:28 +01:00
SNoiraud
ace772812a
image magic: add bmp and tiff + Readme
2021-05-21 19:32:28 +01:00
SNoiraud
4cd968daa6
image magic exception if file not found
2021-05-21 19:32:28 +01:00
SNoiraud
615cd2f59c
"Number of Parents" column in Person Views
...
doesn't sum all parent
Fixes #012268
2021-05-21 18:04:01 +01:00
Jan Sparreboom
e8268cb37e
Update Dutch translation
2021-05-15 23:12:19 +01:00
John Ralls
c66fc6423d
Add file logging for macOS.
...
When Gramps is launched from macOS's LaunchServices it doesn't have
a sys.stderr attached so the default stream logger goes to /dev/null.
Use a FileHandler in tht case, writing the log to $TMPDIR/gramps-pid.log.
This will help particularly in analyzing crashes where python shuts down
as there's no crash report in that case.
2021-05-11 15:58:00 -07:00
prculley
f91d3e94ab
Change to timeout, rather than idle_add, and dereference toolbars in order they were added
2021-05-11 15:58:00 -07:00
prculley
3c1c21163c
An experimental fix for bug12048
2021-05-11 15:58:00 -07:00
Serge Noiraud
720e4b9b4b
Narrative web: Toggle bug for source attribute ( #1203 )
2021-05-11 09:07:44 +02:00
Paul Culley
a7e4d136b8
In familysidebarfilter, search on each part of name ( #1138 )
...
Instead of requiring that the entire search string matches a single
one of the Person's names, the function will require that each word
in the search string matches any of the Person's name fields.
Fixes #12023
2021-05-06 10:31:48 -05:00
Serge Noiraud
f4b88100b1
citations gramplet: add date, page, confidence ( #1180 )
...
* citations gramplet: add date, page, confidence
Fixes #09224
discourse: https://gramps.discourse.group/t/enhanced-citations-gramplet/983
This add date, page and confidence to the citation gramplet.
In addition, I modified all citation tabs for people, family, place, ...
I added the date, the publisher and confidence
For that, I also modify:
gramps/gui/editors/displaytabs/citationembedlist.py
gramps/gui/editors/displaytabs/citationrefmodel.py
* Better pylint score
* pylint sometimes makes mistakes
* Change columns order and size
* citations tab: sort correctly by date
* Adding one column change the handle place.
2021-05-06 10:23:26 -05:00
Serge Noiraud
e450ba0a82
Display the event date in the backlinks gramplet ( #1185 )
...
Fixes #012230
2021-05-06 10:22:06 -05:00
Paul Culley
0945f8908c
Fix db corrupted error message to make it apply to all db types ( #1189 )
...
Fixes #12242
2021-05-06 10:21:16 -05:00
Paul Culley
bb7f5fa522
Fix libplaceview to avoid exception when mapservice is no longer present ( #1193 )
...
Fixes #12263
2021-05-06 10:19:03 -05:00
Paul Culley
9957506f35
Fix References Gramplet for inadequate updates when other objects change ( #1192 )
...
Fixes #12248
2021-05-06 10:18:11 -05:00
Benedikt Werner
249a3180f0
Set new media as active ( #1191 )
2021-05-06 10:17:30 -05:00
Benedikt Werner
410cffe832
Allow entering place latlong without space ( #1190 )
...
* Allow entering place latlong without space
* Allow entering place latlong without space in editplaceref
2021-05-06 10:16:21 -05:00
Serge Noiraud
eb4ce9ff79
geofamily crashes if a family has no father ( #1188 )
2021-05-06 10:14:49 -05:00
Serge Noiraud
1d72f4b23d
Home Person setting does not convey in a Merge ( #1187 )
...
* Home Person setting does not convey in a Merge
Fixes #012235
* better pylint score
2021-05-06 10:14:26 -05:00
Paul Culley
5ad5f08a2b
Fix CSV export of view to only put single CR character. ( #1186 )
...
Fixes #12158
2021-05-06 10:13:02 -05:00
Paul Culley
9e43f060d1
Add Media filter rule 'HasMedia' to list of media rules for editor ( #1182 )
...
Fixes #12212
2021-05-06 10:11:16 -05:00
romjerome
1b4ac9dc0b
typo on variable name
...
bug report 12039
contribution by zebulon
2021-04-13 09:06:15 +02:00
romjerome
c8fc88cfe7
Need to set locale.textdomain under linux ( #1198 )
...
_build_popup_ui() ignores translated strings without locale.textdomain set.
2021-04-13 08:53:04 +02:00
Matthias Kemmer
e7401f3aaa
Change category of 'MatchesEventFilter' ( #1130 )
2021-02-19 11:45:38 -06:00
Paul Culley
1a48e8a03e
Fix issue where separator between top and bottom bar of View creeps up. ( #1122 )
...
Fixes #11973
2021-02-19 11:44:32 -06:00
Paul Culley
9a4adab9d6
Fix Locations Gramplet (Enclosed by) to properly displaycertain nested places. ( #1127 )
...
when the smallest place has undated enclosure and larger places are dated.
Issue #11691
2021-02-19 11:32:33 -06:00
Paul Culley
bb0647274b
Fix Family Tree Manager drop error on Windows ( #1132 )
...
Fixes #10734
2021-02-19 11:31:43 -06:00
Paul Culley
f6bfb46fc0
Fix exportvcalendar error is "is not" with a literal (Python 3.8 issue) ( #1135 )
...
Fixes #12000
2021-02-19 11:31:06 -06:00
Serge Noiraud
b6fa5da8ee
Handle not found when copying source from the ( #1175 )
...
Citation tree
Fixes #12170
2021-02-19 11:25:02 -06:00
Paul Culley
14c2d0e1b6
DbLoader: Fix call to 'file' function, which doesn't exist in Python3 ( #1173 )
2021-02-19 11:23:47 -06:00
Paul Culley
226e8c549a
Fix write_lock_file exception when USERNAME is missing ( #1171 )
...
Fixes #12150
2021-02-19 11:23:06 -06:00
Paul Culley
d173809d8c
Fix EditPlace so Tab key doesn't get stuck on Private icon ( #1168 )
...
Fixes #12139
2021-02-19 11:22:35 -06:00
Paul Culley
63c52fa1bb
Fix Tag report for places that have a hierarchy. ( #1162 )
...
Fixes #12124
2021-02-19 11:21:11 -06:00
Paul Culley
455628d44a
Fix exception when cancelling out of a db upgrade in GUI ( #1154 )
...
Fixes #12063
2021-02-19 11:18:18 -06:00
Serge Noiraud
bfaab5645f
NarWeb: remove the note type 'Html code' for notes ( #1176 )
...
* NarWeb: remove the note type 'Html code' for notes
Fixes #12184
Html code has no real meaning for a common reader
* better pylint score
2021-02-13 17:40:17 +01:00