diff --git a/Doc/tools/templates/dummy.html b/Doc/tools/templates/dummy.html
index 0fdbe2a58017ff..75f6607d8f3698 100644
--- a/Doc/tools/templates/dummy.html
+++ b/Doc/tools/templates/dummy.html
@@ -27,8 +27,8 @@
In extensions/changes.py:
-{% trans %}Deprecated since version {deprecated}, will be removed in version {removed}{% endtrans %}
-{% trans %}Deprecated since version {deprecated}, removed in version {removed}{% endtrans %}
+{% trans %}Deprecated since version %s, will be removed in version %s{% endtrans %}
+{% trans %}Deprecated since version %s, removed in version %s{% endtrans %}
In docsbuild-scripts, when rewriting indexsidebar.html with actual versions: