diff --git a/gramps/gen/config.py b/gramps/gen/config.py index 840a4b70e..5bf0fd468 100644 --- a/gramps/gen/config.py +++ b/gramps/gen/config.py @@ -142,6 +142,7 @@ register('behavior.date-before-range', 50) register('behavior.generation-depth', 15) register('behavior.ignore-gexiv2', False) register('behavior.ignore-osmgpsmap', False) +register('behavior.ignore-spellcheck', False) register('behavior.max-age-prob-alive', 110) register('behavior.max-sib-age-diff', 20) register('behavior.min-generation-years', 13) diff --git a/gramps/gui/configure.py b/gramps/gui/configure.py index 3ae58f26d..5b1fe09a5 100644 --- a/gramps/gui/configure.py +++ b/gramps/gui/configure.py @@ -617,6 +617,10 @@ class GrampsPreferences(ConfigureDialog): table, _('Suppress warning when GExiv2 not installed.'), 5, 'behavior.ignore-gexiv2') + self.add_checkbox( + table, _('Suppress warning when spell checking not installed.'), + 6, 'behavior.ignore-spellcheck') + return _('Warnings'), table def _build_name_format_model(self, active): diff --git a/gramps/gui/spell.py b/gramps/gui/spell.py index 8f7a5f34c..bfa24c60d 100644 --- a/gramps/gui/spell.py +++ b/gramps/gui/spell.py @@ -70,13 +70,6 @@ elif repository.enumerate_versions("Gtkspell"): except: pass -if not HAVE_GTKSPELL: - LOG.warning(_("GtkSpell not loaded. " - "Spell checking will not be available.\n" - "To build it for Gramps see http://www.gramps-project.org/" - "wiki/index.php?title=GEPS_029:_GTK3-GObject_introspection_" - "Conversion#Spell_Check_Install")) - #------------------------------------------------------------------------- # # GRAMPS classes @@ -84,6 +77,13 @@ if not HAVE_GTKSPELL: #------------------------------------------------------------------------- from gramps.gen.config import config +if (not config.get('behavior.ignore-spellcheck')) and (not HAVE_GTKSPELL): + LOG.warning(_("GtkSpell not loaded. " + "Spell checking will not be available.\n" + "To build it for Gramps see http://www.gramps-project.org/" + "wiki/index.php?title=GEPS_029:_GTK3-GObject_introspection_" + "Conversion#Spell_Check_Install")) + #------------------------------------------------------------------------- # # Constants