Skip to content

Commit

Permalink
Updates for file src/pydata_sphinx_theme/locale/en/LC_MESSAGES/sphinx…
Browse files Browse the repository at this point in the history
….po in fr (#2014)

The following localization files have been updated:

Parameter | Value
---- | ----
Source File | src/pydata_sphinx_theme/locale/en/LC_MESSAGES/sphinx.po
Translation File |
src/pydata_sphinx_theme/locale/fr/LC_MESSAGES/sphinx.po
Language Code | fr
Transifex Project |
[pydata-sphinx-theme](https://app.transifex.com/12rambau/pydata-sphinx-theme/)
Transifex Resource | [src..LC_MESSAGES/sphinx.po
(main)](https://app.transifex.com/12rambau/pydata-sphinx-theme/79592a50a377d7a120926189491c3d76/)
Transifex Event | translated

---------

Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Tania Allard <taniar.allard@gmail.com>
  • Loading branch information
3 people authored Oct 17, 2024
1 parent 7cd6e5a commit e24ca8b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 19 deletions.
18 changes: 9 additions & 9 deletions src/pydata_sphinx_theme/locale/fr/LC_MESSAGES/sphinx.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
# FIRST AUTHOR <EMAIL@ADDRESS>, 2024.
#
# Translators:
# Denis Bitouzé <dbitouze@wanadoo.fr>, 2024
# Rambaud Pierrick <pierrick.rambaud49@gmail.com>, 2024
# Denis Bitouzé <dbitouze@wanadoo.fr>, 2024
#
msgid ""
msgstr ""

#: docs/conf.py:109
msgid "Click to expand"
msgstr "Cliquez pour développer"
msgstr "Cliquer pour développer"

#: docs/conf.py:110
msgid "Click to collapse"
Expand Down Expand Up @@ -40,7 +40,7 @@ msgstr "Erreur"

#: src/pydata_sphinx_theme/theme/pydata_sphinx_theme/search.html:9
msgid "Please activate JavaScript to enable the search functionality."
msgstr "Veuillez activer le JavaScript pour que la recherche fonctionne."
msgstr "Le JavaScript doit être activé pour que la recherche fonctionne."

#: src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/breadcrumbs.html:6
msgid "Breadcrumb"
Expand Down Expand Up @@ -71,7 +71,7 @@ msgstr "Modifier"

#: src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/indices.html:4
msgid "Indices"
msgstr "Indices"
msgstr "Index"

#: src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/indices.html:11
msgid "General Index"
Expand Down Expand Up @@ -114,11 +114,11 @@ msgstr "suivante"
#: src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/sidebar-nav-bs.html:3
#: src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/sidebar-nav-bs.html:4
msgid "Section Navigation"
msgstr "Navigation de la section"
msgstr "Navigation dans la section"

#: src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/sourcelink.html:5
msgid "Show Source"
msgstr "Montrer le code source"
msgstr "Afficher le code source"

#: src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/sphinx-version.html:4
#, python-format
Expand All @@ -131,7 +131,7 @@ msgstr ""

#: src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/theme-switcher.html:3
msgid "Color mode"
msgstr "Theme"
msgstr "Thème"

#: src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/theme-switcher.html:4
msgid "Light"
Expand All @@ -153,7 +153,7 @@ msgid ""
"%(theme_version)s."
msgstr ""
"Construit avec le <a href=\"https://pydata-sphinx-"
"theme.readthedocs.io/en/stable/index.html\">Thème PyData Sphinx</a> "
"theme.readthedocs.io/en/stable/index.html\">thème PyData Sphinx</a> "
"%(theme_version)s."

#: src/pydata_sphinx_theme/theme/pydata_sphinx_theme/sections/announcement.html:4
Expand Down Expand Up @@ -184,7 +184,7 @@ msgstr "Navigation dans le site"
#~ msgstr "Twitter"

#~ msgid "Site Navigation"
#~ msgstr "Navigation du site"
#~ msgstr "Navigation dans le site"

#~ msgid "© <a href=\"%(path)s\">Copyright</a> %(copyright)s."
#~ msgstr "© <a href=\"%(path)s\">Copyright</a> %(copyright)s."
Expand Down
12 changes: 2 additions & 10 deletions tests/test_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -990,22 +990,14 @@ def test_translations(sphinx_build_factory) -> None:
index = sphinx_build.html_tree("section1/index.html")

sidebar_primary = index.select(".bd-sidebar-primary")[0]
assert "Navigation de la section" in str(sidebar_primary)
assert "Navigation dans la section" in str(sidebar_primary)

sidebar_secondary = index.select(".bd-sidebar-secondary")[0]
assert "Montrer le code source" in str(sidebar_secondary)
assert "Modifier sur GitHub" in str(sidebar_secondary)

header = index.select(".bd-header")[0]
## TODO: update once translataion up to date
# assert "clair/sombre" in str(header)
# Text of theme switcher button have been changed,
# "light/dark" has been updated to "Color mode" and does not have a translation yet.
if "Color mode" not in str(header):
pytest.xfail(
"Please update test_build.py::test_translations now that new translation are available."
)
# End TODO
assert "Thème" in str(header)

footer = index.select(".bd-footer")[0]
assert "Copyright" in str(footer)
Expand Down

0 comments on commit e24ca8b

Please sign in to comment.