Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yandex Browser ignores the translation ban #12420

Open
neznaika0 opened this issue Jun 8, 2024 · 1 comment
Open

Yandex Browser ignores the translation ban #12420

neznaika0 opened this issue Jun 8, 2024 · 1 comment

Comments

@neznaika0
Copy link

neznaika0 commented Jun 8, 2024

Describe the bug

Based on #4424 , #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

@n-peugnet
Copy link
Contributor

Indeed, it seems like it is now the standard way to request browsers not to translate part of a document: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/translate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants