From 326a12eb5645a1c7a3629f68266f295736b1c6c2 Mon Sep 17 00:00:00 2001 From: "Leonardo J. Caballero G" Date: Tue, 17 Apr 2018 18:05:34 -0400 Subject: [PATCH] Moved into sphinx_rtd_theme the locale directory --- MANIFEST.in | 4 +- setup.cfg | 20 ++++---- .../locale}/es/LC_MESSAGES/sphinx.po | 46 ++++++++----------- .../locale}/sphinx.pot | 10 ++-- sphinx_rtd_theme/theme.conf | 2 +- 5 files changed, 38 insertions(+), 44 deletions(-) rename {locale => sphinx_rtd_theme/locale}/es/LC_MESSAGES/sphinx.po (81%) rename {locale => sphinx_rtd_theme/locale}/sphinx.pot (93%) diff --git a/MANIFEST.in b/MANIFEST.in index f8e74640..3b468af4 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,9 +1,6 @@ include *.txt include babel.cfg include LICENSE -recursive-include locale *.mo -recursive-include locale *.pot -recursive-include locale *.po recursive-include sphinx_rtd_theme *.conf recursive-include sphinx_rtd_theme *.css recursive-include sphinx_rtd_theme *.eot @@ -13,4 +10,5 @@ recursive-include sphinx_rtd_theme *.svg recursive-include sphinx_rtd_theme *.ttf recursive-include sphinx_rtd_theme *.woff recursive-include sphinx_rtd_theme *.woff2 +recursive-include sphinx_rtd_theme/locale *.pot *.po *.mo prune build \ No newline at end of file diff --git a/setup.cfg b/setup.cfg index fe2f3e46..b8d96134 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,22 +1,22 @@ [bdist_wheel] universal = 1 -# How setup this file for babel configurations +# Babel configurations for setup.py scripts # http://babel.pocoo.org/en/latest/setup.html -[compile_catalog] -domain = sphinx -directory = locale/ - [extract_messages] mapping_file = babel.cfg -output_file = locale/sphinx.pot +output_file = sphinx_rtd_theme/locale/sphinx.pot keywords = _ l_ lazy_gettext [init_catalog] -input_file = locale/sphinx.pot -output_file = locale/$LANG/LC_MESSAGES/sphinx.po +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 = locale/sphinx.pot -output_dir = locale/ +input_file = sphinx_rtd_theme/locale/sphinx.pot +output_dir = sphinx_rtd_theme/locale/ + +[compile_catalog] +domain = sphinx +directory = sphinx_rtd_theme/locale/ diff --git a/locale/es/LC_MESSAGES/sphinx.po b/sphinx_rtd_theme/locale/es/LC_MESSAGES/sphinx.po similarity index 81% rename from locale/es/LC_MESSAGES/sphinx.po rename to sphinx_rtd_theme/locale/es/LC_MESSAGES/sphinx.po index 4a684351..17a10389 100644 --- a/locale/es/LC_MESSAGES/sphinx.po +++ b/sphinx_rtd_theme/locale/es/LC_MESSAGES/sphinx.po @@ -1,18 +1,17 @@ # Spanish translations for sphinx_rtd_theme. -# Copyright (C) 2017 Read the Docs +# Copyright (C) 2018 Read the Docs # This file is distributed under the same license as the sphinx_rtd_theme # project. -# FIRST AUTHOR , 2017. -# Leonardo Caballero , 2017. +# Leonardo J. Caballero G. , 2017, 2018. msgid "" msgstr "" -"Project-Id-Version: sphinx_rtd_theme 0.2.4\n" +"Project-Id-Version: sphinx_rtd_theme 0.3.0\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2018-04-14 15:30-0400\n" -"PO-Revision-Date: 2017-03-26 18:40-0400\n" -"Last-Translator: Leonardo Caballero \n" +"POT-Creation-Date: 2018-04-16 18:43-0400\n" +"PO-Revision-Date: 2018-04-16 12:39-0400\n" +"Last-Translator: Leonardo J. Caballero G. \n" "Language: es\n" -"Language-Team: Spanish Team\n" +"Language-Team: es\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" @@ -39,23 +38,23 @@ msgstr "Editar en GitLab" msgid "View page source" msgstr "Ver página de código fuente" -#: sphinx_rtd_theme/footer.html:5 +#: sphinx_rtd_theme/breadcrumbs.html:74 sphinx_rtd_theme/footer.html:5 msgid "Next" msgstr "Próximo" -#: sphinx_rtd_theme/footer.html:8 +#: sphinx_rtd_theme/breadcrumbs.html:77 sphinx_rtd_theme/footer.html:8 msgid "Previous" msgstr "Anterior" #: sphinx_rtd_theme/footer.html:19 #, python-format msgid "© Copyright %(copyright)s." -msgstr "© Copyright %(copyright)s." +msgstr "© Derechos de autor %(copyright)s." #: sphinx_rtd_theme/footer.html:21 #, python-format msgid "© Copyright %(copyright)s." -msgstr "© Copyright %(copyright)s." +msgstr "© Derechos de autor %(copyright)s." #: sphinx_rtd_theme/footer.html:26 #, python-format @@ -95,15 +94,14 @@ msgid "Last updated on %(last_updated)s." msgstr "Actualizado por última vez en %(last_updated)s." #: sphinx_rtd_theme/footer.html:46 -#, fuzzy msgid "" "Built with Sphinx using a theme provided by " "Read the Docs" msgstr "" "Construido con Sphinx usando un tema " -"proporcionado por Read the Docs" +" href=\"https://github.com/rtfd/sphinx_rtd_theme\">tema proporcionado" +" por Read the Docs" #: sphinx_rtd_theme/layout.html:37 #, python-format @@ -112,7 +110,7 @@ msgstr "Buscar en %(docstitle)s" #: sphinx_rtd_theme/layout.html:61 msgid "About these documents" -msgstr "Sobre este documento" +msgstr "Sobre esta documentación" #: sphinx_rtd_theme/layout.html:64 msgid "Index" @@ -124,7 +122,11 @@ msgstr "Búsqueda" #: sphinx_rtd_theme/layout.html:70 msgid "Copyright" -msgstr "Copyright" +msgstr "Derechos de autor" + +#: sphinx_rtd_theme/layout.html:107 +msgid "Logo" +msgstr "Logotipo" #: sphinx_rtd_theme/search.html:26 msgid "" @@ -179,13 +181,3 @@ msgstr "" "Alojamiento gratuito de documentos proporcionado por Read the Docs." -#~ msgid "Navigation" -#~ msgstr "Navegación" - -#~ msgid "" -#~ "Created using Sphinx %(sphinx_version)s." -#~ msgstr "" -#~ "Creado usando Sphinx %(sphinx_version)s." - diff --git a/locale/sphinx.pot b/sphinx_rtd_theme/locale/sphinx.pot similarity index 93% rename from locale/sphinx.pot rename to sphinx_rtd_theme/locale/sphinx.pot index 2188365a..7e16098e 100644 --- a/locale/sphinx.pot +++ b/sphinx_rtd_theme/locale/sphinx.pot @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: sphinx_rtd_theme 0.3.0\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2018-04-14 15:30-0400\n" +"POT-Creation-Date: 2018-04-16 18:43-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -38,11 +38,11 @@ msgstr "" msgid "View page source" msgstr "" -#: sphinx_rtd_theme/footer.html:5 +#: sphinx_rtd_theme/breadcrumbs.html:74 sphinx_rtd_theme/footer.html:5 msgid "Next" msgstr "" -#: sphinx_rtd_theme/footer.html:8 +#: sphinx_rtd_theme/breadcrumbs.html:77 sphinx_rtd_theme/footer.html:8 msgid "Previous" msgstr "" @@ -110,6 +110,10 @@ msgstr "" msgid "Copyright" msgstr "" +#: sphinx_rtd_theme/layout.html:107 +msgid "Logo" +msgstr "" + #: sphinx_rtd_theme/search.html:26 msgid "" "Please activate JavaScript to enable the search\n" diff --git a/sphinx_rtd_theme/theme.conf b/sphinx_rtd_theme/theme.conf index 530c1cdc..09fd1d41 100644 --- a/sphinx_rtd_theme/theme.conf +++ b/sphinx_rtd_theme/theme.conf @@ -1,7 +1,7 @@ [theme] inherit = basic stylesheet = css/theme.css -pygments_style = default +pygments_style = sphinx [options] canonical_url =