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
This commit is contained in:
parent
4697de789c
commit
8f910a8750
@ -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()
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user