Add message if addon has wrong version.

svn: r14711
This commit is contained in:
Peter Landgren 2010-03-09 12:51:18 +00:00
parent 4c28226a3f
commit a8da4bf460

View File

@ -569,6 +569,11 @@ class PluginStatus(ManagedWindow.ManagedWindow):
# If this version is not installed, or > installed, install it # If this version is not installed, or > installed, install it
good_gpr.add(gpr_file) good_gpr.add(gpr_file)
callback(" " + (_("'%s' is for this version of Gramps.") % gpr_file) + "\n") callback(" " + (_("'%s' is for this version of Gramps.") % gpr_file) + "\n")
else:
# If the plugin is for another version; inform and do nothing
callback(" " + (_("'%s' is for NOT this version of Gramps.") % gpr_file) + "\n")
callback(" " + (_("It is for version %d.%d" % vtup) + "\n"))
continue
else: else:
# another register function doesn't have gramps_target_version # another register function doesn't have gramps_target_version
if gpr_file in good_gpr: if gpr_file in good_gpr: