sphinx-doc / sphinx-doc/sphinx

Yandex Browser ignores the translation ban

Open
#12,420 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

builder:html i18n type:bug
Dominant language
Python
Stars
8k
Forks
2.6k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

Based on https://github.com/sphinx-doc/sphinx/pull/4424 , https://github.com/sphinx-doc/sphinx/issues/5727

The Yandex Browser translator is still trying to translate blocks with the class class="notranslate".
The code is translated, spaces are added, or an empty block is shown.

The solution is to add the translate="no" property.

How to Reproduce
  1. Open https://codeigniter4.github.io/userguide/testing/overview.html in YandexBrowser 24.4
  2. Translate page EN -> RU
Environment Information
Platform:              linux; (Linux-6.7.12-amd64-x86_64-with-glibc2.38)
Python version:        3.11.9 (main, Apr 10 2024, 13:16:36) [GCC 13.2.0])
Python implementation: CPython
Sphinx version:        5.3.0
Docutils version:      0.19
Jinja2 version:        3.1.4
Sphinx extensions
extensions = [
	'sphinxcontrib.phpdomain',
	'sphinx_rtd_theme',
]
Additional context

See screenshot bug.
Screenshot Translated

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the generated HTML for https://codeigniter4.github.io/userguide/testing/overview.html and inspect how blocks marked with class="notranslate" are emitted. Reproduce the issue in Yandex Browser using the steps provided, then verify that translated pages preserve those blocks without added spaces or empty content.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
documentation, internationalization
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.