From 7a7441d13b93999fdd3c2f4ba82865806c50790f Mon Sep 17 00:00:00 2001 From: Anthony Johnson Date: Mon, 16 Aug 2021 19:09:05 -0600 Subject: [PATCH] Make ARIA labels more verbose and easier to translate Translators pointed out how the ARIA labels weren't descriptive, especially because the translators don't have the same context around the strings and HTML structure. I added some translator context, so transifex can at least describe what the string is used for, but also updated some of the strings to be more descriptive. I dropped "breadcrumb" because it's colloquial language that almost certainly won't translate well. --- sphinx_rtd_theme/breadcrumbs.html | 6 ++++-- sphinx_rtd_theme/footer.html | 1 + sphinx_rtd_theme/layout.html | 6 ++++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/sphinx_rtd_theme/breadcrumbs.html b/sphinx_rtd_theme/breadcrumbs.html index 722e266b..005b2ecd 100644 --- a/sphinx_rtd_theme/breadcrumbs.html +++ b/sphinx_rtd_theme/breadcrumbs.html @@ -18,7 +18,8 @@ {%- set display_vcs_links = display_vcs_links if display_vcs_links is defined else True %} -
+{#- Translators: This is an ARIA section label for page links, including previous/next page link and links to GitHub/GitLab/etc. -#} +
    {%- block breadcrumbs %}
  • »
  • @@ -62,7 +63,8 @@
{%- if (theme_prev_next_buttons_location == 'top' or theme_prev_next_buttons_location == 'both') and (next or prev) %} -