diff --git a/.gitignore b/.gitignore index b352b75de..6c8ea2853 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ *.pyc *.egg-info *.egg +*.mo *build/ .tox .coverage @@ -9,10 +10,15 @@ *.map .ropeproject/ .ruby-version +bin/ dist/ bower_components/ +include/ +lib/ +local/ node_modules npm-debug.log package-lock.json +pip-selfcheck.json sphinx_rtd_theme/static/fonts/Lato/ sphinx_rtd_theme/static/fonts/RobotoSlab/ diff --git a/.travis.yml b/.travis.yml index 2d14f2301..0069f3ea1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,7 @@ matrix: env: TOXENV=docs install: - pip install tox-travis + - pip install sphinx script: - tox diff --git a/MANIFEST.in b/MANIFEST.in index 1f40dd3bf..d73a81fe1 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,5 @@ include *.txt +include babel.cfg include LICENSE recursive-include sphinx_rtd_theme *.conf recursive-include sphinx_rtd_theme *.css @@ -9,5 +10,7 @@ recursive-include sphinx_rtd_theme *.svg recursive-include sphinx_rtd_theme *.ttf recursive-include sphinx_rtd_theme *.woff recursive-include sphinx_rtd_theme *.woff2 +recursive-include sphinx_rtd_theme/locale *.pot *.po *.mo recursive-include tests *.py recursive-include tests *.rst +prune build diff --git a/README.rst b/README.rst index 4cd77967c..6a5e73f49 100644 --- a/README.rst +++ b/README.rst @@ -5,7 +5,7 @@ Read the Docs Sphinx Theme .. image:: https://img.shields.io/pypi/v/sphinx_rtd_theme.svg :target: https://pypi.python.org/pypi/sphinx_rtd_theme - :alt: Pypi Version + :alt: Pypi Version .. image:: https://travis-ci.org/rtfd/sphinx_rtd_theme.svg?branch=master :target: https://travis-ci.org/rtfd/sphinx_rtd_theme :alt: Build Status @@ -52,3 +52,9 @@ Contributing If you would like to help improve the theme or have more control over the theme in case of a fork please read our contributing guide `here `__. + +Translations +------------ + +You can help to translate the Read the Docs Sphinx Theme, +please read the :doc:`translations ` guide for more details. diff --git a/babel.cfg b/babel.cfg new file mode 100644 index 000000000..a1339b8e7 --- /dev/null +++ b/babel.cfg @@ -0,0 +1,10 @@ +# How setup this file +# http://babel.pocoo.org/en/latest/setup.html +# this file description: +# http://babel.pocoo.org/en/latest/messages.html#extraction-method-mapping-and-configuration + +# Extraction from Jinja2 HTML templates +[jinja2: **/**.html] +encoding = utf-8 +ignore_tags = script,style +include_attrs = alt title summary placeholder diff --git a/docs/changelog.rst b/docs/changelog.rst index 8ad967293..e4ea00e35 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -2,12 +2,16 @@ Changelog ********* -master +Master ====== New Features ------------- +* Added Spanish translation +* Added i18n support using Babel +* Added Translation Guide documentation + Fixes ----- @@ -91,7 +95,7 @@ Fixes * Color accessibility improvements on the left navigation Other Changes --------------- +--------------- * Write theme version and build date at top of JavaScript and CSS * Changed code and literals to use a native font stack (#612) diff --git a/docs/conf.py b/docs/conf.py index 97d8e11fe..c98baad08 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -26,6 +26,7 @@ 'sphinx.ext.mathjax', 'sphinx.ext.viewcode', 'sphinxcontrib.httpdomain', + 'sphinx_rtd_theme', ] templates_path = ['_templates'] diff --git a/docs/index.rst b/docs/index.rst index ad690c1e7..fb804a55d 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -8,6 +8,7 @@ configuring changelog contributing + translations .. toctree:: diff --git a/docs/translations.rst b/docs/translations.rst new file mode 100644 index 000000000..2fc3956ae --- /dev/null +++ b/docs/translations.rst @@ -0,0 +1,192 @@ + +****************** +Translation Guide +****************** + +.. contents:: + +You can help to translate the Read the Docs Sphinx Theme. + +Installation +============ + +For translating the Read the Docs Sphinx Theme you will need to install the following packages: + +.. code:: bash + + $ pip install babel Jinja2 + +Translating Applications with Babel +----------------------------------- + +After you marked all the strings you want to translate in this Sphinx theme with the gettext function +alias ``_('str')`` or ``{% trans %}string 1, string 2, string 3, etc.{% endtrans %}`` blocks. + +Then it’s time to create a .pot file. A .pot file contains all the strings and is the template for a +.po file which contains the translated strings. The ``babel`` package can do all that for you. + +Configuration +============= + +For enable the *Internationalization and Localization* for this Sphinx Theme, you will need checkout +the following configurations: + +Translations files +------------------ + +The translations files are based on ``gettext`` format and they are placed at the +:file:`sphinx_rtd_theme/locale/` directory, like it showing the following structure: + +.. code:: bash + + sphinx_rtd_theme/locale/ + ├── es + │   └── LC_MESSAGES + │   ├── sphinx.mo + │   └── sphinx.po + └── sphinx.pot + +:file:`sphinx_rtd_theme/locale//LC_MESSAGES/` + This folder contains a specific language is the **Gettext format**. + +:file:`sphinx.pot` + This file is the **Portable Object Template** Gettext format. + +:file:`sphinx.po` + This file is the **Portable Object** Gettext format to translate. + +Babel Configurations +-------------------- + +The ``babel`` packages provides commands for integration into :file:`setup.py` scripts, based on either +the ``distutils`` package that is part of the Python standard library, or the third-party ``setuptools`` +package. + +Then :file:`setup.cfg` file simply configures the behavior of the various setup commands for this package. +This file contains the options that you can be specified on the command-line. The :file:`setup.cfg` file +at root folder of this Sphinx theme, look like the following: + +.. code:: cfg + + [bdist_wheel] + universal = 1 + + # Babel configurations for setup.py scripts + [compile_catalog] + domain = sphinx + directory = sphinx_rtd_theme/locale/ + + [extract_messages] + mapping_file = babel.cfg + output_file = sphinx_rtd_theme/locale/sphinx.pot + keywords = _ l_ lazy_gettext + + [init_catalog] + input_file = sphinx_rtd_theme/locale/sphinx.pot + output_file = sphinx_rtd_theme/locale/$LANG/LC_MESSAGES/sphinx.po + + [update_catalog] + domain = sphinx + input_file = sphinx_rtd_theme/locale/sphinx.pot + output_dir = sphinx_rtd_theme/locale/ + +If the command has been correctly installed or registered, a project's setup.py script should +allow you to use the following command: + +.. code:: bash + + $ python ./setup.py subcommand options + +Execute the follow command for more options and follow these instructions to get details: + +.. code:: bash + + $ python ./setup.py --help-commands + +Extraction Configurations +------------------------- + +First of all you have to get into the folder where you have your Sphinx theme and create a mapping file +called :file:`babel.cfg` that contains the **extraction from Jinja2 HTML templates** configurations. +For typical Sphinx extensions, this is what you want in there: + +.. code:: cfg + + # Extraction from Jinja2 HTML templates + [jinja2: **/**.html] + encoding = utf-8 + ignore_tags = script,style + include_attrs = alt title summary placeholder + + +.. seealso:: + + More details check out the following links: + + - `How setup this file `_ + - `A previous file example description `_ + +Administrative Tasks +==================== + +The ``babel`` package have a *Distutils/Setuptools Integration* which supports the options +defined in the :file:`setup.cfg` file that can be executed via command line. + +These options are the commonly using as **"Translations Administrative Tasks"** and the most +used tasks are described below: + +Extract messages +---------------- + +It can extract localizable messages from a variety of difference source files, +and generate a PO (portable object) template file from the collected messages. + +Running the following command will produce a PO template file: + +.. code:: bash + + $ python ./setup.py extract_messages -o ./sphinx_rtd_theme/locale/sphinx.pot + +.. tip:: + + More options please, check out http://babel.pocoo.org/en/latest/setup.html#extract-messages + +Init catalog +------------ + +It creates a new translation catalog based on a PO template file (POT). Running the following +command will produce a PO file: + +.. code:: bash + + $ python ./setup.py init_catalog -l es -i ./sphinx_rtd_theme/locale/sphinx.pot \ + -o ./sphinx_rtd_theme/locale/es/LC_MESSAGES/sphinx.po + +.. tip:: + + More options please, check out http://babel.pocoo.org/en/latest/setup.html#init-catalog + +Update catalog +-------------- + +It updates an existing translations catalog based on a PO template file (POT). Running the following +command will update a PO file: + +.. code:: bash + + $ python ./setup.py update_catalog -l es -i ./sphinx_rtd_theme/locale/sphinx.pot \ + -o ./sphinx_rtd_theme/locale/es/LC_MESSAGES/sphinx.po + +.. tip:: + + More options please, check out http://babel.pocoo.org/en/latest/setup.html#update-catalog + +Compile catalog +--------------- + +It compile catalog an existing translations based on PO files into MO files. Running the following +command will compile catalog of PO files: + +.. code:: bash + + $ python ./setup.py compile_catalog -d ./sphinx_rtd_theme/locale/ diff --git a/setup.cfg b/setup.cfg index 2a9acf13d..b8d961346 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,2 +1,22 @@ [bdist_wheel] universal = 1 + +# Babel configurations for setup.py scripts +# http://babel.pocoo.org/en/latest/setup.html +[extract_messages] +mapping_file = babel.cfg +output_file = sphinx_rtd_theme/locale/sphinx.pot +keywords = _ l_ lazy_gettext + +[init_catalog] +input_file = sphinx_rtd_theme/locale/sphinx.pot +output_file = sphinx_rtd_theme/locale/$LANG/LC_MESSAGES/sphinx.po + +[update_catalog] +domain = sphinx +input_file = sphinx_rtd_theme/locale/sphinx.pot +output_dir = sphinx_rtd_theme/locale/ + +[compile_catalog] +domain = sphinx +directory = sphinx_rtd_theme/locale/ diff --git a/sphinx_rtd_theme/__init__.py b/sphinx_rtd_theme/__init__.py index b96b5fc0f..ad12911dc 100644 --- a/sphinx_rtd_theme/__init__.py +++ b/sphinx_rtd_theme/__init__.py @@ -4,6 +4,7 @@ """ from os import path +import sphinx __version__ = '0.4.3.dev0' @@ -19,3 +20,11 @@ def get_html_theme_path(): # See http://www.sphinx-doc.org/en/stable/theming.html#distribute-your-theme-as-a-python-package def setup(app): app.add_html_theme('sphinx_rtd_theme', path.abspath(path.dirname(__file__))) + + # for sphinx-1.8 or later + if sphinx.version_info[0:3] >= (1,8,0): + + rtd_locale_path = path.join(path.abspath(path.dirname(__file__)), 'locale') + + # See http://www.sphinx-doc.org/en/master/extdev/appapi.html#sphinx.application.Sphinx.add_message_catalog + app.add_message_catalog('sphinx', rtd_locale_path) diff --git a/sphinx_rtd_theme/breadcrumbs.html b/sphinx_rtd_theme/breadcrumbs.html index 5578b619c..f7e921e90 100644 --- a/sphinx_rtd_theme/breadcrumbs.html +++ b/sphinx_rtd_theme/breadcrumbs.html @@ -71,10 +71,10 @@ {% if (theme_prev_next_buttons_location == 'top' or theme_prev_next_buttons_location == 'both') and (next or prev) %} {% endif %} diff --git a/sphinx_rtd_theme/footer.html b/sphinx_rtd_theme/footer.html index 80815bd94..889578828 100644 --- a/sphinx_rtd_theme/footer.html +++ b/sphinx_rtd_theme/footer.html @@ -16,25 +16,24 @@

