4811 Commits

Author SHA1 Message Date
John Ralls
354e191ea0 Grampslocale: Fix minor PyLint complaints.
Short/duplicate variable names, missing docstrings, gratuitous
semicolons, excess returns, etc.
2023-07-17 20:52:32 +01:00
John Ralls
a89faa85e0 Grampslocale: Fix PyLint complaints about import statements.
Or comment ones that can't be fixed because their placement is to
prevent circular imports.
2023-07-17 20:52:31 +01:00
John Ralls
d5dd8d698c Remove deprecated functions locale.getdefaultlocale and locale.format.
Remove also GrampsLocale.format because it was there only to mirror
locale's API, and update GrampsLocale.format_string's signature to
match locale.format_string's post-python3.7.
2023-07-17 20:52:31 +01:00
John Ralls
7f8455c867 Extract translation classes from grampslocale.py
For name clarity and to reduce the line count in grampslocale.py that
Pylint thinks is excessive.
2023-07-17 20:52:31 +01:00
John Ralls
48d4196739 Locale: Correct remaining pylint issues in maclocale.py. 2023-07-17 20:52:31 +01:00
John Ralls
e3a2797a33 Locale: Fix shadowed variables. 2023-07-17 20:52:31 +01:00
John Ralls
4bd5523e1b Locale: Fix unnecessary parens. 2023-07-17 20:52:31 +01:00
John Ralls
5dff2a65df Locale: Fix unused variables. 2023-07-17 20:52:31 +01:00
John Ralls
e4ece434d1 Locale: Fix pylint line-too-long 2023-07-17 20:52:30 +01:00
Nick Hall
fc61347b41 Fix garbage collection issue in Callback 2023-07-15 22:05:21 +01:00
SNoiraud
218d752920 SrcAttribute object has no attribute has_citations
Fixes #012599
2023-07-15 00:20:00 +01:00
SNoiraud
c7b1a23441 Make the tab columns resizable: PersistentTreeView
Implements #8767
2023-07-15 00:05:36 +01:00
Nick Hall
37395da262 Avoid signal warning during editor clean up
The signal no longer exists to disconnect from at this point.
2023-07-14 22:02:02 +01:00
Nick Hall
934793a0f9 Fix garbage collection issue in UIManager 2023-07-14 21:47:29 +01:00
Nick Hall
8dab5bc71d Save and restore standard streams
This is preferred over using sys.__stdout__ and sys.__stderr__
to return sys.stdout and sys.stderr to their original values.
2023-07-14 21:31:09 +01:00
Nick Hall
1f5dd216bf Close standard streams on exit
Prevents the warning: "ResourceWarning: unclosed file"
2023-07-14 21:31:09 +01:00
André Apitzsch
6ef80b8d50 grampslocale: Remove unused numeric 2023-07-13 22:26:19 +01:00
André Apitzsch
2accc585f3 grampslocale: Remove unused currency 2023-07-13 22:26:19 +01:00
Olivier Berten
53d32945d4 Color values in the range [0-1] are supposed to be floats
See rgb_to_hex
2023-07-13 22:17:03 +01:00
Nick Hall
cbb0ed1bba Fix date modifiers for ru 2023-07-13 22:03:37 +01:00
Nick Hall
9079eb718a Fix date modifiers for fi 2023-07-12 21:50:58 +01:00
Nick Hall
0f52fdc560 Fix date modifiers for es 2023-07-12 17:48:20 +01:00
Nick Hall
f69f01157b Weblate translator requested updates to source strings 2023-07-12 15:58:50 +01:00
Nick Hall
63abb0a7af Fix date modifiers for de, nl and sv 2023-07-11 22:23:42 +01:00
André Apitzsch
5df562d302 Port from GtkSpell to Gspell 2023-07-11 22:03:15 +01:00
Nick Hall
1d920b6c89 Fix Portuguese "from" and "to" date modifiers 2023-07-11 21:26:26 +01:00
Nick Hall
70265c3a94 Add extra plugin properties
* Add 'Experimental' and 'Beta' status options.
* Add audience property with possible values:
  'All', 'Developer' and 'Expert'.
