diff --git a/docs/community/topics/i18n.rst b/docs/community/topics/i18n.rst index 05797ccdb..e702d9b74 100644 --- a/docs/community/topics/i18n.rst +++ b/docs/community/topics/i18n.rst @@ -33,7 +33,7 @@ Remember to `manually escape variables {{- _("Next page") -}} @@ -54,7 +54,7 @@ When you add or change natural language text in the theme, you must update the m #. Generate/update the message catalog template (``POT`` file): .. code-block:: bash - + tox run -e i18n-extract #. Update the message catalogs (``PO`` files) for the existing locales: @@ -90,7 +90,7 @@ To add a new language, follow these steps: #. Make a copy of the ``POT`` file for this new language: .. code-block:: bash - + # for example, to add Quechua (ISO 639-1 code: qu) tox -e i18n-new-locale -- qu @@ -108,7 +108,7 @@ To contribute translations, follow these steps: #. Sign up for a `Transifex account `__. #. Join the `PyData Sphinx Theme project `__. -#. Select the language you want to translate. If the language you are looking for is not listed, you can `open an issue +#. Select the language you want to translate. If the language you are looking for is not listed, you can `open an issue on GitHub to request it `__. #. Now you are ready to start translating the theme. If you are new to Transifex you can visit the `Transifex documentation `__ for more information. @@ -132,7 +132,7 @@ Otherwise, the word order in other languages can be incorrect. In a Jinja templa .. code-block:: jinja {% trans provider=provider %}Edit on {{ provider }}{% endtrans %} - + The translatable string is extracted as the Python format string ``Edit on %(provider)s``. This is so that the same translatable string can be used in both Python code and Jinja templates. It is the translator's responsibility to use ``%(provider)s`` verbatim in the translation. If a non-translatable word or token (like HTML markup) is used as part of a phrase, it must also be included within the translatable string. For example: diff --git a/docs/user_guide/i18n.rst b/docs/user_guide/i18n.rst index 0b9695c57..88bb1ad9a 100644 --- a/docs/user_guide/i18n.rst +++ b/docs/user_guide/i18n.rst @@ -65,7 +65,7 @@ Note you will also need to install `pybabel \n" -"Language: ru\n" -"Language-Team: ru \n" -"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " -"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.16.0\n" #: docs/conf.py:108 msgid "Click to expand" diff --git a/src/pydata_sphinx_theme/locale/zh/LC_MESSAGES/sphinx.po b/src/pydata_sphinx_theme/locale/zh/LC_MESSAGES/sphinx.po index 23318dc0d..25ed5b963 100644 --- a/src/pydata_sphinx_theme/locale/zh/LC_MESSAGES/sphinx.po +++ b/src/pydata_sphinx_theme/locale/zh/LC_MESSAGES/sphinx.po @@ -5,18 +5,6 @@ # msgid "" msgstr "" -"Project-Id-Version: PROJECT VERSION\n" -"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2024-08-20 12:53+0100\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language: zh\n" -"Language-Team: zh \n" -"Plural-Forms: nplurals=1; plural=0;\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.16.0\n" #: docs/conf.py:108 msgid "Click to expand"