{%- if show_copyright %} {%- if hasdoc('copyright') %} - {% trans path=pathto('copyright'), copyright=copyright|e %}© Copyright {{ copyright }}{% endtrans %} + {% set path = pathto('copyright') %} + {% set copyright = copyright|e %} + © {% trans %}Copyright{% endtrans %} {{ copyright }} {%- else %} - {% trans copyright=copyright|e %}© Copyright {{ copyright }}{% endtrans %} + {% set copyright = copyright|e %} + © {% trans %}Copyright{% endtrans %} {{ copyright }} {%- endif %} {%- endif %} {%- if build_id and build_url %} - {% trans build_url=build_url, build_id=build_id %} - - Build - {{ build_id }}. - - {% endtrans %} + + {% trans %}Build{% endtrans %} + {{ build_id }}. + {%- elif commit %} - {% trans commit=commit %} - - Revision {{ commit }}. - - {% endtrans %} + + {% trans %}Revision{% endtrans %} {{ commit }}. + {%- elif last_updated %} {% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %} @@ -45,7 +44,9 @@ {%- if show_sphinx %} - {% trans %}Built with Sphinx using a theme provided by Read the Docs{% endtrans %}. + {% set sphinx_web = 'Sphinx' %} + {% set readthedocs_web = 'Read the Docs' %} + {% trans sphinx_web=sphinx_web, readthedocs_web=readthedocs_web %}Built with {{ sphinx_web }} using a{% endtrans %} {% trans %}theme{% endtrans %} {% trans %}provided by {{ readthedocs_web }}{% endtrans %}. {%- endif %} {%- block extrafooter %} {% endblock %} diff --git a/sphinx_rtd_theme/layout.html b/sphinx_rtd_theme/layout.html index cd50ca774..4e89655a5 100644 --- a/sphinx_rtd_theme/layout.html +++ b/sphinx_rtd_theme/layout.html @@ -121,7 +121,7 @@ {# Not strictly valid HTML, but it's the only way to display/scale it properly, without weird scripting or heaps of work #} - + {% endif %} diff --git a/sphinx_rtd_theme/locale/es/LC_MESSAGES/sphinx.po b/sphinx_rtd_theme/locale/es/LC_MESSAGES/sphinx.po new file mode 100644 index 000000000..74ee6758f --- /dev/null +++ b/sphinx_rtd_theme/locale/es/LC_MESSAGES/sphinx.po @@ -0,0 +1,145 @@ +# Spanish translations for sphinx_rtd_theme. +# Copyright (C) 2018 Read the Docs +# This file is distributed under the same license as the sphinx_rtd_theme +# project. +# Leonardo J. Caballero G. , 2017, 2018. +msgid "" +msgstr "" +"Project-Id-Version: sphinx_rtd_theme 0.3.0\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2018-04-18 17:43-0400\n" +"PO-Revision-Date: 2018-04-30 23:31-0400\n" +"Last-Translator: Leonardo J. Caballero G. \n" +"Language: es\n" +"Language-Team: es\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.5.3\n" + +#: sphinx_rtd_theme/breadcrumbs.html:31 +msgid "Docs" +msgstr "Documentos" + +#: sphinx_rtd_theme/breadcrumbs.html:43 sphinx_rtd_theme/breadcrumbs.html:45 +msgid "Edit on GitHub" +msgstr "Editar en GitHub" + +#: sphinx_rtd_theme/breadcrumbs.html:50 sphinx_rtd_theme/breadcrumbs.html:52 +msgid "Edit on Bitbucket" +msgstr "Editar en Bitbucket" + +#: sphinx_rtd_theme/breadcrumbs.html:57 sphinx_rtd_theme/breadcrumbs.html:59 +msgid "Edit on GitLab" +msgstr "Editar en GitLab" + +#: sphinx_rtd_theme/breadcrumbs.html:62 sphinx_rtd_theme/breadcrumbs.html:64 +msgid "View page source" +msgstr "Ver página de código fuente" + +#: sphinx_rtd_theme/breadcrumbs.html:74 sphinx_rtd_theme/footer.html:5 +msgid "Next" +msgstr "Siguiente" + +#: sphinx_rtd_theme/breadcrumbs.html:77 sphinx_rtd_theme/footer.html:8 +msgid "Previous" +msgstr "Anterior" + +#: sphinx_rtd_theme/footer.html:21 sphinx_rtd_theme/footer.html:24 +#: sphinx_rtd_theme/layout.html:70 +msgid "Copyright" +msgstr "Derechos de autor" + +#: sphinx_rtd_theme/footer.html:30 +msgid "Build" +msgstr "Construido" + +#: sphinx_rtd_theme/footer.html:35 +msgid "Revision" +msgstr "Revisión" + +#: sphinx_rtd_theme/footer.html:38 +#, python-format +msgid "Last updated on %(last_updated)s." +msgstr "Actualizado por última vez en %(last_updated)s." + +#: sphinx_rtd_theme/footer.html:47 +#, python-format +msgid "Built with %(sphinx_web)s using a" +msgstr "Construido con %(sphinx_web)s usando un" + +#: sphinx_rtd_theme/footer.html:47 +msgid "theme" +msgstr "tema" + +#: sphinx_rtd_theme/footer.html:47 +#, python-format +msgid "provided by %(readthedocs_web)s" +msgstr "proporcionado por %(readthedocs_web)s" + +#: sphinx_rtd_theme/layout.html:37 +#, python-format +msgid "Search within %(docstitle)s" +msgstr "Buscar en %(docstitle)s" + +#: sphinx_rtd_theme/layout.html:61 +msgid "About these documents" +msgstr "Sobre esta documentación" + +#: sphinx_rtd_theme/layout.html:64 +msgid "Index" +msgstr "Índice" + +#: sphinx_rtd_theme/layout.html:67 sphinx_rtd_theme/search.html:11 +msgid "Search" +msgstr "Búsqueda" + +#: sphinx_rtd_theme/layout.html:107 +msgid "Logo" +msgstr "Logotipo" + +#: sphinx_rtd_theme/search.html:26 +msgid "Please activate JavaScript to enable the search functionality." +msgstr "Por favor, active JavaScript para habilitar la funcionalidad de búsqueda." + +#: sphinx_rtd_theme/search.html:33 +msgid "Search Results" +msgstr "Resultados de la búsqueda" + +#: sphinx_rtd_theme/search.html:35 +msgid "" +"Your search did not match any documents. Please make sure that all words " +"are spelled correctly and that you've selected enough categories." +msgstr "" +"Su búsqueda no coincide con ningún documentos. Por favor, asegúrese de " +"que todas las palabras estén correctamente escritas y que usted allá " +"seleccionado las suficientes categorías." + +#: sphinx_rtd_theme/searchbox.html:4 +msgid "Search docs" +msgstr "Buscar documentos" + +#: sphinx_rtd_theme/versions.html:11 +msgid "Versions" +msgstr "Versiones" + +#: sphinx_rtd_theme/versions.html:17 +msgid "Downloads" +msgstr "Descargas" + +#: sphinx_rtd_theme/versions.html:23 +msgid "On Read the Docs" +msgstr "En Read the Docs" + +#: sphinx_rtd_theme/versions.html:25 +msgid "Project Home" +msgstr "Página de Proyecto" + +#: sphinx_rtd_theme/versions.html:28 +msgid "Builds" +msgstr "Construcciones" + +#: sphinx_rtd_theme/versions.html:32 +msgid "Free document hosting provided by" +msgstr "Alojamiento gratuito de documentos proporcionado por" diff --git a/sphinx_rtd_theme/locale/sphinx.pot b/sphinx_rtd_theme/locale/sphinx.pot new file mode 100644 index 000000000..53ea24257 --- /dev/null +++ b/sphinx_rtd_theme/locale/sphinx.pot @@ -0,0 +1,143 @@ +# Translations template for sphinx_rtd_theme. +# Copyright (C) 2018 ORGANIZATION +# This file is distributed under the same license as the sphinx_rtd_theme +# project. +# FIRST AUTHOR , 2018. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: sphinx_rtd_theme 0.3.0\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2018-04-18 17:43-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.5.3\n" + +#: sphinx_rtd_theme/breadcrumbs.html:31 +msgid "Docs" +msgstr "" + +#: sphinx_rtd_theme/breadcrumbs.html:43 sphinx_rtd_theme/breadcrumbs.html:45 +msgid "Edit on GitHub" +msgstr "" + +#: sphinx_rtd_theme/breadcrumbs.html:50 sphinx_rtd_theme/breadcrumbs.html:52 +msgid "Edit on Bitbucket" +msgstr "" + +#: sphinx_rtd_theme/breadcrumbs.html:57 sphinx_rtd_theme/breadcrumbs.html:59 +msgid "Edit on GitLab" +msgstr "" + +#: sphinx_rtd_theme/breadcrumbs.html:62 sphinx_rtd_theme/breadcrumbs.html:64 +msgid "View page source" +msgstr "" + +#: sphinx_rtd_theme/breadcrumbs.html:74 sphinx_rtd_theme/footer.html:5 +msgid "Next" +msgstr "" + +#: sphinx_rtd_theme/breadcrumbs.html:77 sphinx_rtd_theme/footer.html:8 +msgid "Previous" +msgstr "" + +#: sphinx_rtd_theme/footer.html:21 sphinx_rtd_theme/footer.html:24 +#: sphinx_rtd_theme/layout.html:70 +msgid "Copyright" +msgstr "" + +#: sphinx_rtd_theme/footer.html:30 +msgid "Build" +msgstr "" + +#: sphinx_rtd_theme/footer.html:35 +msgid "Revision" +msgstr "" + +#: sphinx_rtd_theme/footer.html:38 +#, python-format +msgid "Last updated on %(last_updated)s." +msgstr "" + +#: sphinx_rtd_theme/footer.html:47 +#, python-format +msgid "Built with %(sphinx_web)s using a" +msgstr "" + +#: sphinx_rtd_theme/footer.html:47 +msgid "theme" +msgstr "" + +#: sphinx_rtd_theme/footer.html:47 +#, python-format +msgid "provided by %(readthedocs_web)s" +msgstr "" + +#: sphinx_rtd_theme/layout.html:37 +#, python-format +msgid "Search within %(docstitle)s" +msgstr "" + +#: sphinx_rtd_theme/layout.html:61 +msgid "About these documents" +msgstr "" + +#: sphinx_rtd_theme/layout.html:64 +msgid "Index" +msgstr "" + +#: sphinx_rtd_theme/layout.html:67 sphinx_rtd_theme/search.html:11 +msgid "Search" +msgstr "" + +#: sphinx_rtd_theme/layout.html:107 +msgid "Logo" +msgstr "" + +#: sphinx_rtd_theme/search.html:26 +msgid "Please activate JavaScript to enable the search functionality." +msgstr "" + +#: sphinx_rtd_theme/search.html:33 +msgid "Search Results" +msgstr "" + +#: sphinx_rtd_theme/search.html:35 +msgid "" +"Your search did not match any documents. Please make sure that all words " +"are spelled correctly and that you've selected enough categories." +msgstr "" + +#: sphinx_rtd_theme/searchbox.html:4 +msgid "Search docs" +msgstr "" + +#: sphinx_rtd_theme/versions.html:11 +msgid "Versions" +msgstr "" + +#: sphinx_rtd_theme/versions.html:17 +msgid "Downloads" +msgstr "" + +#: sphinx_rtd_theme/versions.html:23 +msgid "On Read the Docs" +msgstr "" + +#: sphinx_rtd_theme/versions.html:25 +msgid "Project Home" +msgstr "" + +#: sphinx_rtd_theme/versions.html:28 +msgid "Builds" +msgstr "" + +#: sphinx_rtd_theme/versions.html:32 +msgid "Free document hosting provided by" +msgstr "" + diff --git a/sphinx_rtd_theme/search.html b/sphinx_rtd_theme/search.html index e3aa9b5c6..16bef015e 100644 --- a/sphinx_rtd_theme/search.html +++ b/sphinx_rtd_theme/search.html @@ -23,7 +23,7 @@

- {% trans %}Please activate JavaScript to enable the search + {% trans trimmed %}Please activate JavaScript to enable the search functionality.{% endtrans %}

diff --git a/sphinx_rtd_theme/versions.html b/sphinx_rtd_theme/versions.html index 4d78287ad..ef92ba592 100644 --- a/sphinx_rtd_theme/versions.html +++ b/sphinx_rtd_theme/versions.html @@ -29,7 +29,7 @@
- {% trans %}Free document hosting provided by Read the Docs.{% endtrans %} + {% trans %}Free document hosting provided by{% endtrans %} Read the Docs.