diff --git a/qgis-app/plugins/templatetags/plugin_utils.py b/qgis-app/plugins/templatetags/plugin_utils.py index 22ef9ccb..9eb8fbec 100755 --- a/qgis-app/plugins/templatetags/plugin_utils.py +++ b/qgis-app/plugins/templatetags/plugin_utils.py @@ -12,10 +12,15 @@ def klass(ob): def plugin_title(context): """Returns plugin name for title""" title = "" + + if "title" in context: + title = context["title"] if "plugin" in context: title = context["plugin"].name if "version" in context: title = "{plugin} {version}".format( plugin=context["version"].plugin.name, version=context["version"].version ) + if "page_title" in context: + title = context["page_title"] return title diff --git a/qgis-app/plugins/views.py b/qgis-app/plugins/views.py index dc48a7a1..0d671d46 100644 --- a/qgis-app/plugins/views.py +++ b/qgis-app/plugins/views.py @@ -689,6 +689,7 @@ def get_context_data(self, **kwargs): context.update( { "title": _("Plugins tagged with: %s") % unquote(self.kwargs["tags"]), + "page_title": _("Tag: %s") % unquote(self.kwargs["tags"]) } ) return context