* Add maintainers and maintainers email properties.
* Add requires_mod, requires_gi and requires_exe properties to
  specify addon requirements.
* Allow help url for all plugin types.
2023-07-10 20:59:44 +01:00
Bruce Jackson
9257d6de0b Add namespace to metadata table 2023-07-04 22:59:57 +01:00
Bruce Jackson
35306bc68c Image Metadata Gramplet expand metadata support
- Enable showing XMP and IPTC metadata,
- Add additional metadata fields that contain tags and text descriptions.
- Display thumbnails for XMP-mwg-rs Regions
2023-07-04 22:35:02 +01:00
Jan Skarvall
70520be80c Add support for open spans 2023-07-04 20:37:42 +01:00
Nick Hall
1af35153d9 Add strikethrough and superscript/subscript support 2023-07-04 16:56:54 +01:00
Nick Hall
06446a4ba9 Add new gender option of "Other" 2023-07-03 18:32:43 +01:00
Nick Hall
b33c94a0d2 Replace import removed in error 2023-07-03 15:09:14 +01:00
Nick Hall
53bfeb66ca Remove redundant code since Gtk 3.24 required 2023-07-02 23:54:23 +01:00
Daniel Norton
2b4a84b2c5 Update Creative Commons license version to 4.0 2023-07-02 23:28:04 +01:00
Allan Nordhøy
bcd72f136d Correct spelling of "vCard" in importer 2023-07-02 23:09:04 +01:00
André Apitzsch
08e9101089 Support XDG base directory specification
Fixes #8025
2023-07-02 22:32:07 +01:00
André Apitzsch
21e94dec99 Geography: Use path from constants 2023-07-02 22:19:21 +01:00
André Apitzsch
8b0e5dac6f Remove unused constant ENV_DIR 2023-07-02 22:09:31 +01:00
Nick Hall
21c7952dc8 Add option to hide ages for events after death 2023-07-01 23:40:48 +01:00
Nick Hall
6eedf4a142 Use ObjEntry to select a person as an association
Uses existing code to make the user interface consistent with
similar object selections.

Adds person add and remove buttons.
2023-07-01 23:32:02 +01:00
Matthias Balk
d830918289 Calendar report enhancements
* Added symbols for birth, marriage and death
* Added symbols for dead spouse in anniversaries
* Optionally include death dates
* Refactored method `collect_data`
2023-07-01 23:13:46 +01:00
Nick Hall
b23a2138b0 Increase minimum version requirements for Python and Gtk
Python: 3.8
Gtk: 3.24
2023-07-01 22:54:00 +01:00
Nick Hall
b41969c4c2 Merge branch 'gramps51' 2023-06-28 22:45:00 +01:00
SNoiraud
e40b727a57 Narrative web: problem with small pictures.
Fixes #012884
2023-06-28 21:50:08 +01:00
SNoiraud
160d5952f2 Implement the "<CTRL>J" for the family view
Fixes #012882
2023-06-28 21:42:08 +01:00
Jon Schewe
482199d29c Avoid application crash on invalid user input
If the user inputs an invalid date this change keeps the application
from crashing when such a date is found. The invalid date
information is reported to the user in the log.

Fixes #12658.
2023-06-28 20:58:37 +01:00
Nick Hall
bfa7c0c9f4 Fix export where private citations are excluded 2023-06-28 19:05:25 +01:00
SNoiraud
e5ec6bd7c9 Add option to control display format of Lat/Lon
Add an option in the preferences diplay tab for views.
Add the possibility to select a different choice in the reports.

Fixes : #11248
2023-05-22 14:30:47 +02:00
prculley
614332aac8 Fix Event compare tool to display enclosed places properly 2023-05-14 22:50:01 +01:00