From 8f910a87501343af8119b40598fda13fc350a00f Mon Sep 17 00:00:00 2001 From: Tim G L Lyons Date: Fri, 1 Mar 2013 17:57:53 +0000 Subject: [PATCH] 0003428: When running with pythonw.exe, Windows may crash if you write to stdout. Some more print statements changed to log.warning. Using same message as rev 21505 for gramps40. svn: r21513 --- src/Relationship.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Relationship.py b/src/Relationship.py index d2e08dca8..78576c0fc 100644 --- a/src/Relationship.py +++ b/src/Relationship.py @@ -29,6 +29,13 @@ Classes for relationships. #------------------------------------------------------------------------- import os +#------------------------------------------------------------------------- +# +# set up logging +# +#------------------------------------------------------------------------- +import logging + #------------------------------------------------------------------------- # # GRAMPS modules @@ -1843,8 +1850,7 @@ def get_relationship_calculator(reinit=False): break if not relation_translation_found and \ len(PluginRegister.get_instance().relcalc_plugins()): - print (("No translation available for language '%s'. " + - "Using 'english' instead.") % enlang) + logging.warning(_("Family relationship translator not available for language '%s'. Using 'english' instead.") % enlang) return __RELCALC_CLASS() #-------------------------------------------------------------------------