From caa33732973ad2b9bf78aa3668f3e4ccb9627ca5 Mon Sep 17 00:00:00 2001 From: Anthony Johnson Date: Tue, 16 Jul 2019 20:27:16 -0600 Subject: [PATCH 01/12] Continuation of adding translations to theme This builds on top of #405, addressing the outstanding review feedback. It: * Moves workflow to our standard Transifex workflow, drops recommendation for running babel commands by hand * Configures Transifex * Moves all of the commands needed to maintain translations into Grunt * Sets up docs for translation testing * Covers installation in docs better * Drops recommendation for installation through submodules * Drops superfluous translation documentation * Cleans up some of the code * Updates a lot of related documentation * Updates files at Transifex and brings in full translations back to the translation files in the repository --- .gitignore | 1 - .tx/config | 8 + Gruntfile.js | 48 ++++- README.rst | 62 +++--- docs/changelog.rst | 8 +- docs/conf.py | 5 +- docs/contributing.rst | 116 ++++++----- docs/index.rst | 9 +- docs/installing.rst | 25 +-- docs/translations.rst | 192 ------------------ setup.cfg | 6 +- sphinx_rtd_theme/__init__.py | 14 +- .../locale/en/LC_MESSAGES/sphinx.mo | Bin 0 -> 2123 bytes .../locale/en/LC_MESSAGES/sphinx.po | 145 +++++++++++++ .../locale/es/LC_MESSAGES/sphinx.mo | Bin 0 -> 2369 bytes .../locale/es/LC_MESSAGES/sphinx.po | 60 +++--- .../locale/ru/LC_MESSAGES/sphinx.mo | Bin 0 -> 2311 bytes .../locale/ru/LC_MESSAGES/sphinx.po | 148 ++++++++++++++ sphinx_rtd_theme/locale/sphinx.pot | 39 ++-- sphinx_rtd_theme/versions.html | 1 + 20 files changed, 539 insertions(+), 348 deletions(-) create mode 100644 .tx/config delete mode 100644 docs/translations.rst create mode 100644 sphinx_rtd_theme/locale/en/LC_MESSAGES/sphinx.mo create mode 100644 sphinx_rtd_theme/locale/en/LC_MESSAGES/sphinx.po create mode 100644 sphinx_rtd_theme/locale/es/LC_MESSAGES/sphinx.mo create mode 100644 sphinx_rtd_theme/locale/ru/LC_MESSAGES/sphinx.mo create mode 100644 sphinx_rtd_theme/locale/ru/LC_MESSAGES/sphinx.po diff --git a/.gitignore b/.gitignore index 6c8ea2853..584ecb32e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,6 @@ *.pyc *.egg-info *.egg -*.mo *build/ .tox .coverage diff --git a/.tx/config b/.tx/config new file mode 100644 index 000000000..4d44c809b --- /dev/null +++ b/.tx/config @@ -0,0 +1,8 @@ +[sphinx-rtd-theme.sphinx-rtd-theme] +file_filter = sphinx_rtd_theme/locale//LC_MESSAGES/sphinx.po +source_file = sphinx_rtd_theme/locale/en/LC_MESSAGES/sphinx.po +source_lang = en + +[main] +host = https://www.transifex.com +type = PO diff --git a/Gruntfile.js b/Gruntfile.js index 570abd245..325e6f387 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -140,7 +140,22 @@ module.exports = function(grunt) { cmd: 'bower update' }, build_sphinx: { - cmd: 'sphinx-build docs/ docs/build' + cmd: function (locale) { + locale = (typeof locale !== 'undefined') ? locale : 'en'; + return 'sphinx-build -D language=' + locale + ' docs/ docs/build/html' + } + }, + babel_extract: { + cmd: 'python setup.py extract_messages' + }, + babel_compile: { + cmd: 'python setup.py compile_catalog' + }, + tx_pull: { + cmd: 'tx pull' + }, + tx_push: { + cmd: 'tx push --source' } }, clean: { @@ -184,6 +199,33 @@ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-open'); grunt.loadNpmTasks('grunt-browserify'); - grunt.registerTask('default', ['exec:bower_update','clean','copy:fonts','sass:dev','browserify:dev','usebanner','exec:build_sphinx','connect','open','watch']); - grunt.registerTask('build', ['exec:bower_update','clean','copy:fonts','sass:build','browserify:build','uglify','usebanner','exec:build_sphinx']); + grunt.registerTask('default', [ + 'exec:bower_update', + 'clean', + 'copy:fonts', + 'sass:dev', + 'browserify:dev', + 'usebanner', + 'exec:build_sphinx', + 'connect', + 'open', + 'watch' + ]); + grunt.registerTask('build', [ + 'exec:bower_update', + 'clean', + 'copy:fonts', + 'sass:build', + 'browserify:build', + 'uglify', + 'usebanner', + 'exec:build_sphinx' + ]); + grunt.registerTask('i18n', [ + 'exec:babel_extract', + 'exec:tx_push', + 'exec:tx_pull', + 'exec:babel_compile', + 'exec:build_sphinx:es' + ]); } diff --git a/README.rst b/README.rst index 6a5e73f49..779df03c8 100644 --- a/README.rst +++ b/README.rst @@ -1,4 +1,3 @@ - ************************** Read the Docs Sphinx Theme ************************** @@ -6,8 +5,8 @@ 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 -.. image:: https://travis-ci.org/rtfd/sphinx_rtd_theme.svg?branch=master - :target: https://travis-ci.org/rtfd/sphinx_rtd_theme +.. image:: https://travis-ci.org/readthedocs/sphinx_rtd_theme.svg?branch=master + :target: https://travis-ci.org/readthedocs/sphinx_rtd_theme :alt: Build Status .. image:: https://img.shields.io/pypi/l/sphinx_rtd_theme.svg :target: https://pypi.python.org/pypi/sphinx_rtd_theme/ @@ -16,45 +15,56 @@ Read the Docs Sphinx Theme :target: http://sphinx-rtd-theme.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status -The ``sphinx_rtd_theme`` is a sphinx_ theme designed to look modern and be mobile-friendly. -This theme is primarily focused to be used on readthedocs.org_ but can work with your -own sphinx projects. To read more and see a working demo_ head over to readthedocs.org_. +This Sphinx_ theme was designed to provide a great reader experience for +documentation users on both desktop and mobile devices. This theme is used +primarily on `Read the Docs`_ but can work with any Sphinx project. You can find +a working demo of the theme in the `theme documentation`_ -.. _sphinx: http://www.sphinx-doc.org -.. _readthedocs.org: http://www.readthedocs.org -.. _demo: https://sphinx-rtd-theme.readthedocs.io/en/latest/ +.. _Sphinx: http://www.sphinx-doc.org +.. _Read the Docs: http://www.readthedocs.org +.. _theme documentation: https://sphinx-rtd-theme.readthedocs.io/en/latest/ +Installation +============ -Installing -========== +This theme is distributed on PyPI_ and can be installed with ``pip``: -The theme is distributed on PyPI_ and can be installed with pip:: +.. code:: bash pip install sphinx_rtd_theme -For more information read the full installing docs -`here `__. +To use the theme in your Sphinx project, you will need to add the following to +your ``conf.py`` file: -.. _PyPI: https://pypi.python.org/pypi/sphinx_rtd_theme +.. code:: python + + import sphinx_rtd_theme + + extensions = [ + ... + "sphinx_rtd_theme", + ] + html_theme = "sphinx_rtd_theme" + +For more information read the full documentation on `installing the theme`_ + +.. _PyPI: https://pypi.python.org/pypi/sphinx_rtd_theme +.. _installing the theme: https://sphinx-rtd-theme.readthedocs.io/en/latest/installing.html Configuration ============= -The ``sphinx_rtd_theme`` is highly customizable on both the page level and on a global level. -To see all the possible configuration options read the configuring docs -`here `__. +This theme is highly customizable on both the page level and on a global level. +To see all the possible configuration options, read the documentation on +`configuring the theme`_. +.. _configuring the theme: https://sphinx-rtd-theme.readthedocs.io/en/latest/configuring.html 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 ------------- +If you would like to help modify or translate the theme, you'll find more +information on contributing in our `contributing guide`_. -You can help to translate the Read the Docs Sphinx Theme, -please read the :doc:`translations ` guide for more details. +.. _contributing guide: https://sphinx-rtd-theme.readthedocs.io/en/latest/contributing.html diff --git a/docs/changelog.rst b/docs/changelog.rst index e4ea00e35..291be0c6a 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -2,16 +2,12 @@ Changelog ********* -Master +master ====== New Features ------------- -* Added Spanish translation -* Added i18n support using Babel -* Added Translation Guide documentation - Fixes ----- @@ -19,6 +15,8 @@ Other Changes -------------- * Add the ``navigation`` template block around the navigation area. +* Added Spanish translation +* Added i18n support using Babel 0.4.3 ====== diff --git a/docs/conf.py b/docs/conf.py index c98baad08..a8281b600 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -4,11 +4,10 @@ import os import re -sys.path.append(os.path.abspath('..')) +sys.path.insert(0, os.path.abspath('..')) sys.path.append(os.path.abspath('./demo/')) from sphinx.locale import _ - from sphinx_rtd_theme import __version__ @@ -32,6 +31,8 @@ templates_path = ['_templates'] source_suffix = '.rst' exclude_patterns = [] +locale_dirs = ['locale/'] +gettext_compact = False master_doc = 'index' suppress_warnings = ['image.nonlocal_uri'] diff --git a/docs/contributing.rst b/docs/contributing.rst index 2399d3a7f..f214e8a0d 100644 --- a/docs/contributing.rst +++ b/docs/contributing.rst @@ -1,82 +1,106 @@ +************ +Contributing +************ -*********************************** -Contributing or modifying the theme -*********************************** +This project follows the Read the Docs :doc:`code of conduct +`. If you are not familiar with our code of conduct policy, +take a minute to read the policy before starting with your first contribution. -The sphinx_rtd_theme is primarily a sass_ project that requires a few other sass libraries. I'm -using bower_ to manage these dependencies and sass_ to build the css. The good news is -I have a very nice set of grunt_ operations that will not only load these dependencies, but watch -for changes, rebuild the sphinx demo docs and build a distributable version of the theme. -The bad news is this means you'll need to set up your environment similar to that -of a front-end developer (vs. that of a python developer). That means installing node and ruby. - -.. seealso:: +Modifying the theme +=================== - If you are unsure of appropriate actions to take while interacting with our - community please read our :doc:`Code of Conduct `. +The styles for this theme use SASS_ and a custom CSS framework called Wyrm_. We +use Bower_ to manage these dependencies and SASS_ to build the CSS. Grunt_ is +used to watch for changes, rebuild the static assets, and rebuild the Sphinx +demo documentation. +.. note:: + The installation of Ruby and Node is outside the scope of this + documentation. You will need both in order to make changes to this theme. Set up your environment -======================= +----------------------- -#. Install sphinx_ into a virtual environment. +#. Install Sphinx_ and documentation build dependencies. .. code:: bash - pip install sphinx sphinxcontrib-httpdomain + pip install -r docs/requirements.txt -#. Install sass. +#. Install SASS. .. code:: bash gem install sass -#. Install node, bower, grunt, and theme dependencies. +#. Install Bower, Grunt, and theme dependencies locally. .. code:: bash - # Install node - brew install node - - # Install bower and grunt - npm install -g bower grunt-cli - - # Now that everything is installed, let's install the theme dependencies. npm install -Now that our environment is set up, make sure you're in your virtual environment, go to -this repository in your terminal and run grunt: +Making changes +-------------- + +Changes to the theme can be compiled and tested with the default Grunt task: .. code:: grunt -This default task will do the following **very cool things that make it worth the trouble**: +This default task will do the following: + +#. Install and update any Bower dependencies. +#. Build the static CSS from SASS source files. +#. Build the demo documentation. +#. Watch for changes to the SASS files and documentation and rebuild everything + on any detected changes. + +Alternatively, if you don't need to watch the files, Grunt can be called with +the same task used for releases: + +.. code:: bash + + grunt build + +.. _Bower: http://www.bower.io +.. _SASS: http://www.sass-lang.com +.. _Wyrm: http://www.github.com/snide/wyrm/ +.. _Grunt: http://www.gruntjs.com +.. _Sphinx: http://www.sphinx-doc.org/en/stable/ + +Translations +============ + +Translations are managed using `Transifex`_. You can join any of the existing +language teams or request a new language is added to the project. For more +information on our translation standards, see our docs on +:doc:`rtd:development/i18n` + +Periodically, core team should update the translation files outside our normal +releases. Someone from the core team, with write access to Transifex, should run +the following: + +.. code:: bash -#. Install and update any bower dependencies. -#. Run sphinx and build new docs. -#. Watch for changes to the sass files and build css from the changes. -#. Rebuild the sphinx docs anytime it notices a change to ``.rst``, ``.html``, ``.js`` - or ``.css`` files. + grunt i18n -.. _bower: http://www.bower.io -.. _sass: http://www.sass-lang.com -.. _wyrm: http://www.github.com/snide/wyrm/ -.. _grunt: http://www.gruntjs.com -.. _node: http://www.nodejs.com -.. _sphinx: http://www.sphinx-doc.org/en/stable/ +This will extract new messages, upload the messages to Transifex, and will +update our local translation files. Changes can be checked in to a branch and +put up for review. +.. _Transifex: https://www.transifex.com/readthedocs/sphinx-rtd-theme -Releasing the Theme +Releasing the theme =================== -When you release a new version, -you should do the following: +To release a new version of the theme, core team will take the following steps: #. Bump the version in ``sphinx_rtd_theme/__init__.py``, ``bower.json`` and ``package.json`` -- we try to follow `semver `_, so be careful with breaking changes. #. Update the changelog (``docs/changelog.rst``) with the version information. -#. Run a ``grunt build`` to rebuild all the theme assets. +#. Run ``grunt build`` to rebuild all the theme assets. +#. Run ``grunt i18n`` to compile new translation files and update Transifex #. Commit that change. #. Tag the release in git: ``git tag $NEW_VERSION``. #. Push the tag to GitHub: ``git push --tags origin``. @@ -84,6 +108,6 @@ you should do the following: .. code:: bash - $ rm -rf dist/ - $ python setup.py sdist bdist_wheel - $ twine upload --sign --identity security@readthedocs.org dist/* + rm -rf dist/ + python setup.py sdist bdist_wheel + twine upload --sign --identity security@readthedocs.org dist/* diff --git a/docs/index.rst b/docs/index.rst index fb804a55d..615fd93e8 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -6,15 +6,18 @@ installing configuring - changelog contributing - translations +.. toctree:: + :maxdepth: 1 + :hidden: + + changelog .. toctree:: :maxdepth: 2 :numbered: - :caption: Demo Documents + :caption: Demo Documentation demo/structure demo/demo diff --git a/docs/installing.rst b/docs/installing.rst index 1d3d3d91d..637133c48 100644 --- a/docs/installing.rst +++ b/docs/installing.rst @@ -1,11 +1,7 @@ - ************ Installation ************ -Via Python Package -================== - Install the package (or add it to your ``requirements.txt`` file): .. code:: bash @@ -16,17 +12,18 @@ In your ``conf.py`` file: .. code:: python - html_theme = "sphinx_rtd_theme" + import sphinx_rtd_theme -Via Git or Download -=================== + extensions = [ + ... + 'sphinx_rtd_theme', + ] -Symlink or subtree the ``sphinx_rtd_theme/sphinx_rtd_theme`` repository into your documentation at -``docs/_themes/sphinx_rtd_theme`` then add the following two settings to your Sphinx -``conf.py`` file: + html_theme = "sphinx_rtd_theme" -.. code:: python - html_theme = "sphinx_rtd_theme" - html_theme_path = ["_themes", ] - +.. note:: + Adding this theme as an extension is what enables localization of theme + strings in your translated output. If these strings are not translated in + your output, either we lack the localized strings for your locale, or you + are using an old version of the theme. diff --git a/docs/translations.rst b/docs/translations.rst deleted file mode 100644 index 2fc3956ae..000000000 --- a/docs/translations.rst +++ /dev/null @@ -1,192 +0,0 @@ - -****************** -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 b8d961346..ad9d9c0e4 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,16 +1,16 @@ [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 +add_comments = Translators: [init_catalog] +domain = sphinx input_file = sphinx_rtd_theme/locale/sphinx.pot -output_file = sphinx_rtd_theme/locale/$LANG/LC_MESSAGES/sphinx.po +output_dir = sphinx_rtd_theme/locale/ [update_catalog] domain = sphinx diff --git a/sphinx_rtd_theme/__init__.py b/sphinx_rtd_theme/__init__.py index ad12911dc..32c87c383 100644 --- a/sphinx_rtd_theme/__init__.py +++ b/sphinx_rtd_theme/__init__.py @@ -1,9 +1,11 @@ -"""Sphinx ReadTheDocs theme. +""" +Sphinx Read the Docs theme. From https://github.com/ryan-roemer/sphinx-bootstrap-theme. - """ + from os import path + import sphinx @@ -21,10 +23,8 @@ def get_html_theme_path(): 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') - + if sphinx.version_info >= (1, 8, 0): + # Add Sphinx message catalog for newer versions of Sphinx # See http://www.sphinx-doc.org/en/master/extdev/appapi.html#sphinx.application.Sphinx.add_message_catalog + rtd_locale_path = path.join(path.abspath(path.dirname(__file__)), 'locale') app.add_message_catalog('sphinx', rtd_locale_path) diff --git a/sphinx_rtd_theme/locale/en/LC_MESSAGES/sphinx.mo b/sphinx_rtd_theme/locale/en/LC_MESSAGES/sphinx.mo new file mode 100644 index 0000000000000000000000000000000000000000..36ecd6288f030c1063893409aa78ebfc05054d59 GIT binary patch literal 2123 zcmeH`OK&4Z5XT!>STGOqJRlI%3PmImdXz=;!|f(sYKg#%pp0B{G1f7wI4NL;zCCC{&`rn>51)ziN`d+x5l z?-l%C#{Y>2*qZiIK#+7{wd_3m>oc~EYSoiZF_qzhJ-i^xcfZXpM$U0=j z0_1%kft>HF%KirA{ohyo0c3qYg52+KAnShZ{H)(MK(?=fcqQ5(*Xe@X@4F!Pn}Qto zG06Eo0lD8VLGE_}FIh*2gEsrN3={^+D@tur4wVUBv`d|*v**kRG}d823yZ!OXmffz zR{bSUrPn4SDYk4eaXK3Wv27EN$Jpdnre1VX9mpDL>(DQgJ1U%cZs>5c?B8p~vM+X= zn#-Vp^??f%&W?1dQtD4c*QDxH#L@>Ui&O@9k$+(^hv&HREcv>KZDz%;It^ma(1DUE z_efKD`?-?nRwhA@kbvHjBYBuOU0@EDl#%^hO{2Y%E*a2CX%K3S%ypR5#lBM`ZA*`Z z{XivwZrY&|2XJ}>iNoop3aISM90Q$sdBSIF9;jyN>unW{SKm zU82N$09A@ooszMEhB82(G?V$!)v0Q4DDPlz>9`dcNai_>txG*gxO}1V9HUFDb7&!- zAPG+hffHN4K0<`b@d6>r*fJYXf=Ol8X@%L|a~_cIFkH-*yO@0z0v0AxjVJ1+QPouo zb*EpC3+eGRh#K|F^-J|sjT*HBRah6Ip3ig|wad&$N47hX8DLQh}_*@3-TC{UJ zj%jzZ*P-kGD!pEdrO8ShNDCu5Gom9UhwP#2alDc1x^>xlZ9gxa%%dIahQ39nn3{fV z`5MiZYm0_1tWk5R*6a2<^YJw6joOwq0e3JuniMD%@C9Eia;eQVN(Rz-71qjd60OeT wSp11{QO6`U#dT@XYF~%i4P}($`w_J#Eo#fY%4xa2f(rNV{QW!sKi&Di0rOH$%K!iX literal 0 HcmV?d00001 diff --git a/sphinx_rtd_theme/locale/en/LC_MESSAGES/sphinx.po b/sphinx_rtd_theme/locale/en/LC_MESSAGES/sphinx.po new file mode 100644 index 000000000..476daae15 --- /dev/null +++ b/sphinx_rtd_theme/locale/en/LC_MESSAGES/sphinx.po @@ -0,0 +1,145 @@ +# English translations for sphinx_rtd_theme. +# Copyright (C) 2019 ORGANIZATION +# This file is distributed under the same license as the sphinx_rtd_theme +# project. +# FIRST AUTHOR , 2019. +# +msgid "" +msgstr "" +"Project-Id-Version: sphinx_rtd_theme 0.4.3.dev0\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2019-07-16 15:59-0600\n" +"PO-Revision-Date: 2019-07-16 15:43-0600\n" +"Last-Translator: FULL NAME \n" +"Language: en\n" +"Language-Team: en \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.6.0\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:92 +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:39 +#, python-format +msgid "Last updated on %(last_updated)s." +msgstr "" + +#: sphinx_rtd_theme/footer.html:49 +#, python-format +msgid "Built with %(sphinx_web)s using a" +msgstr "" + +#: sphinx_rtd_theme/footer.html:49 +msgid "theme" +msgstr "" + +#: sphinx_rtd_theme/footer.html:49 +#, python-format +msgid "provided by %(readthedocs_web)s" +msgstr "" + +#: sphinx_rtd_theme/layout.html:61 +#, python-format +msgid "Search within %(docstitle)s" +msgstr "" + +#: sphinx_rtd_theme/layout.html:83 +msgid "About these documents" +msgstr "" + +#: sphinx_rtd_theme/layout.html:86 +msgid "Index" +msgstr "" + +#: sphinx_rtd_theme/layout.html:89 sphinx_rtd_theme/search.html:11 +msgid "Search" +msgstr "" + +#: sphinx_rtd_theme/layout.html:124 +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 "" + +#. The phrase "Read the Docs" is not translated +#: sphinx_rtd_theme/versions.html:24 +msgid "On Read the Docs" +msgstr "" + +#: sphinx_rtd_theme/versions.html:26 +msgid "Project Home" +msgstr "" + +#: sphinx_rtd_theme/versions.html:29 +msgid "Builds" +msgstr "" + +#: sphinx_rtd_theme/versions.html:33 +msgid "Free document hosting provided by" +msgstr "" + diff --git a/sphinx_rtd_theme/locale/es/LC_MESSAGES/sphinx.mo b/sphinx_rtd_theme/locale/es/LC_MESSAGES/sphinx.mo new file mode 100644 index 0000000000000000000000000000000000000000..e7ff83206208c61fa4aa5c129f3bbc5e948edde6 GIT binary patch literal 2369 zcmZvd%Wqpn6vi)5pcsUJ@=!|!(?w|_di_Y#65OO}+_-H@(x!1J0))!=-pTc}*E6^C zu;YpqOCCGAMr@F}=&Bo3!OCLW9Sc~{1#2Y!0Fe03^>v)Kv1I?|%;U_NGiN^k`O2PK z0X}cxdl26jo*--T`4{$UF#iLe2KPM~1kZr`!9ySep934<9&n|wFM}_`{uF!>>=yh2 zq;+3|s(EaKW-J}kiZ!Hb`{=rG+db!` zJMY^&%@y7b&KfZZgLSlZv_WQcPsSo7xQm(4_)B6X2A21iH-a6%cv#DVrldYB>&;fHw03DDJcAACI>IG{RA)2Q+WTSky|8wI)sEMXqkW=U#l&!YBahFU zsnus^->u?PqCyHc3|BVgPMbPgRIa0u(0P9Cw8pEjWo?pENAqnkTO}TMQfI<$8{vlF z-8yS!TuIwuQyu3rTd!35{eIbzXSpf1%8~9?c4VsJu*gg_)CV)LfWS?9c+MO_x@eSDTZZ*2>k=8Lb>1Zn!bX5S&BVSF)5#b&^FL zZme(%-ff0+lX(=^rZ8bsMLNbCtFyVbbft4b2}6%6Yz*qG!P_EbGvyQ5A!z9~3P)JS zw~LKOa(Gwa^(*U)m$4o z!*5kA@#+>M=ke}u7X55^FLkoZSx?-gICj?^Co>(iWa4R45i}nYAZ^$t?`d;%Btj2K zP{s{s9p08u8=NEMx&BaSsf;0Gh`c?#XK#2B^KyW46-FZ9wc!tmRJa?#@bCtBySmUM zx}wH-1^P&kaGX5Z@V@N~a!-lgk(Y5#e$ZW13O9_G&7$GmSSA{A(s3yQxXniK1T8<= z0h)z6kScBUu|?G&!<exJzNvJOP%QQ;D6tlxo-df literal 0 HcmV?d00001 diff --git a/sphinx_rtd_theme/locale/es/LC_MESSAGES/sphinx.po b/sphinx_rtd_theme/locale/es/LC_MESSAGES/sphinx.po index 74ee6758f..e8b0362c1 100644 --- a/sphinx_rtd_theme/locale/es/LC_MESSAGES/sphinx.po +++ b/sphinx_rtd_theme/locale/es/LC_MESSAGES/sphinx.po @@ -1,22 +1,26 @@ -# Spanish translations for sphinx_rtd_theme. -# Copyright (C) 2018 Read the Docs +# English translations for sphinx_rtd_theme. +# Copyright (C) 2019 ORGANIZATION # This file is distributed under the same license as the sphinx_rtd_theme # project. -# Leonardo J. Caballero G. , 2017, 2018. +# FIRST AUTHOR , 2019. +# +# Translators: +# Anthony , 2019 msgid "" msgstr "" -"Project-Id-Version: sphinx_rtd_theme 0.3.0\n" +"Project-Id-Version: sphinx_rtd_theme 0.4.3.dev0\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" +"POT-Creation-Date: 2019-07-16 15:59-0600\n" +"PO-Revision-Date: 2019-07-16 21:44+0000\n" +"Last-Translator: Anthony , 2019\n" "Language: es\n" -"Language-Team: es\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"Language-Team: Spanish " +"(https://www.transifex.com/readthedocs/teams/101354/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" +"Generated-By: Babel 2.6.0\n" #: sphinx_rtd_theme/breadcrumbs.html:31 msgid "Docs" @@ -36,7 +40,7 @@ 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" +msgstr "Ver código fuente de la página" #: sphinx_rtd_theme/breadcrumbs.html:74 sphinx_rtd_theme/footer.html:5 msgid "Next" @@ -47,7 +51,7 @@ msgid "Previous" msgstr "Anterior" #: sphinx_rtd_theme/footer.html:21 sphinx_rtd_theme/footer.html:24 -#: sphinx_rtd_theme/layout.html:70 +#: sphinx_rtd_theme/layout.html:92 msgid "Copyright" msgstr "Derechos de autor" @@ -59,43 +63,43 @@ msgstr "Construido" msgid "Revision" msgstr "Revisión" -#: sphinx_rtd_theme/footer.html:38 +#: sphinx_rtd_theme/footer.html:39 #, python-format msgid "Last updated on %(last_updated)s." msgstr "Actualizado por última vez en %(last_updated)s." -#: sphinx_rtd_theme/footer.html:47 +#: sphinx_rtd_theme/footer.html:49 #, python-format msgid "Built with %(sphinx_web)s using a" msgstr "Construido con %(sphinx_web)s usando un" -#: sphinx_rtd_theme/footer.html:47 +#: sphinx_rtd_theme/footer.html:49 msgid "theme" msgstr "tema" -#: sphinx_rtd_theme/footer.html:47 +#: sphinx_rtd_theme/footer.html:49 #, python-format msgid "provided by %(readthedocs_web)s" msgstr "proporcionado por %(readthedocs_web)s" -#: sphinx_rtd_theme/layout.html:37 +#: sphinx_rtd_theme/layout.html:61 #, python-format msgid "Search within %(docstitle)s" msgstr "Buscar en %(docstitle)s" -#: sphinx_rtd_theme/layout.html:61 +#: sphinx_rtd_theme/layout.html:83 msgid "About these documents" msgstr "Sobre esta documentación" -#: sphinx_rtd_theme/layout.html:64 +#: sphinx_rtd_theme/layout.html:86 msgid "Index" msgstr "Índice" -#: sphinx_rtd_theme/layout.html:67 sphinx_rtd_theme/search.html:11 +#: sphinx_rtd_theme/layout.html:89 sphinx_rtd_theme/search.html:11 msgid "Search" msgstr "Búsqueda" -#: sphinx_rtd_theme/layout.html:107 +#: sphinx_rtd_theme/layout.html:124 msgid "Logo" msgstr "Logotipo" @@ -112,8 +116,8 @@ 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á " +"Su búsqueda no coincide con ningún documento. Por favor, asegúrese de que" +" todas las palabras estén correctamente escritas y que usted haya " "seleccionado las suficientes categorías." #: sphinx_rtd_theme/searchbox.html:4 @@ -128,18 +132,20 @@ msgstr "Versiones" msgid "Downloads" msgstr "Descargas" -#: sphinx_rtd_theme/versions.html:23 +#. The phrase "Read the Docs" is not translated +#: sphinx_rtd_theme/versions.html:24 msgid "On Read the Docs" msgstr "En Read the Docs" -#: sphinx_rtd_theme/versions.html:25 +#: sphinx_rtd_theme/versions.html:26 msgid "Project Home" msgstr "Página de Proyecto" -#: sphinx_rtd_theme/versions.html:28 +#: sphinx_rtd_theme/versions.html:29 msgid "Builds" msgstr "Construcciones" -#: sphinx_rtd_theme/versions.html:32 +#: sphinx_rtd_theme/versions.html:33 msgid "Free document hosting provided by" msgstr "Alojamiento gratuito de documentos proporcionado por" + diff --git a/sphinx_rtd_theme/locale/ru/LC_MESSAGES/sphinx.mo b/sphinx_rtd_theme/locale/ru/LC_MESSAGES/sphinx.mo new file mode 100644 index 0000000000000000000000000000000000000000..39472b361d8f5fc9362a1d131ac7fb0a78ac39cb GIT binary patch literal 2311 zcmeH{&u<$=6vsEv^20@lp9jRR*F#DySbNuTLb{1l;>Kx%oHWgkB7{&h-ksP>*E_43 zSv!_;e4o9EgE({RO1qzVZ{P3PonK$MaNoi8 z4(_*bzc9nn^m+{Wb%=j~7r|Gba-3(tH^9pvfzN|Y@B-K_U~>)8f5&jEM|jKDX+3}m~nL5_DH zya#>S zAp0$Y9Pjf&4ng++vfw?C>-z@ee!m5|?uQ`v`+Ffj0+G`B8{|9}VZ{Bu26Ddyvfm0G z9Ipj(zjr|H_cxI1nBgYYIx4qhd(udXRG9Z=YK_y(<0P6qCxWG6Y6 zr)(%UaoQ!}Tvyph$K9TF)>UZm7^aC5k#Sm4Y)PfmjBO_m?@D{7xe?o&dFQ;?79D3p z%V`#)=AcNXqLaw6wUI)HJvz!$n5tAHu^m;M9W4j3 z$_*Ck3mICvsru5{h0?&t*&90*KxUIC80bXH6Fyt>Kw~bQl{U7CEF0&J)EotiSPm%@ zT}ejeI+V_*02LKQaYU)I)E5@@iF7pGx(XHT^~GKI=9*g(mPC@!Q0d5!fXZYtNie!l zX^j?=5rXi9U^r6wdjnX=1TSDBQ_1)Iq zUTNpnzIz=Bc{|*7loU|S^RK$zhpxX!{z9;T^`hs&&^_Ie|Jv33pk9C9!&TxB$=%l? zHHolF2efg}ZqxSKR*P2tm3kGXX*b7)1f=sb!QGdlAJA@YOe|8G>sgzbpjsUchZW0V z<0E-o301#(ZcJ4RCsXx3e}17})p@mC+DURP5_d!Cz6mJJ#-eG|mua$W%%!uw*J${3 zxcG%jqv7$ZvE6E8Vd{Rh ze5OZSq&dyG(m;f3R6~IIa%pRGt2NzPzv7jytJLEBaQ8lPwaOwgJUOqPoLB$TdG!y2 CX@A`S literal 0 HcmV?d00001 diff --git a/sphinx_rtd_theme/locale/ru/LC_MESSAGES/sphinx.po b/sphinx_rtd_theme/locale/ru/LC_MESSAGES/sphinx.po new file mode 100644 index 000000000..c3d044f95 --- /dev/null +++ b/sphinx_rtd_theme/locale/ru/LC_MESSAGES/sphinx.po @@ -0,0 +1,148 @@ +# English translations for sphinx_rtd_theme. +# Copyright (C) 2019 ORGANIZATION +# This file is distributed under the same license as the sphinx_rtd_theme +# project. +# FIRST AUTHOR , 2019. +# +msgid "" +msgstr "" +"Project-Id-Version: sphinx_rtd_theme 0.4.3.dev0\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2019-07-16 15:59-0600\n" +"PO-Revision-Date: 2019-07-16 21:44+0000\n" +"Last-Translator: FULL NAME \n" +"Language: ru\n" +"Language-Team: Russian " +"(https://www.transifex.com/readthedocs/teams/101354/ru/)\n" +"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) " +"|| (n%100>=11 && n%100<=14)? 2 : 3)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.6.0\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:92 +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:39 +#, python-format +msgid "Last updated on %(last_updated)s." +msgstr "" + +#: sphinx_rtd_theme/footer.html:49 +#, python-format +msgid "Built with %(sphinx_web)s using a" +msgstr "" + +#: sphinx_rtd_theme/footer.html:49 +msgid "theme" +msgstr "" + +#: sphinx_rtd_theme/footer.html:49 +#, python-format +msgid "provided by %(readthedocs_web)s" +msgstr "" + +#: sphinx_rtd_theme/layout.html:61 +#, python-format +msgid "Search within %(docstitle)s" +msgstr "" + +#: sphinx_rtd_theme/layout.html:83 +msgid "About these documents" +msgstr "" + +#: sphinx_rtd_theme/layout.html:86 +msgid "Index" +msgstr "" + +#: sphinx_rtd_theme/layout.html:89 sphinx_rtd_theme/search.html:11 +msgid "Search" +msgstr "" + +#: sphinx_rtd_theme/layout.html:124 +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 "" + +#. The phrase "Read the Docs" is not translated +#: sphinx_rtd_theme/versions.html:24 +msgid "On Read the Docs" +msgstr "" + +#: sphinx_rtd_theme/versions.html:26 +msgid "Project Home" +msgstr "" + +#: sphinx_rtd_theme/versions.html:29 +msgid "Builds" +msgstr "" + +#: sphinx_rtd_theme/versions.html:33 +msgid "Free document hosting provided by" +msgstr "" + diff --git a/sphinx_rtd_theme/locale/sphinx.pot b/sphinx_rtd_theme/locale/sphinx.pot index 53ea24257..456bbce46 100644 --- a/sphinx_rtd_theme/locale/sphinx.pot +++ b/sphinx_rtd_theme/locale/sphinx.pot @@ -1,22 +1,22 @@ # Translations template for sphinx_rtd_theme. -# Copyright (C) 2018 ORGANIZATION +# Copyright (C) 2019 ORGANIZATION # This file is distributed under the same license as the sphinx_rtd_theme # project. -# FIRST AUTHOR , 2018. +# FIRST AUTHOR , 2019. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: sphinx_rtd_theme 0.3.0\n" +"Project-Id-Version: sphinx_rtd_theme 0.4.3.dev0\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2018-04-18 17:43-0400\n" +"POT-Creation-Date: 2019-07-16 18:15-0600\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" +"Generated-By: Babel 2.6.0\n" #: sphinx_rtd_theme/breadcrumbs.html:31 msgid "Docs" @@ -47,7 +47,7 @@ msgid "Previous" msgstr "" #: sphinx_rtd_theme/footer.html:21 sphinx_rtd_theme/footer.html:24 -#: sphinx_rtd_theme/layout.html:70 +#: sphinx_rtd_theme/layout.html:92 msgid "Copyright" msgstr "" @@ -59,43 +59,43 @@ msgstr "" msgid "Revision" msgstr "" -#: sphinx_rtd_theme/footer.html:38 +#: sphinx_rtd_theme/footer.html:39 #, python-format msgid "Last updated on %(last_updated)s." msgstr "" -#: sphinx_rtd_theme/footer.html:47 +#: sphinx_rtd_theme/footer.html:49 #, python-format msgid "Built with %(sphinx_web)s using a" msgstr "" -#: sphinx_rtd_theme/footer.html:47 +#: sphinx_rtd_theme/footer.html:49 msgid "theme" msgstr "" -#: sphinx_rtd_theme/footer.html:47 +#: sphinx_rtd_theme/footer.html:49 #, python-format msgid "provided by %(readthedocs_web)s" msgstr "" -#: sphinx_rtd_theme/layout.html:37 +#: sphinx_rtd_theme/layout.html:61 #, python-format msgid "Search within %(docstitle)s" msgstr "" -#: sphinx_rtd_theme/layout.html:61 +#: sphinx_rtd_theme/layout.html:83 msgid "About these documents" msgstr "" -#: sphinx_rtd_theme/layout.html:64 +#: sphinx_rtd_theme/layout.html:86 msgid "Index" msgstr "" -#: sphinx_rtd_theme/layout.html:67 sphinx_rtd_theme/search.html:11 +#: sphinx_rtd_theme/layout.html:89 sphinx_rtd_theme/search.html:11 msgid "Search" msgstr "" -#: sphinx_rtd_theme/layout.html:107 +#: sphinx_rtd_theme/layout.html:124 msgid "Logo" msgstr "" @@ -125,19 +125,20 @@ msgstr "" msgid "Downloads" msgstr "" -#: sphinx_rtd_theme/versions.html:23 +#. The phrase "Read the Docs" is not translated +#: sphinx_rtd_theme/versions.html:24 msgid "On Read the Docs" msgstr "" -#: sphinx_rtd_theme/versions.html:25 +#: sphinx_rtd_theme/versions.html:26 msgid "Project Home" msgstr "" -#: sphinx_rtd_theme/versions.html:28 +#: sphinx_rtd_theme/versions.html:29 msgid "Builds" msgstr "" -#: sphinx_rtd_theme/versions.html:32 +#: sphinx_rtd_theme/versions.html:33 msgid "Free document hosting provided by" msgstr "" diff --git a/sphinx_rtd_theme/versions.html b/sphinx_rtd_theme/versions.html index ef92ba592..2eb8e6621 100644 --- a/sphinx_rtd_theme/versions.html +++ b/sphinx_rtd_theme/versions.html @@ -20,6 +20,7 @@ {% endfor %}
+ {# Translators: The phrase "Read the Docs" is not translated #}
{{ _('On Read the Docs') }}
{{ _('Project Home') }} From 3eef5eb69b36b71fb67e245d642559b37c8a6913 Mon Sep 17 00:00:00 2001 From: Anthony Date: Fri, 19 Jul 2019 11:35:12 -0600 Subject: [PATCH 02/12] Change code bash to console Co-Authored-By: Jesse Tan --- README.rst | 2 +- docs/contributing.rst | 12 ++++++------ docs/installing.rst | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.rst b/README.rst index 779df03c8..9c6b7dd87 100644 --- a/README.rst +++ b/README.rst @@ -29,7 +29,7 @@ Installation This theme is distributed on PyPI_ and can be installed with ``pip``: -.. code:: bash +.. code:: console pip install sphinx_rtd_theme diff --git a/docs/contributing.rst b/docs/contributing.rst index f214e8a0d..1c94fc59f 100644 --- a/docs/contributing.rst +++ b/docs/contributing.rst @@ -23,19 +23,19 @@ Set up your environment #. Install Sphinx_ and documentation build dependencies. - .. code:: bash + .. code:: console pip install -r docs/requirements.txt #. Install SASS. - .. code:: bash + .. code:: console gem install sass #. Install Bower, Grunt, and theme dependencies locally. - .. code:: bash + .. code:: console npm install @@ -59,7 +59,7 @@ This default task will do the following: Alternatively, if you don't need to watch the files, Grunt can be called with the same task used for releases: -.. code:: bash +.. code:: console grunt build @@ -81,7 +81,7 @@ Periodically, core team should update the translation files outside our normal releases. Someone from the core team, with write access to Transifex, should run the following: -.. code:: bash +.. code:: console grunt i18n @@ -106,7 +106,7 @@ To release a new version of the theme, core team will take the following steps: #. Push the tag to GitHub: ``git push --tags origin``. #. Upload the package to PyPI: - .. code:: bash + .. code:: console rm -rf dist/ python setup.py sdist bdist_wheel diff --git a/docs/installing.rst b/docs/installing.rst index 637133c48..978b30388 100644 --- a/docs/installing.rst +++ b/docs/installing.rst @@ -4,7 +4,7 @@ Installation Install the package (or add it to your ``requirements.txt`` file): -.. code:: bash +.. code:: console pip install sphinx_rtd_theme From 69c1e095f602c78614db12a85039d781d8285837 Mon Sep 17 00:00:00 2001 From: Anthony Johnson Date: Fri, 19 Jul 2019 12:45:34 -0600 Subject: [PATCH 03/12] Update po file comments, tune installation requirements, alter i18n scripts --- .readthedocs.yml | 9 ++++++--- Gruntfile.js | 12 ------------ docs/requirements.txt | 2 -- package.json | 7 +++++++ setup.py | 9 +++++++++ .../locale/en/LC_MESSAGES/sphinx.mo | Bin 2123 -> 455 bytes .../locale/en/LC_MESSAGES/sphinx.po | 4 ++-- .../locale/es/LC_MESSAGES/sphinx.mo | Bin 2369 -> 2379 bytes .../locale/es/LC_MESSAGES/sphinx.po | 14 +++++--------- .../locale/ru/LC_MESSAGES/sphinx.mo | Bin 2311 -> 653 bytes .../locale/ru/LC_MESSAGES/sphinx.po | 12 +++++------- sphinx_rtd_theme/locale/sphinx.pot | 4 ++-- 12 files changed, 36 insertions(+), 37 deletions(-) delete mode 100644 docs/requirements.txt diff --git a/.readthedocs.yml b/.readthedocs.yml index 0e49a6aa3..0b03b6346 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -1,5 +1,8 @@ -build: - image: latest +version: 2 python: version: 3.6 -requirements_file: docs/requirements.txt + install: + - method: pip + path: . + extra_requirements: + - docs diff --git a/Gruntfile.js b/Gruntfile.js index 325e6f387..9dd0db199 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -144,18 +144,6 @@ module.exports = function(grunt) { locale = (typeof locale !== 'undefined') ? locale : 'en'; return 'sphinx-build -D language=' + locale + ' docs/ docs/build/html' } - }, - babel_extract: { - cmd: 'python setup.py extract_messages' - }, - babel_compile: { - cmd: 'python setup.py compile_catalog' - }, - tx_pull: { - cmd: 'tx pull' - }, - tx_push: { - cmd: 'tx push --source' } }, clean: { diff --git a/docs/requirements.txt b/docs/requirements.txt deleted file mode 100644 index 933c399bf..000000000 --- a/docs/requirements.txt +++ /dev/null @@ -1,2 +0,0 @@ -sphinxcontrib-httpdomain -sphinx diff --git a/package.json b/package.json index 3db297ba8..c91f6153c 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,13 @@ "main": "js/theme.js", "version": "0.4.3", "private": true, + "scripts": { + "i18n-extract": "python setup.py extract_messages && python setup.py update_catalog", + "i18n-update": "tx pull && tx push --source", + "i18n-compile": "python setup.py compile_catalog", + "i18n-release": "npm run i18n-extract && npm run i18n-update && npm run i18n-compile", + "i18n": "npm run i18n-extract && npm run i18n-compile" + }, "devDependencies": { "bower": "^1.8.4", "browserify": "^13.0.0", diff --git a/setup.py b/setup.py index 09e594c16..4f3163e85 100644 --- a/setup.py +++ b/setup.py @@ -37,6 +37,15 @@ install_requires=[ 'sphinx' ], + extras_require={ + 'dev': [ + 'transifex-client', + 'sphinxcontrib-httpdomain', + ], + 'docs': [ + 'sphinxcontrib-httpdomain', + ] + }, classifiers=[ 'Framework :: Sphinx', 'Framework :: Sphinx :: Theme', diff --git a/sphinx_rtd_theme/locale/en/LC_MESSAGES/sphinx.mo b/sphinx_rtd_theme/locale/en/LC_MESSAGES/sphinx.mo index 36ecd6288f030c1063893409aa78ebfc05054d59..4efb182ee085142f6bf51f4f7d84ec26728ec923 100644 GIT binary patch delta 72 zcmX>taGY7^o)F7a1|VPrVi_P-0dbIk4v;+)D5(piCx@{VvRf(`8d(_|Za&8%$H;1~ IXTZe(09JPimH+?% literal 2123 zcmeH`OK&4Z5XT!>STGOqJRlI%3PmImdXz=;!|f(sYKg#%pp0B{G1f7wI4NL;zCCC{&`rn>51)ziN`d+x5l z?-l%C#{Y>2*qZiIK#+7{wd_3m>oc~EYSoiZF_qzhJ-i^xcfZXpM$U0=j z0_1%kft>HF%KirA{ohyo0c3qYg52+KAnShZ{H)(MK(?=fcqQ5(*Xe@X@4F!Pn}Qto zG06Eo0lD8VLGE_}FIh*2gEsrN3={^+D@tur4wVUBv`d|*v**kRG}d823yZ!OXmffz zR{bSUrPn4SDYk4eaXK3Wv27EN$Jpdnre1VX9mpDL>(DQgJ1U%cZs>5c?B8p~vM+X= zn#-Vp^??f%&W?1dQtD4c*QDxH#L@>Ui&O@9k$+(^hv&HREcv>KZDz%;It^ma(1DUE z_efKD`?-?nRwhA@kbvHjBYBuOU0@EDl#%^hO{2Y%E*a2CX%K3S%ypR5#lBM`ZA*`Z z{XivwZrY&|2XJ}>iNoop3aISM90Q$sdBSIF9;jyN>unW{SKm zU82N$09A@ooszMEhB82(G?V$!)v0Q4DDPlz>9`dcNai_>txG*gxO}1V9HUFDb7&!- zAPG+hffHN4K0<`b@d6>r*fJYXf=Ol8X@%L|a~_cIFkH-*yO@0z0v0AxjVJ1+QPouo zb*EpC3+eGRh#K|F^-J|sjT*HBRah6Ip3ig|wad&$N47hX8DLQh}_*@3-TC{UJ zj%jzZ*P-kGD!pEdrO8ShNDCu5Gom9UhwP#2alDc1x^>xlZ9gxa%%dIahQ39nn3{fV z`5MiZYm0_1tWk5R*6a2<^YJw6joOwq0e3JuniMD%@C9Eia;eQVN(Rz-71qjd60OeT wSp11{QO6`U#dT@XYF~%i4P}($`w_J#Eo#fY%4xa2f(rNV{QW!sKi&Di0rOH$%K!iX diff --git a/sphinx_rtd_theme/locale/en/LC_MESSAGES/sphinx.po b/sphinx_rtd_theme/locale/en/LC_MESSAGES/sphinx.po index 476daae15..52092b44c 100644 --- a/sphinx_rtd_theme/locale/en/LC_MESSAGES/sphinx.po +++ b/sphinx_rtd_theme/locale/en/LC_MESSAGES/sphinx.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: sphinx_rtd_theme 0.4.3.dev0\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2019-07-16 15:59-0600\n" +"POT-Creation-Date: 2019-07-19 12:32-0600\n" "PO-Revision-Date: 2019-07-16 15:43-0600\n" "Last-Translator: FULL NAME \n" "Language: en\n" @@ -17,7 +17,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.6.0\n" +"Generated-By: Babel 2.7.0\n" #: sphinx_rtd_theme/breadcrumbs.html:31 msgid "Docs" diff --git a/sphinx_rtd_theme/locale/es/LC_MESSAGES/sphinx.mo b/sphinx_rtd_theme/locale/es/LC_MESSAGES/sphinx.mo index e7ff83206208c61fa4aa5c129f3bbc5e948edde6..2771e95dbbd7ed44d22cb44655fa1a805378ccf1 100644 GIT binary patch delta 316 zcmXZXze@sP7{Kx8?C?w^@*1R|dI_^l)C5r)ba8Nva80|za5=d@;UV!0 zo?wE<_-Wi?o%k0Wyx^%|2{YJ7J^$#){C{vvqDNw88a_}j-k8Q8;||Zr|Dis}Wm^G@ zs2AR$!Y;n!2(M954?GH9@D!DUaI}22 X&z+{K)>^mKtbWmsm4`cl~Mh1p(76t}M1_lN-HUcJWlfC64X zfkLQ)JwO^{@KLD3n^5{Okd^|9zXj4D2XO#R69>{#KpJGA5s+2@(l$VP2at{h(yBmO z3@8coBZCb{kz-PRX^BEfMrv`YLds??rpZi(uD*_*J`Rp9E, 2019. -# -# Translators: -# Anthony , 2019 msgid "" msgstr "" "Project-Id-Version: sphinx_rtd_theme 0.4.3.dev0\n" -"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2019-07-16 15:59-0600\n" +"Report-Msgid-Bugs-To: support@readthedocs.org\n" +"POT-Creation-Date: 2019-07-19 12:32-0600\n" "PO-Revision-Date: 2019-07-16 21:44+0000\n" "Last-Translator: Anthony , 2019\n" "Language: es\n" @@ -20,7 +16,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.6.0\n" +"Generated-By: Babel 2.7.0\n" #: sphinx_rtd_theme/breadcrumbs.html:31 msgid "Docs" diff --git a/sphinx_rtd_theme/locale/ru/LC_MESSAGES/sphinx.mo b/sphinx_rtd_theme/locale/ru/LC_MESSAGES/sphinx.mo index 39472b361d8f5fc9362a1d131ac7fb0a78ac39cb..1b8a94b05f96d1626fa34c3f8b0704a2eac32b43 100644 GIT binary patch delta 100 zcmZn{>SfirC&V(90SFj@SO$nyKpZ5X17ycDF)-)?>B(U%?&8Iz1qJy62Hn$g*217#dj_8*VKx%oHWgkB7{&h-ksP>*E_43 zSv!_;e4o9EgE({RO1qzVZ{P3PonK$MaNoi8 z4(_*bzc9nn^m+{Wb%=j~7r|Gba-3(tH^9pvfzN|Y@B-K_U~>)8f5&jEM|jKDX+3}m~nL5_DH zya#>S zAp0$Y9Pjf&4ng++vfw?C>-z@ee!m5|?uQ`v`+Ffj0+G`B8{|9}VZ{Bu26Ddyvfm0G z9Ipj(zjr|H_cxI1nBgYYIx4qhd(udXRG9Z=YK_y(<0P6qCxWG6Y6 zr)(%UaoQ!}Tvyph$K9TF)>UZm7^aC5k#Sm4Y)PfmjBO_m?@D{7xe?o&dFQ;?79D3p z%V`#)=AcNXqLaw6wUI)HJvz!$n5tAHu^m;M9W4j3 z$_*Ck3mICvsru5{h0?&t*&90*KxUIC80bXH6Fyt>Kw~bQl{U7CEF0&J)EotiSPm%@ zT}ejeI+V_*02LKQaYU)I)E5@@iF7pGx(XHT^~GKI=9*g(mPC@!Q0d5!fXZYtNie!l zX^j?=5rXi9U^r6wdjnX=1TSDBQ_1)Iq zUTNpnzIz=Bc{|*7loU|S^RK$zhpxX!{z9;T^`hs&&^_Ie|Jv33pk9C9!&TxB$=%l? zHHolF2efg}ZqxSKR*P2tm3kGXX*b7)1f=sb!QGdlAJA@YOe|8G>sgzbpjsUchZW0V z<0E-o301#(ZcJ4RCsXx3e}17})p@mC+DURP5_d!Cz6mJJ#-eG|mua$W%%!uw*J${3 zxcG%jqv7$ZvE6E8Vd{Rh ze5OZSq&dyG(m;f3R6~IIa%pRGt2NzPzv7jytJLEBaQ8lPwaOwgJUOqPoLB$TdG!y2 CX@A`S diff --git a/sphinx_rtd_theme/locale/ru/LC_MESSAGES/sphinx.po b/sphinx_rtd_theme/locale/ru/LC_MESSAGES/sphinx.po index c3d044f95..e62fe2351 100644 --- a/sphinx_rtd_theme/locale/ru/LC_MESSAGES/sphinx.po +++ b/sphinx_rtd_theme/locale/ru/LC_MESSAGES/sphinx.po @@ -1,14 +1,12 @@ -# English translations for sphinx_rtd_theme. -# Copyright (C) 2019 ORGANIZATION +# Russian translations for sphinx_rtd_theme. +# Copyright (C) 2019 Read the Docs, Inc # This file is distributed under the same license as the sphinx_rtd_theme # project. -# FIRST AUTHOR , 2019. -# msgid "" msgstr "" "Project-Id-Version: sphinx_rtd_theme 0.4.3.dev0\n" -"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2019-07-16 15:59-0600\n" +"Report-Msgid-Bugs-To: support@readthedocs.org\n" +"POT-Creation-Date: 2019-07-19 12:32-0600\n" "PO-Revision-Date: 2019-07-16 21:44+0000\n" "Last-Translator: FULL NAME \n" "Language: ru\n" @@ -20,7 +18,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.6.0\n" +"Generated-By: Babel 2.7.0\n" #: sphinx_rtd_theme/breadcrumbs.html:31 msgid "Docs" diff --git a/sphinx_rtd_theme/locale/sphinx.pot b/sphinx_rtd_theme/locale/sphinx.pot index 456bbce46..54bb282fd 100644 --- a/sphinx_rtd_theme/locale/sphinx.pot +++ b/sphinx_rtd_theme/locale/sphinx.pot @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: sphinx_rtd_theme 0.4.3.dev0\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2019-07-16 18:15-0600\n" +"POT-Creation-Date: 2019-07-19 12:32-0600\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.6.0\n" +"Generated-By: Babel 2.7.0\n" #: sphinx_rtd_theme/breadcrumbs.html:31 msgid "Docs" From f7a7cd75eb3c2c36638f93a3d901a3c548f55f62 Mon Sep 17 00:00:00 2001 From: Anthony Johnson Date: Fri, 19 Jul 2019 12:56:02 -0600 Subject: [PATCH 04/12] Update build directions, better install mechanism, NL locale --- docs/contributing.rst | 6 +- package.json | 3 +- .../locale/en/LC_MESSAGES/sphinx.mo | Bin 455 -> 455 bytes .../locale/en/LC_MESSAGES/sphinx.po | 2 +- .../locale/es/LC_MESSAGES/sphinx.mo | Bin 2379 -> 2379 bytes .../locale/es/LC_MESSAGES/sphinx.po | 2 +- .../locale/nl/LC_MESSAGES/sphinx.mo | Bin 0 -> 465 bytes .../locale/nl/LC_MESSAGES/sphinx.po | 145 ++++++++++++++++++ .../locale/ru/LC_MESSAGES/sphinx.mo | Bin 653 -> 653 bytes .../locale/ru/LC_MESSAGES/sphinx.po | 2 +- sphinx_rtd_theme/locale/sphinx.pot | 2 +- 11 files changed, 153 insertions(+), 9 deletions(-) create mode 100644 sphinx_rtd_theme/locale/nl/LC_MESSAGES/sphinx.mo create mode 100644 sphinx_rtd_theme/locale/nl/LC_MESSAGES/sphinx.po diff --git a/docs/contributing.rst b/docs/contributing.rst index 1c94fc59f..480205f7d 100644 --- a/docs/contributing.rst +++ b/docs/contributing.rst @@ -25,7 +25,7 @@ Set up your environment .. code:: console - pip install -r docs/requirements.txt + pip install -e '.[docs]' #. Install SASS. @@ -83,7 +83,7 @@ the following: .. code:: console - grunt i18n + npm run i18n This will extract new messages, upload the messages to Transifex, and will update our local translation files. Changes can be checked in to a branch and @@ -100,7 +100,7 @@ To release a new version of the theme, core team will take the following steps: we try to follow `semver `_, so be careful with breaking changes. #. Update the changelog (``docs/changelog.rst``) with the version information. #. Run ``grunt build`` to rebuild all the theme assets. -#. Run ``grunt i18n`` to compile new translation files and update Transifex +#. Run ``npm run i18n`` to compile new translation files and update Transifex #. Commit that change. #. Tag the release in git: ``git tag $NEW_VERSION``. #. Push the tag to GitHub: ``git push --tags origin``. diff --git a/package.json b/package.json index c91f6153c..0f128a9c6 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,7 @@ "i18n-extract": "python setup.py extract_messages && python setup.py update_catalog", "i18n-update": "tx pull && tx push --source", "i18n-compile": "python setup.py compile_catalog", - "i18n-release": "npm run i18n-extract && npm run i18n-update && npm run i18n-compile", - "i18n": "npm run i18n-extract && npm run i18n-compile" + "i18n": "npm run i18n-extract && npm run i18n-update && npm run i18n-compile" }, "devDependencies": { "bower": "^1.8.4", diff --git a/sphinx_rtd_theme/locale/en/LC_MESSAGES/sphinx.mo b/sphinx_rtd_theme/locale/en/LC_MESSAGES/sphinx.mo index 4efb182ee085142f6bf51f4f7d84ec26728ec923..13d0ea7d4f96dea83a7d80b421f824cec19d5b4e 100644 GIT binary patch delta 13 UcmX@ke4Kg0A|_MgjZ2gn0VG)jssI20 delta 13 UcmX@ke4Kg0A|_+QjZ2gn0VG2NrT_o{ diff --git a/sphinx_rtd_theme/locale/en/LC_MESSAGES/sphinx.po b/sphinx_rtd_theme/locale/en/LC_MESSAGES/sphinx.po index 52092b44c..5fdd98698 100644 --- a/sphinx_rtd_theme/locale/en/LC_MESSAGES/sphinx.po +++ b/sphinx_rtd_theme/locale/en/LC_MESSAGES/sphinx.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: sphinx_rtd_theme 0.4.3.dev0\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2019-07-19 12:32-0600\n" +"POT-Creation-Date: 2019-07-19 12:53-0600\n" "PO-Revision-Date: 2019-07-16 15:43-0600\n" "Last-Translator: FULL NAME \n" "Language: en\n" diff --git a/sphinx_rtd_theme/locale/es/LC_MESSAGES/sphinx.mo b/sphinx_rtd_theme/locale/es/LC_MESSAGES/sphinx.mo index 2771e95dbbd7ed44d22cb44655fa1a805378ccf1..2a25e1acc7269a176962f92c491cf1ce60bcdb19 100644 GIT binary patch delta 15 WcmX>tbXsV`H5MjQtbXsV`H5Mjg!_7BXidg_Mmj$r^ diff --git a/sphinx_rtd_theme/locale/es/LC_MESSAGES/sphinx.po b/sphinx_rtd_theme/locale/es/LC_MESSAGES/sphinx.po index 8b43c544f..4c42b678d 100644 --- a/sphinx_rtd_theme/locale/es/LC_MESSAGES/sphinx.po +++ b/sphinx_rtd_theme/locale/es/LC_MESSAGES/sphinx.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: sphinx_rtd_theme 0.4.3.dev0\n" "Report-Msgid-Bugs-To: support@readthedocs.org\n" -"POT-Creation-Date: 2019-07-19 12:32-0600\n" +"POT-Creation-Date: 2019-07-19 12:53-0600\n" "PO-Revision-Date: 2019-07-16 21:44+0000\n" "Last-Translator: Anthony , 2019\n" "Language: es\n" diff --git a/sphinx_rtd_theme/locale/nl/LC_MESSAGES/sphinx.mo b/sphinx_rtd_theme/locale/nl/LC_MESSAGES/sphinx.mo new file mode 100644 index 0000000000000000000000000000000000000000..36054bb829a0dbcdc01f8bd626756fe8a773ee16 GIT binary patch literal 465 zcmZutO-sW-5LNJ$qh}8*cu;WSCRN);EB#8PkZ5VE*RpNKG?MOy-A!qKh`+%9{&l=&}!DT-Cau=^-#=UH{-gEPuYEpiwry)x7+exPajcWhU- z&Lul-G4H~OhjF-nl;?7%r=&$mM{NtTvbeEVMJ_UV#}-SW4cb;|-=MMARmZ=fhEOh4 flF2k+jd^CBN0g}PL-f^cz`A0NIrH5*IUIZgiA#u} literal 0 HcmV?d00001 diff --git a/sphinx_rtd_theme/locale/nl/LC_MESSAGES/sphinx.po b/sphinx_rtd_theme/locale/nl/LC_MESSAGES/sphinx.po new file mode 100644 index 000000000..19e5b3f99 --- /dev/null +++ b/sphinx_rtd_theme/locale/nl/LC_MESSAGES/sphinx.po @@ -0,0 +1,145 @@ +# Dutch translations for sphinx_rtd_theme. +# Copyright (C) 2019 ORGANIZATION +# This file is distributed under the same license as the sphinx_rtd_theme +# project. +# FIRST AUTHOR , 2019. +# +msgid "" +msgstr "" +"Project-Id-Version: sphinx_rtd_theme 0.4.3.dev0\n" +"Report-Msgid-Bugs-To: support@readthedocs.org\n" +"POT-Creation-Date: 2019-07-19 12:53-0600\n" +"PO-Revision-Date: 2019-07-19 12:50-0600\n" +"Last-Translator: FULL NAME \n" +"Language: nl\n" +"Language-Team: nl \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.7.0\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:92 +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:39 +#, python-format +msgid "Last updated on %(last_updated)s." +msgstr "" + +#: sphinx_rtd_theme/footer.html:49 +#, python-format +msgid "Built with %(sphinx_web)s using a" +msgstr "" + +#: sphinx_rtd_theme/footer.html:49 +msgid "theme" +msgstr "" + +#: sphinx_rtd_theme/footer.html:49 +#, python-format +msgid "provided by %(readthedocs_web)s" +msgstr "" + +#: sphinx_rtd_theme/layout.html:61 +#, python-format +msgid "Search within %(docstitle)s" +msgstr "" + +#: sphinx_rtd_theme/layout.html:83 +msgid "About these documents" +msgstr "" + +#: sphinx_rtd_theme/layout.html:86 +msgid "Index" +msgstr "" + +#: sphinx_rtd_theme/layout.html:89 sphinx_rtd_theme/search.html:11 +msgid "Search" +msgstr "" + +#: sphinx_rtd_theme/layout.html:124 +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 "" + +#. The phrase "Read the Docs" is not translated +#: sphinx_rtd_theme/versions.html:24 +msgid "On Read the Docs" +msgstr "" + +#: sphinx_rtd_theme/versions.html:26 +msgid "Project Home" +msgstr "" + +#: sphinx_rtd_theme/versions.html:29 +msgid "Builds" +msgstr "" + +#: sphinx_rtd_theme/versions.html:33 +msgid "Free document hosting provided by" +msgstr "" + diff --git a/sphinx_rtd_theme/locale/ru/LC_MESSAGES/sphinx.mo b/sphinx_rtd_theme/locale/ru/LC_MESSAGES/sphinx.mo index 1b8a94b05f96d1626fa34c3f8b0704a2eac32b43..85763b6c4b202d032d7edcd56b2e4236e3b01723 100644 GIT binary patch delta 13 UcmeBW?PZ;?hRM`;\n" "Language: ru\n" diff --git a/sphinx_rtd_theme/locale/sphinx.pot b/sphinx_rtd_theme/locale/sphinx.pot index 54bb282fd..03844dcd1 100644 --- a/sphinx_rtd_theme/locale/sphinx.pot +++ b/sphinx_rtd_theme/locale/sphinx.pot @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: sphinx_rtd_theme 0.4.3.dev0\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2019-07-19 12:32-0600\n" +"POT-Creation-Date: 2019-07-19 12:53-0600\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" From d216dcf54dcd46554144d57cc322d4048476b1f9 Mon Sep 17 00:00:00 2001 From: Anthony Johnson Date: Fri, 19 Jul 2019 15:29:24 -0600 Subject: [PATCH 05/12] Fix local path insertion of package, fix more docs Add back git installation docs, we'll discuss this separately. --- docs/conf.py | 3 ++- docs/contributing.rst | 2 +- docs/installing.rst | 12 ++++++++++++ setup.py | 2 +- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index a8281b600..f6fc71e76 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -4,7 +4,8 @@ import os import re -sys.path.insert(0, os.path.abspath('..')) +if not 'READTHEDOCS' in os.environ: + sys.path.insert(0, os.path.abspath('..')) sys.path.append(os.path.abspath('./demo/')) from sphinx.locale import _ diff --git a/docs/contributing.rst b/docs/contributing.rst index 480205f7d..d4b06ea8d 100644 --- a/docs/contributing.rst +++ b/docs/contributing.rst @@ -44,7 +44,7 @@ Making changes Changes to the theme can be compiled and tested with the default Grunt task: -.. code:: +.. code:: console grunt diff --git a/docs/installing.rst b/docs/installing.rst index 978b30388..cf209e98d 100644 --- a/docs/installing.rst +++ b/docs/installing.rst @@ -27,3 +27,15 @@ In your ``conf.py`` file: strings in your translated output. If these strings are not translated in your output, either we lack the localized strings for your locale, or you are using an old version of the theme. + +Via Git or Download +=================== + +Symlink or subtree the ``sphinx_rtd_theme/sphinx_rtd_theme`` repository into your documentation at +``docs/_themes/sphinx_rtd_theme`` then add the following two settings to your Sphinx +``conf.py`` file: + +.. code:: python + + html_theme = "sphinx_rtd_theme" + html_theme_path = ["_themes", ] diff --git a/setup.py b/setup.py index 4f3163e85..eb40fccc8 100644 --- a/setup.py +++ b/setup.py @@ -35,7 +35,7 @@ ] }, install_requires=[ - 'sphinx' + 'sphinx<2.0' ], extras_require={ 'dev': [ From 715c0beacb5eebbf84cb477a02eaa986819178be Mon Sep 17 00:00:00 2001 From: Anthony Johnson Date: Wed, 24 Jul 2019 18:39:35 -0600 Subject: [PATCH 06/12] Add commands into setup.py and regenerate translations More fixes for docs --- docs/contributing.rst | 4 +- package.json | 6 -- setup.py | 49 ++++++++++++ sphinx_rtd_theme/footer.html | 3 +- .../locale/en/LC_MESSAGES/sphinx.mo | Bin 455 -> 455 bytes .../locale/en/LC_MESSAGES/sphinx.po | 2 +- .../locale/es/LC_MESSAGES/sphinx.mo | Bin 2379 -> 2379 bytes .../locale/es/LC_MESSAGES/sphinx.po | 2 +- .../locale/nl/LC_MESSAGES/sphinx.mo | Bin 465 -> 2188 bytes .../locale/nl/LC_MESSAGES/sphinx.po | 73 ++++++++++-------- .../locale/ru/LC_MESSAGES/sphinx.mo | Bin 653 -> 653 bytes .../locale/ru/LC_MESSAGES/sphinx.po | 2 +- sphinx_rtd_theme/locale/sphinx.pot | 2 +- sphinx_rtd_theme/search.html | 1 + 14 files changed, 97 insertions(+), 47 deletions(-) diff --git a/docs/contributing.rst b/docs/contributing.rst index d4b06ea8d..ab6dc574d 100644 --- a/docs/contributing.rst +++ b/docs/contributing.rst @@ -83,7 +83,7 @@ the following: .. code:: console - npm run i18n + python setup.py i18n This will extract new messages, upload the messages to Transifex, and will update our local translation files. Changes can be checked in to a branch and @@ -100,7 +100,7 @@ To release a new version of the theme, core team will take the following steps: we try to follow `semver `_, so be careful with breaking changes. #. Update the changelog (``docs/changelog.rst``) with the version information. #. Run ``grunt build`` to rebuild all the theme assets. -#. Run ``npm run i18n`` to compile new translation files and update Transifex +#. Run ``python setup.py i18n`` to compile new translation files and update Transifex #. Commit that change. #. Tag the release in git: ``git tag $NEW_VERSION``. #. Push the tag to GitHub: ``git push --tags origin``. diff --git a/package.json b/package.json index 0f128a9c6..3db297ba8 100644 --- a/package.json +++ b/package.json @@ -3,12 +3,6 @@ "main": "js/theme.js", "version": "0.4.3", "private": true, - "scripts": { - "i18n-extract": "python setup.py extract_messages && python setup.py update_catalog", - "i18n-update": "tx pull && tx push --source", - "i18n-compile": "python setup.py compile_catalog", - "i18n": "npm run i18n-extract && npm run i18n-update && npm run i18n-compile" - }, "devDependencies": { "bower": "^1.8.4", "browserify": "^13.0.0", diff --git a/setup.py b/setup.py index eb40fccc8..b7f33bf3b 100644 --- a/setup.py +++ b/setup.py @@ -4,11 +4,55 @@ .. _github: https://github.com/rtfd/sphinx_rtd_theme """ + +import subprocess +import distutils.cmd from io import open from setuptools import setup + from sphinx_rtd_theme import __version__ +class LocalizeCommand(distutils.cmd.Command): + + description = "Run all localization commands" + + user_options = [] + sub_commands = [ + ('extract_messages', None), + ('update_catalog', None), + ('transifex', None), + ('compile_catalog', None), + ] + + def initialize_options(self): + pass + + def finalize_options(self): + pass + + def run(self): + for cmd_name in self.get_sub_commands(): + self.run_command(cmd_name) + + +class TransifexCommand(distutils.cmd.Command): + + description = "Update translation files through Transifex" + + user_options = [] + + def initialize_options(self): + pass + + def finalize_options(self): + pass + + def run(self): + subprocess.run(['tx', 'push', '--source']) + subprocess.run(['tx', 'pull']) + + setup( name='sphinx_rtd_theme', version=__version__, @@ -18,6 +62,10 @@ author_email='dev@readthedocs.org', description='Read the Docs theme for Sphinx', long_description=open('README.rst', encoding='utf-8').read(), + cmdclass={ + 'i18n': LocalizeCommand, + 'transifex': TransifexCommand, + }, zip_safe=False, packages=['sphinx_rtd_theme'], package_data={'sphinx_rtd_theme': [ @@ -44,6 +92,7 @@ ], 'docs': [ 'sphinxcontrib-httpdomain', + 'sphinx_rtd_theme==0.4.3', ] }, classifiers=[ diff --git a/sphinx_rtd_theme/footer.html b/sphinx_rtd_theme/footer.html index 889578828..edbd8f7c5 100644 --- a/sphinx_rtd_theme/footer.html +++ b/sphinx_rtd_theme/footer.html @@ -26,7 +26,8 @@ {%- endif %} {%- if build_id and build_url %} - + z + {# Translators: Build is a noun, not a verb #} {% trans %}Build{% endtrans %} {{ build_id }}. diff --git a/sphinx_rtd_theme/locale/en/LC_MESSAGES/sphinx.mo b/sphinx_rtd_theme/locale/en/LC_MESSAGES/sphinx.mo index 13d0ea7d4f96dea83a7d80b421f824cec19d5b4e..09d02ad5aca986acaf195445994830fdd9af3d52 100644 GIT binary patch delta 19 acmX@ke4Kg091bHB1w(Ty6O)Zglo\n" "Language: en\n" diff --git a/sphinx_rtd_theme/locale/es/LC_MESSAGES/sphinx.mo b/sphinx_rtd_theme/locale/es/LC_MESSAGES/sphinx.mo index 2a25e1acc7269a176962f92c491cf1ce60bcdb19..47cee53e2d8a459bfa2773e35e30bb5aa0fe4818 100644 GIT binary patch delta 21 ccmX>tbXsV`1r`n?69q$aD-)B=H&}{U08&u~-2eap delta 21 ccmX>tbXsV`1r`oNO9ewCD^ugmH&}{U08&&2+yDRo diff --git a/sphinx_rtd_theme/locale/es/LC_MESSAGES/sphinx.po b/sphinx_rtd_theme/locale/es/LC_MESSAGES/sphinx.po index 4c42b678d..d6f38b894 100644 --- a/sphinx_rtd_theme/locale/es/LC_MESSAGES/sphinx.po +++ b/sphinx_rtd_theme/locale/es/LC_MESSAGES/sphinx.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: sphinx_rtd_theme 0.4.3.dev0\n" "Report-Msgid-Bugs-To: support@readthedocs.org\n" -"POT-Creation-Date: 2019-07-19 12:53-0600\n" +"POT-Creation-Date: 2019-07-24 17:44-0600\n" "PO-Revision-Date: 2019-07-16 21:44+0000\n" "Last-Translator: Anthony , 2019\n" "Language: es\n" diff --git a/sphinx_rtd_theme/locale/nl/LC_MESSAGES/sphinx.mo b/sphinx_rtd_theme/locale/nl/LC_MESSAGES/sphinx.mo index 36054bb829a0dbcdc01f8bd626756fe8a773ee16..64b237639014becb8e39b7c5bad466b62e3b5f9e 100644 GIT binary patch literal 2188 zcmZ{k&u?2r5XToNzYIc!QlSb|rl5*M^!Y~`n&K*mx=GViNs}fah;k@vzsd8)&$~~% z`|LPyL6r~!t`+}5FTjZdM-E6FxpC{HwO?(wqL%YMp2_UY?Cjg`Z!a9V zE$}&szgO`0>?6UNeExxb9Ol2^U+kN5Hkhz79SQ`$O=`N0|RF;4SbEFw8whvCzk7q3Fe?$vyctJEqvQ@-A!dL?c&eJbI1{ zPkrUvbb7{RZKV%x_PIIhD0fOHB*i6@4XjGqUM!iG!=tZLBV#9)W97+cYAD~#TOIae z&x-O_^5(R;CY$225uD;52w`pVq)jbMDlt|uW;=BrXy0PEm~Gg_ z=(P~AFp*+B(P|tOyQ-t^@a?fazBvq{YI(kVwj6V>TH4~wSRbvsM8#1fPh7NP>a@Im zadqw8i%Uye%iG(f&5fPt5(Aac@@fDTNm)+Obl*RC;6Ubd??6jUB1a3^OA@CpnIxPC6YM(GJUQotE-2{+YJ- znX6YS{eHjfLn^h$2j!OOR;ET%@mS(2wQB9`Tk{p2R%T0^X>Mg2T{gDskUkrlZgK7c zjeai9Xgak>wb|18>iY6zh_!OHbjfIsn;Pv5GPLILo>#I|Dt&=kZD}3*#oX^j=O=NY zuRXTWvTm6em#R+Zo646~ShEecC~6Gq)R0Y1X|BA03Sy(jmSR4fTu9cUVe&p+jeB%r zg&`pQn7ZsAREOYVthrAeh6020<0+MBaG!05Ocr#aG17^NuTYBn96>8q(6@49k?0wN zb_)dy1ql5g8k@xM8aoya=^gI;NGU?ehe*e+NfUh$4`M7~?O-Y87noJjiqC>-- zkybEuO~R?#@8D=~OFOK~Vi&h38DEQO)nIW0ONS3T)C(Ml9-0J!nBLRK*;HEd|0)MV zt+^BGLOK+b%tDbu^31?YsAq7^6CBDoD>|bam=duaO>m?Y46%S(Ah3`KI#l}_OM`L* mQ6Ok9(xtHpQ<})bPv7Wq=tx4?#$|zNFwSFi77rB-DgFb3^lX6u delta 173 zcmeAXyvVF`Pl#nI0}wC*u?!HafH+7%2gqIwl+*>%lfzit#fwV|3i69e9EwsCQ%W*Y zQ}UCG_413-C$D0W;V`sRFf_6HqbRNGce%tNh~hW4Jk^@E6zzQ$uF`} za0~VEQSfv0bycu&^>y_0ad32T333e%wwo-&D$AFbqhRCX, 2019. # +# Translators: +# Jesse Tan, 2019 msgid "" msgstr "" "Project-Id-Version: sphinx_rtd_theme 0.4.3.dev0\n" -"Report-Msgid-Bugs-To: support@readthedocs.org\n" -"POT-Creation-Date: 2019-07-19 12:53-0600\n" -"PO-Revision-Date: 2019-07-19 12:50-0600\n" -"Last-Translator: FULL NAME \n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2019-07-24 17:44-0600\n" +"PO-Revision-Date: 2019-07-16 21:44+0000\n" +"Last-Translator: Jesse Tan, 2019\n" "Language: nl\n" -"Language-Team: nl \n" +"Language-Team: Dutch " +"(https://www.transifex.com/readthedocs/teams/101354/nl/)\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" @@ -21,125 +24,127 @@ msgstr "" #: sphinx_rtd_theme/breadcrumbs.html:31 msgid "Docs" -msgstr "" +msgstr "Documentatie" #: sphinx_rtd_theme/breadcrumbs.html:43 sphinx_rtd_theme/breadcrumbs.html:45 msgid "Edit on GitHub" -msgstr "" +msgstr "Bewerk op GitHub" #: sphinx_rtd_theme/breadcrumbs.html:50 sphinx_rtd_theme/breadcrumbs.html:52 msgid "Edit on Bitbucket" -msgstr "" +msgstr "Bewerk op BitBucket" #: sphinx_rtd_theme/breadcrumbs.html:57 sphinx_rtd_theme/breadcrumbs.html:59 msgid "Edit on GitLab" -msgstr "" +msgstr "Bewerk op GitLab" #: sphinx_rtd_theme/breadcrumbs.html:62 sphinx_rtd_theme/breadcrumbs.html:64 msgid "View page source" -msgstr "" +msgstr "Bekijk paginabron" #: sphinx_rtd_theme/breadcrumbs.html:74 sphinx_rtd_theme/footer.html:5 msgid "Next" -msgstr "" +msgstr "Volgende" #: sphinx_rtd_theme/breadcrumbs.html:77 sphinx_rtd_theme/footer.html:8 msgid "Previous" -msgstr "" +msgstr "Vorige" #: sphinx_rtd_theme/footer.html:21 sphinx_rtd_theme/footer.html:24 #: sphinx_rtd_theme/layout.html:92 msgid "Copyright" -msgstr "" +msgstr "Copyright" #: sphinx_rtd_theme/footer.html:30 msgid "Build" -msgstr "" +msgstr "Bouwsel" #: sphinx_rtd_theme/footer.html:35 msgid "Revision" -msgstr "" +msgstr "Revisie" #: sphinx_rtd_theme/footer.html:39 #, python-format msgid "Last updated on %(last_updated)s." -msgstr "" +msgstr "Laatste update op %(last_updated)s." #: sphinx_rtd_theme/footer.html:49 #, python-format msgid "Built with %(sphinx_web)s using a" -msgstr "" +msgstr "Gebouwd met %(sphinx_web)s met een" #: sphinx_rtd_theme/footer.html:49 msgid "theme" -msgstr "" +msgstr "thema" #: sphinx_rtd_theme/footer.html:49 #, python-format msgid "provided by %(readthedocs_web)s" -msgstr "" +msgstr "geleverd door %(readthedocs_web)s" #: sphinx_rtd_theme/layout.html:61 #, python-format msgid "Search within %(docstitle)s" -msgstr "" +msgstr "Zoek binnen %(docstitle)s" #: sphinx_rtd_theme/layout.html:83 msgid "About these documents" -msgstr "" +msgstr "Over deze documenten" #: sphinx_rtd_theme/layout.html:86 msgid "Index" -msgstr "" +msgstr "Index" #: sphinx_rtd_theme/layout.html:89 sphinx_rtd_theme/search.html:11 msgid "Search" -msgstr "" +msgstr "Zoek" #: sphinx_rtd_theme/layout.html:124 msgid "Logo" -msgstr "" +msgstr "Logo" #: sphinx_rtd_theme/search.html:26 msgid "Please activate JavaScript to enable the search functionality." -msgstr "" +msgstr "Zet JavaScript aan om de zoekfunctie mogelijk te maken." #: sphinx_rtd_theme/search.html:33 msgid "Search Results" -msgstr "" +msgstr "Zoekresultaten" #: 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 "" +"Zoekpoging vond geen documenten. Zorg ervoor dat alle woorden correct " +"zijn gespeld en dat voldoende categorieën zijn geselecteerd." #: sphinx_rtd_theme/searchbox.html:4 msgid "Search docs" -msgstr "" +msgstr "Zoek in documentatie" #: sphinx_rtd_theme/versions.html:11 msgid "Versions" -msgstr "" +msgstr "Versies" #: sphinx_rtd_theme/versions.html:17 msgid "Downloads" -msgstr "" +msgstr "Downloads" #. The phrase "Read the Docs" is not translated #: sphinx_rtd_theme/versions.html:24 msgid "On Read the Docs" -msgstr "" +msgstr "Op Read the Docs" #: sphinx_rtd_theme/versions.html:26 msgid "Project Home" -msgstr "" +msgstr "Project Home" #: sphinx_rtd_theme/versions.html:29 msgid "Builds" -msgstr "" +msgstr "Bouwsels" #: sphinx_rtd_theme/versions.html:33 msgid "Free document hosting provided by" -msgstr "" +msgstr "Gratis hosting voor documentatie verzorgd door" diff --git a/sphinx_rtd_theme/locale/ru/LC_MESSAGES/sphinx.mo b/sphinx_rtd_theme/locale/ru/LC_MESSAGES/sphinx.mo index 85763b6c4b202d032d7edcd56b2e4236e3b01723..aa8022ea906c61df7dcfc8c455a943370bb97585 100644 GIT binary patch delta 19 acmeBW?PZ;?jKj!8!O+~w#AM^T`-}iOAqFx4 delta 19 acmeBW?PZ;?jKk1U!O+Oc)Oh2%`-}iOB?d77 diff --git a/sphinx_rtd_theme/locale/ru/LC_MESSAGES/sphinx.po b/sphinx_rtd_theme/locale/ru/LC_MESSAGES/sphinx.po index dce819c25..96e9bfdbe 100644 --- a/sphinx_rtd_theme/locale/ru/LC_MESSAGES/sphinx.po +++ b/sphinx_rtd_theme/locale/ru/LC_MESSAGES/sphinx.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: sphinx_rtd_theme 0.4.3.dev0\n" "Report-Msgid-Bugs-To: support@readthedocs.org\n" -"POT-Creation-Date: 2019-07-19 12:53-0600\n" +"POT-Creation-Date: 2019-07-24 17:44-0600\n" "PO-Revision-Date: 2019-07-16 21:44+0000\n" "Last-Translator: FULL NAME \n" "Language: ru\n" diff --git a/sphinx_rtd_theme/locale/sphinx.pot b/sphinx_rtd_theme/locale/sphinx.pot index 03844dcd1..4cf77f004 100644 --- a/sphinx_rtd_theme/locale/sphinx.pot +++ b/sphinx_rtd_theme/locale/sphinx.pot @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: sphinx_rtd_theme 0.4.3.dev0\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2019-07-19 12:53-0600\n" +"POT-Creation-Date: 2019-07-24 17:44-0600\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/sphinx_rtd_theme/search.html b/sphinx_rtd_theme/search.html index 16bef015e..252be247d 100644 --- a/sphinx_rtd_theme/search.html +++ b/sphinx_rtd_theme/search.html @@ -30,6 +30,7 @@ {% if search_performed %} + {# Translators: Search is a noun, not a verb #}

{{ _('Search Results') }}

{% if not search_results %}

{{ _('Your search did not match any documents. Please make sure that all words are spelled correctly and that you\'ve selected enough categories.') }}

From ec7704800d20f11efa686e517de2c3f0b58b461b Mon Sep 17 00:00:00 2001 From: Anthony Johnson Date: Wed, 24 Jul 2019 18:46:43 -0600 Subject: [PATCH 07/12] Another test --- .readthedocs.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.readthedocs.yml b/.readthedocs.yml index 0b03b6346..4c09c21aa 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -6,3 +6,5 @@ python: path: . extra_requirements: - docs + - method: setuptools + path: . From 16e36af58ce5a170a82b9f7c9b5da427a9ab5efc Mon Sep 17 00:00:00 2001 From: Anthony Johnson Date: Wed, 24 Jul 2019 19:24:16 -0600 Subject: [PATCH 08/12] Another test --- .readthedocs.yml | 3 +-- docs/requirements.txt | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 docs/requirements.txt diff --git a/.readthedocs.yml b/.readthedocs.yml index 4c09c21aa..d10f4bd3a 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -6,5 +6,4 @@ python: path: . extra_requirements: - docs - - method: setuptools - path: . + - requirements: docs/requirements.txt diff --git a/docs/requirements.txt b/docs/requirements.txt new file mode 100644 index 000000000..483a4e960 --- /dev/null +++ b/docs/requirements.txt @@ -0,0 +1 @@ +sphinx_rtd_theme From 0e0ccffe18f1243429138f2382c0d8a076c56eb1 Mon Sep 17 00:00:00 2001 From: Anthony Johnson Date: Wed, 24 Jul 2019 23:36:13 -0600 Subject: [PATCH 09/12] Replace with requirements file, RTD doesn't handle these patterns well. --- .readthedocs.yml | 4 ---- docs/requirements.txt | 3 ++- setup.py | 8 +------- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index d10f4bd3a..379e5c564 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -2,8 +2,4 @@ version: 2 python: version: 3.6 install: - - method: pip - path: . - extra_requirements: - - docs - requirements: docs/requirements.txt diff --git a/docs/requirements.txt b/docs/requirements.txt index 483a4e960..7ca9f0775 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1 +1,2 @@ -sphinx_rtd_theme +sphinx<2 +sphinxcontrib-httpdomain diff --git a/setup.py b/setup.py index b7f33bf3b..ad2b96c45 100644 --- a/setup.py +++ b/setup.py @@ -10,8 +10,6 @@ from io import open from setuptools import setup -from sphinx_rtd_theme import __version__ - class LocalizeCommand(distutils.cmd.Command): @@ -55,7 +53,7 @@ def run(self): setup( name='sphinx_rtd_theme', - version=__version__, + version='0.4.3.dev0', url='https://github.com/rtfd/sphinx_rtd_theme/', license='MIT', author='Dave Snider, Read the Docs, Inc. & contributors', @@ -90,10 +88,6 @@ def run(self): 'transifex-client', 'sphinxcontrib-httpdomain', ], - 'docs': [ - 'sphinxcontrib-httpdomain', - 'sphinx_rtd_theme==0.4.3', - ] }, classifiers=[ 'Framework :: Sphinx', From 5052143f79534dc9466012f40ce42ded31e77e2a Mon Sep 17 00:00:00 2001 From: Anthony Johnson Date: Wed, 24 Jul 2019 23:42:25 -0600 Subject: [PATCH 10/12] Undoing test fixes --- docs/contributing.rst | 6 +++--- setup.py | 10 ++++++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/docs/contributing.rst b/docs/contributing.rst index ab6dc574d..7136fbd52 100644 --- a/docs/contributing.rst +++ b/docs/contributing.rst @@ -25,7 +25,7 @@ Set up your environment .. code:: console - pip install -e '.[docs]' + pip install -e '.[dev]' #. Install SASS. @@ -83,7 +83,7 @@ the following: .. code:: console - python setup.py i18n + python setup.py update_translations This will extract new messages, upload the messages to Transifex, and will update our local translation files. Changes can be checked in to a branch and @@ -100,7 +100,7 @@ To release a new version of the theme, core team will take the following steps: we try to follow `semver `_, so be careful with breaking changes. #. Update the changelog (``docs/changelog.rst``) with the version information. #. Run ``grunt build`` to rebuild all the theme assets. -#. Run ``python setup.py i18n`` to compile new translation files and update Transifex +#. Run ``python setup.py update_translations`` to compile new translation files and update Transifex #. Commit that change. #. Tag the release in git: ``git tag $NEW_VERSION``. #. Push the tag to GitHub: ``git push --tags origin``. diff --git a/setup.py b/setup.py index ad2b96c45..ecfa575dc 100644 --- a/setup.py +++ b/setup.py @@ -10,8 +10,10 @@ from io import open from setuptools import setup +from sphinx_rtd_theme import __version__ -class LocalizeCommand(distutils.cmd.Command): + +class UpdateTranslationsCommand(distutils.cmd.Command): description = "Run all localization commands" @@ -53,7 +55,7 @@ def run(self): setup( name='sphinx_rtd_theme', - version='0.4.3.dev0', + version=__version__, url='https://github.com/rtfd/sphinx_rtd_theme/', license='MIT', author='Dave Snider, Read the Docs, Inc. & contributors', @@ -61,7 +63,7 @@ def run(self): description='Read the Docs theme for Sphinx', long_description=open('README.rst', encoding='utf-8').read(), cmdclass={ - 'i18n': LocalizeCommand, + 'update_translations': UpdateTranslationsCommand, 'transifex': TransifexCommand, }, zip_safe=False, @@ -81,7 +83,7 @@ def run(self): ] }, install_requires=[ - 'sphinx<2.0' + 'sphinx' ], extras_require={ 'dev': [ From ad31326e3a7ad964b7fe879fe4b27c1b6492f3f9 Mon Sep 17 00:00:00 2001 From: Anthony Johnson Date: Wed, 24 Jul 2019 23:53:25 -0600 Subject: [PATCH 11/12] Some final cleanup --- .gitignore | 2 ++ docs/requirements.txt | 2 +- sphinx_rtd_theme/footer.html | 2 +- .../locale/en/LC_MESSAGES/sphinx.mo | Bin 455 -> 455 bytes .../locale/en/LC_MESSAGES/sphinx.po | 20 ++++++++++-------- .../locale/es/LC_MESSAGES/sphinx.mo | Bin 2379 -> 2379 bytes .../locale/es/LC_MESSAGES/sphinx.po | 20 ++++++++++-------- .../locale/nl/LC_MESSAGES/sphinx.mo | Bin 2188 -> 2188 bytes .../locale/nl/LC_MESSAGES/sphinx.po | 20 ++++++++++-------- .../locale/ru/LC_MESSAGES/sphinx.mo | Bin 653 -> 653 bytes .../locale/ru/LC_MESSAGES/sphinx.po | 20 ++++++++++-------- sphinx_rtd_theme/locale/sphinx.pot | 20 ++++++++++-------- 12 files changed, 59 insertions(+), 47 deletions(-) diff --git a/.gitignore b/.gitignore index 584ecb32e..49f63fe40 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,5 @@ package-lock.json pip-selfcheck.json sphinx_rtd_theme/static/fonts/Lato/ sphinx_rtd_theme/static/fonts/RobotoSlab/ +.python-version +.node-version diff --git a/docs/requirements.txt b/docs/requirements.txt index 7ca9f0775..056800449 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,2 +1,2 @@ -sphinx<2 +sphinx sphinxcontrib-httpdomain diff --git a/sphinx_rtd_theme/footer.html b/sphinx_rtd_theme/footer.html index edbd8f7c5..3b9bcb01d 100644 --- a/sphinx_rtd_theme/footer.html +++ b/sphinx_rtd_theme/footer.html @@ -26,7 +26,7 @@ {%- endif %} {%- if build_id and build_url %} - z + {# Translators: Build is a noun, not a verb #} {% trans %}Build{% endtrans %} {{ build_id }}. diff --git a/sphinx_rtd_theme/locale/en/LC_MESSAGES/sphinx.mo b/sphinx_rtd_theme/locale/en/LC_MESSAGES/sphinx.mo index 09d02ad5aca986acaf195445994830fdd9af3d52..8f6d534d5550857ebc704630b975dfbddd1dd101 100644 GIT binary patch delta 16 XcmX@ke4Kg0d{!f4D^tUbOOzP_F_#5L delta 16 XcmX@ke4Kg0d{#qqD-)BAOOzP_F}DRw diff --git a/sphinx_rtd_theme/locale/en/LC_MESSAGES/sphinx.po b/sphinx_rtd_theme/locale/en/LC_MESSAGES/sphinx.po index 62ef5260b..d1d89b740 100644 --- a/sphinx_rtd_theme/locale/en/LC_MESSAGES/sphinx.po +++ b/sphinx_rtd_theme/locale/en/LC_MESSAGES/sphinx.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: sphinx_rtd_theme 0.4.3.dev0\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2019-07-24 17:44-0600\n" +"POT-Creation-Date: 2019-07-24 23:51-0600\n" "PO-Revision-Date: 2019-07-16 15:43-0600\n" "Last-Translator: FULL NAME \n" "Language: en\n" @@ -52,29 +52,30 @@ msgstr "" msgid "Copyright" msgstr "" -#: sphinx_rtd_theme/footer.html:30 +#. Build is a noun, not a verb +#: sphinx_rtd_theme/footer.html:31 msgid "Build" msgstr "" -#: sphinx_rtd_theme/footer.html:35 +#: sphinx_rtd_theme/footer.html:36 msgid "Revision" msgstr "" -#: sphinx_rtd_theme/footer.html:39 +#: sphinx_rtd_theme/footer.html:40 #, python-format msgid "Last updated on %(last_updated)s." msgstr "" -#: sphinx_rtd_theme/footer.html:49 +#: sphinx_rtd_theme/footer.html:50 #, python-format msgid "Built with %(sphinx_web)s using a" msgstr "" -#: sphinx_rtd_theme/footer.html:49 +#: sphinx_rtd_theme/footer.html:50 msgid "theme" msgstr "" -#: sphinx_rtd_theme/footer.html:49 +#: sphinx_rtd_theme/footer.html:50 #, python-format msgid "provided by %(readthedocs_web)s" msgstr "" @@ -104,11 +105,12 @@ msgstr "" msgid "Please activate JavaScript to enable the search functionality." msgstr "" -#: sphinx_rtd_theme/search.html:33 +#. Search is a noun, not a verb +#: sphinx_rtd_theme/search.html:34 msgid "Search Results" msgstr "" -#: sphinx_rtd_theme/search.html:35 +#: sphinx_rtd_theme/search.html:36 msgid "" "Your search did not match any documents. Please make sure that all words " "are spelled correctly and that you've selected enough categories." diff --git a/sphinx_rtd_theme/locale/es/LC_MESSAGES/sphinx.mo b/sphinx_rtd_theme/locale/es/LC_MESSAGES/sphinx.mo index 47cee53e2d8a459bfa2773e35e30bb5aa0fe4818..47dba15ceebcb9eba5912019db7d56c645ee2229 100644 GIT binary patch delta 18 ZcmX>tbXsV`WfoQ=V=Gg`%{N$zSpY%<22ub3 delta 18 ZcmX>tbXsV`WfoRLb1M^*%{N$zSpY&P23G(8 diff --git a/sphinx_rtd_theme/locale/es/LC_MESSAGES/sphinx.po b/sphinx_rtd_theme/locale/es/LC_MESSAGES/sphinx.po index d6f38b894..b5b8b74da 100644 --- a/sphinx_rtd_theme/locale/es/LC_MESSAGES/sphinx.po +++ b/sphinx_rtd_theme/locale/es/LC_MESSAGES/sphinx.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: sphinx_rtd_theme 0.4.3.dev0\n" "Report-Msgid-Bugs-To: support@readthedocs.org\n" -"POT-Creation-Date: 2019-07-24 17:44-0600\n" +"POT-Creation-Date: 2019-07-24 23:51-0600\n" "PO-Revision-Date: 2019-07-16 21:44+0000\n" "Last-Translator: Anthony , 2019\n" "Language: es\n" @@ -51,29 +51,30 @@ msgstr "Anterior" msgid "Copyright" msgstr "Derechos de autor" -#: sphinx_rtd_theme/footer.html:30 +#. Build is a noun, not a verb +#: sphinx_rtd_theme/footer.html:31 msgid "Build" msgstr "Construido" -#: sphinx_rtd_theme/footer.html:35 +#: sphinx_rtd_theme/footer.html:36 msgid "Revision" msgstr "Revisión" -#: sphinx_rtd_theme/footer.html:39 +#: sphinx_rtd_theme/footer.html:40 #, python-format msgid "Last updated on %(last_updated)s." msgstr "Actualizado por última vez en %(last_updated)s." -#: sphinx_rtd_theme/footer.html:49 +#: sphinx_rtd_theme/footer.html:50 #, python-format msgid "Built with %(sphinx_web)s using a" msgstr "Construido con %(sphinx_web)s usando un" -#: sphinx_rtd_theme/footer.html:49 +#: sphinx_rtd_theme/footer.html:50 msgid "theme" msgstr "tema" -#: sphinx_rtd_theme/footer.html:49 +#: sphinx_rtd_theme/footer.html:50 #, python-format msgid "provided by %(readthedocs_web)s" msgstr "proporcionado por %(readthedocs_web)s" @@ -103,11 +104,12 @@ msgstr "Logotipo" 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 +#. Search is a noun, not a verb +#: sphinx_rtd_theme/search.html:34 msgid "Search Results" msgstr "Resultados de la búsqueda" -#: sphinx_rtd_theme/search.html:35 +#: sphinx_rtd_theme/search.html:36 msgid "" "Your search did not match any documents. Please make sure that all words " "are spelled correctly and that you've selected enough categories." diff --git a/sphinx_rtd_theme/locale/nl/LC_MESSAGES/sphinx.mo b/sphinx_rtd_theme/locale/nl/LC_MESSAGES/sphinx.mo index 64b237639014becb8e39b7c5bad466b62e3b5f9e..2182b6019347b9c38fd6a44b095d1c91631bafe5 100644 GIT binary patch delta 18 ZcmeAX>=E2>l7-dC*viy!^EsA%%m6uX1_%HE delta 18 ZcmeAX>=E2>l7-dK+{(mc^EsA%%m6u+1`PlJ diff --git a/sphinx_rtd_theme/locale/nl/LC_MESSAGES/sphinx.po b/sphinx_rtd_theme/locale/nl/LC_MESSAGES/sphinx.po index 097fac78d..f398ae75d 100644 --- a/sphinx_rtd_theme/locale/nl/LC_MESSAGES/sphinx.po +++ b/sphinx_rtd_theme/locale/nl/LC_MESSAGES/sphinx.po @@ -10,7 +10,7 @@ msgid "" msgstr "" "Project-Id-Version: sphinx_rtd_theme 0.4.3.dev0\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2019-07-24 17:44-0600\n" +"POT-Creation-Date: 2019-07-24 23:51-0600\n" "PO-Revision-Date: 2019-07-16 21:44+0000\n" "Last-Translator: Jesse Tan, 2019\n" "Language: nl\n" @@ -55,29 +55,30 @@ msgstr "Vorige" msgid "Copyright" msgstr "Copyright" -#: sphinx_rtd_theme/footer.html:30 +#. Build is a noun, not a verb +#: sphinx_rtd_theme/footer.html:31 msgid "Build" msgstr "Bouwsel" -#: sphinx_rtd_theme/footer.html:35 +#: sphinx_rtd_theme/footer.html:36 msgid "Revision" msgstr "Revisie" -#: sphinx_rtd_theme/footer.html:39 +#: sphinx_rtd_theme/footer.html:40 #, python-format msgid "Last updated on %(last_updated)s." msgstr "Laatste update op %(last_updated)s." -#: sphinx_rtd_theme/footer.html:49 +#: sphinx_rtd_theme/footer.html:50 #, python-format msgid "Built with %(sphinx_web)s using a" msgstr "Gebouwd met %(sphinx_web)s met een" -#: sphinx_rtd_theme/footer.html:49 +#: sphinx_rtd_theme/footer.html:50 msgid "theme" msgstr "thema" -#: sphinx_rtd_theme/footer.html:49 +#: sphinx_rtd_theme/footer.html:50 #, python-format msgid "provided by %(readthedocs_web)s" msgstr "geleverd door %(readthedocs_web)s" @@ -107,11 +108,12 @@ msgstr "Logo" msgid "Please activate JavaScript to enable the search functionality." msgstr "Zet JavaScript aan om de zoekfunctie mogelijk te maken." -#: sphinx_rtd_theme/search.html:33 +#. Search is a noun, not a verb +#: sphinx_rtd_theme/search.html:34 msgid "Search Results" msgstr "Zoekresultaten" -#: sphinx_rtd_theme/search.html:35 +#: sphinx_rtd_theme/search.html:36 msgid "" "Your search did not match any documents. Please make sure that all words " "are spelled correctly and that you've selected enough categories." diff --git a/sphinx_rtd_theme/locale/ru/LC_MESSAGES/sphinx.mo b/sphinx_rtd_theme/locale/ru/LC_MESSAGES/sphinx.mo index aa8022ea906c61df7dcfc8c455a943370bb97585..d13b88113f578ccd61eaec7758f3bdd6590112ef 100644 GIT binary patch delta 16 XcmeBW?PZ;?lGVuA%G7Y\n" "Language: ru\n" @@ -53,29 +53,30 @@ msgstr "" msgid "Copyright" msgstr "" -#: sphinx_rtd_theme/footer.html:30 +#. Build is a noun, not a verb +#: sphinx_rtd_theme/footer.html:31 msgid "Build" msgstr "" -#: sphinx_rtd_theme/footer.html:35 +#: sphinx_rtd_theme/footer.html:36 msgid "Revision" msgstr "" -#: sphinx_rtd_theme/footer.html:39 +#: sphinx_rtd_theme/footer.html:40 #, python-format msgid "Last updated on %(last_updated)s." msgstr "" -#: sphinx_rtd_theme/footer.html:49 +#: sphinx_rtd_theme/footer.html:50 #, python-format msgid "Built with %(sphinx_web)s using a" msgstr "" -#: sphinx_rtd_theme/footer.html:49 +#: sphinx_rtd_theme/footer.html:50 msgid "theme" msgstr "" -#: sphinx_rtd_theme/footer.html:49 +#: sphinx_rtd_theme/footer.html:50 #, python-format msgid "provided by %(readthedocs_web)s" msgstr "" @@ -105,11 +106,12 @@ msgstr "" msgid "Please activate JavaScript to enable the search functionality." msgstr "" -#: sphinx_rtd_theme/search.html:33 +#. Search is a noun, not a verb +#: sphinx_rtd_theme/search.html:34 msgid "Search Results" msgstr "" -#: sphinx_rtd_theme/search.html:35 +#: sphinx_rtd_theme/search.html:36 msgid "" "Your search did not match any documents. Please make sure that all words " "are spelled correctly and that you've selected enough categories." diff --git a/sphinx_rtd_theme/locale/sphinx.pot b/sphinx_rtd_theme/locale/sphinx.pot index 4cf77f004..1cb4b0753 100644 --- a/sphinx_rtd_theme/locale/sphinx.pot +++ b/sphinx_rtd_theme/locale/sphinx.pot @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: sphinx_rtd_theme 0.4.3.dev0\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2019-07-24 17:44-0600\n" +"POT-Creation-Date: 2019-07-24 23:51-0600\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -51,29 +51,30 @@ msgstr "" msgid "Copyright" msgstr "" -#: sphinx_rtd_theme/footer.html:30 +#. Build is a noun, not a verb +#: sphinx_rtd_theme/footer.html:31 msgid "Build" msgstr "" -#: sphinx_rtd_theme/footer.html:35 +#: sphinx_rtd_theme/footer.html:36 msgid "Revision" msgstr "" -#: sphinx_rtd_theme/footer.html:39 +#: sphinx_rtd_theme/footer.html:40 #, python-format msgid "Last updated on %(last_updated)s." msgstr "" -#: sphinx_rtd_theme/footer.html:49 +#: sphinx_rtd_theme/footer.html:50 #, python-format msgid "Built with %(sphinx_web)s using a" msgstr "" -#: sphinx_rtd_theme/footer.html:49 +#: sphinx_rtd_theme/footer.html:50 msgid "theme" msgstr "" -#: sphinx_rtd_theme/footer.html:49 +#: sphinx_rtd_theme/footer.html:50 #, python-format msgid "provided by %(readthedocs_web)s" msgstr "" @@ -103,11 +104,12 @@ msgstr "" msgid "Please activate JavaScript to enable the search functionality." msgstr "" -#: sphinx_rtd_theme/search.html:33 +#. Search is a noun, not a verb +#: sphinx_rtd_theme/search.html:34 msgid "Search Results" msgstr "" -#: sphinx_rtd_theme/search.html:35 +#: sphinx_rtd_theme/search.html:36 msgid "" "Your search did not match any documents. Please make sure that all words " "are spelled correctly and that you've selected enough categories." From 1ef6b5b3b4439a70c3aeca3e1c42ca0fe8281c62 Mon Sep 17 00:00:00 2001 From: Anthony Johnson Date: Wed, 24 Jul 2019 23:55:34 -0600 Subject: [PATCH 12/12] Undo gruntfile changes --- Gruntfile.js | 36 +++--------------------------------- 1 file changed, 3 insertions(+), 33 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 9dd0db199..570abd245 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -140,10 +140,7 @@ module.exports = function(grunt) { cmd: 'bower update' }, build_sphinx: { - cmd: function (locale) { - locale = (typeof locale !== 'undefined') ? locale : 'en'; - return 'sphinx-build -D language=' + locale + ' docs/ docs/build/html' - } + cmd: 'sphinx-build docs/ docs/build' } }, clean: { @@ -187,33 +184,6 @@ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-open'); grunt.loadNpmTasks('grunt-browserify'); - grunt.registerTask('default', [ - 'exec:bower_update', - 'clean', - 'copy:fonts', - 'sass:dev', - 'browserify:dev', - 'usebanner', - 'exec:build_sphinx', - 'connect', - 'open', - 'watch' - ]); - grunt.registerTask('build', [ - 'exec:bower_update', - 'clean', - 'copy:fonts', - 'sass:build', - 'browserify:build', - 'uglify', - 'usebanner', - 'exec:build_sphinx' - ]); - grunt.registerTask('i18n', [ - 'exec:babel_extract', - 'exec:tx_push', - 'exec:tx_pull', - 'exec:babel_compile', - 'exec:build_sphinx:es' - ]); + grunt.registerTask('default', ['exec:bower_update','clean','copy:fonts','sass:dev','browserify:dev','usebanner','exec:build_sphinx','connect','open','watch']); + grunt.registerTask('build', ['exec:bower_update','clean','copy:fonts','sass:build','browserify:build','uglify','usebanner','exec:build_sphinx']); }