From 98380d75bd1054d2e79578ae3f1d191e13d9aa68 Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Wed, 12 Apr 2023 17:13:27 +0200 Subject: [PATCH] Avoid error about _TranslationProxy This has been introduced in https://github.com/sphinx-doc/sphinx/pull/10949 --- src/sphinx_last_updated_by_git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sphinx_last_updated_by_git.py b/src/sphinx_last_updated_by_git.py index 634e633..53e6acc 100644 --- a/src/sphinx_last_updated_by_git.py +++ b/src/sphinx_last_updated_by_git.py @@ -249,7 +249,7 @@ def _html_page_context(app, pagename, templatename, context, doctree): utc_date = datetime.fromtimestamp(int(timestamp), timezone.utc) date = utc_date.astimezone(app.config.git_last_updated_timezone) context['last_updated'] = format_date( - lufmt or _('%b %d, %Y'), + lufmt or str(_('%b %d, %Y')), date=date, language=app.config.language)