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

chore(ru): remove {{SectionOnPage}} macro #13456

Merged
merged 7 commits into from
Aug 4, 2023

Conversation

yin1999
Copy link
Member

@yin1999 yin1999 commented May 28, 2023

Description

remove {{SectionOnPage}} macro, this PR does not update the link texts in document, but remove all the macro calls of {{SectionOnPage}}, trying to link to correct localized sections.

Related issues and pull requests

Fixes: #11131

@github-actions github-actions bot added the l10n-ru Issues related to Russian content. label May 28, 2023
@github-actions
Copy link
Contributor

github-actions bot commented May 28, 2023

Preview URLs (19 pages)
Flaws (747)

URL: /ru/docs/Web/Media/Formats/codecs_parameter
Title: Параметр "codecs" для распространённых типов носителей
Flaw count: 25

  • macros:
    • /ru/docs/Glossary/MIME does not exist but fell back to /en-US/docs/Glossary/MIME
    • /ru/docs/Glossary/SMPTE does not exist but fell back to /en-US/docs/Glossary/SMPTE
    • /ru/docs/Web/API/MediaSource/isTypeSupported does not exist but fell back to /en-US/docs/Web/API/MediaSource/isTypeSupported_static
  • broken_links:
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
    • and 17 more flaws omitted

URL: /ru/docs/Web/HTML/Element/del
Title: <del>: The Deleted Text element
Flaw count: 30

  • macros:
    • /ru/docs/Web/API/HTMLModElement does not exist but fell back to /en-US/docs/Web/API/HTMLModElement
    • This macro is deprecated; see https://github.com/orgs/mdn/discussions/347 to learn how to replace it.
    • This macro is deprecated; see https://github.com/orgs/mdn/discussions/347 to learn how to replace it.
    • /ru/docs/Web/HTML/Element/s does not exist but fell back to /en-US/docs/Web/HTML/Element/s
    • /ru/docs/Web/HTML/Attributes/accept does not exist but fell back to /en-US/docs/Web/HTML/Attributes/accept
    • and 15 more flaws omitted
  • broken_links:
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
    • and 4 more flaws omitted
  • translation_differences:
    • Differences in the important macros (4 in common of 5 possible)

URL: /ru/docs/Web/HTML/Element/Heading_Elements
Title: <h1>–<h6>: HTML-элементы заголовков секций
Flaw count: 12

  • macros:
    • This macro has been deprecated, and should be removed.
    • This macro has been deprecated, and should be removed.
    • This macro has been deprecated, and should be removed.
    • This macro has been deprecated, and should be removed.
    • This macro has been deprecated, and should be removed.
    • and 1 more flaws omitted
  • broken_links:
    • Anchor not lowercase
    • Anchor not lowercase
    • Anchor not lowercase
    • Can't resolve /ru/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-labelledby_attribute
    • Can't resolve /ru/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-labelledby_attribute
  • translation_differences:
    • Differences in the important macros (1 in common of 9 possible)

URL: /ru/docs/Web/API/RTCPeerConnection/currentLocalDescription
Title: RTCPeerConnection.currentLocalDescription
Flaw count: 14

  • macros:
    • /ru/docs/Web/API/RTCSessionDescription does not exist but fell back to /en-US/docs/Web/API/RTCSessionDescription
    • /ru/docs/Web/API/RTCPeerConnection/setLocalDescription does not exist but fell back to /en-US/docs/Web/API/RTCPeerConnection/setLocalDescription
    • /ru/docs/Web/API/RTCPeerConnection/localDescription does not exist but fell back to /en-US/docs/Web/API/RTCPeerConnection/localDescription
    • /ru/docs/Web/API/RTCSessionDescription does not exist but fell back to /en-US/docs/Web/API/RTCSessionDescription
    • /ru/docs/Web/API/RTCPeerConnection/pendingLocalDescription does not exist but fell back to /en-US/docs/Web/API/RTCPeerConnection/pendingLocalDescription
    • and 7 more flaws omitted
  • broken_links:
    • Can use the English (en-US) link as a fallback
  • translation_differences:
    • Differences in the important macros (2 in common of 4 possible)

URL: /ru/docs/Web/API/RTCPeerConnection/currentRemoteDescription
Title: RTCPeerConnection.currentRemoteDescription
Flaw count: 12

  • macros:
    • /ru/docs/Web/API/RTCSessionDescription does not exist but fell back to /en-US/docs/Web/API/RTCSessionDescription
    • /ru/docs/Web/API/RTCPeerConnection/setRemoteDescription does not exist but fell back to /en-US/docs/Web/API/RTCPeerConnection/setRemoteDescription
    • /ru/docs/Web/API/RTCPeerConnection/remoteDescription does not exist but fell back to /en-US/docs/Web/API/RTCPeerConnection/remoteDescription
    • /ru/docs/Web/API/RTCSessionDescription does not exist but fell back to /en-US/docs/Web/API/RTCSessionDescription
    • /ru/docs/Web/API/RTCPeerConnection/setRemoteDescription does not exist but fell back to /en-US/docs/Web/API/RTCPeerConnection/setRemoteDescription
    • and 5 more flaws omitted
  • broken_links:
    • Can use the English (en-US) link as a fallback
  • translation_differences:
    • Differences in the important macros (2 in common of 4 possible)

URL: /ru/docs/Web/API/setInterval
Title: WindowOrWorkerGlobalScope.setInterval()
Flaw count: 31

  • macros:
    • /ru/docs/Web/API/WindowOrWorkerGlobalScope/clearInterval does not exist but fell back to /en-US/docs/Web/API/clearInterval
    • wrong xref macro used (consider changing which macro you use)
    • /ru/docs/Web/JavaScript/Reference/eval does not exist but fell back to /en-US/docs/Web/JavaScript/Reference/Global_Objects/eval
    • /ru/docs/Web/API/WindowOrWorkerGlobalScope/clearInterval does not exist but fell back to /en-US/docs/Web/API/clearInterval
    • /ru/docs/Web/API/WindowOrWorkerGlobalScope/setTimeout redirects to /ru/docs/Web/API/setTimeout
    • and 8 more flaws omitted
  • broken_links:
    • Anchor not lowercase
    • Can use the English (en-US) link as a fallback
    • Can't resolve /files/3997/typewriter.html
    • Can use the English (en-US) link as a fallback
    • Anchor not lowercase
    • and 11 more flaws omitted
  • heading_links:
    • h2 heading contains an <a> tag
  • translation_differences:
    • Differences in the important macros (3 in common of 4 possible)

URL: /ru/docs/Web/API/Window/console
Title: Window.console
Flaw count: 2

  • macros:
    • `/home/runner/work/translated-content/translated-content/mdn/content/node_modules/@mdn/yari/kumascript/macros/Compat.ejs:1

1| <%
2| /*
3|
4| Retrieves MDN compat data for a given feature

No first query argument or 'browser-compat' front-matter value passed`

  • translation_differences:
    • Differences in the important macros (2 in common of 3 possible)

URL: /ru/docs/Web/API/MediaDevices
Title: MediaDevices
Flaw count: 7

  • macros:
    • /ru/docs/Web/API/MediaDevices/ondevicechange does not exist but fell back to /en-US/docs/Web/API/MediaDevices/devicechange_event
    • This macro has been deprecated, and should be removed.
    • /ru/docs/Web/API/MediaDevices/getSupportedConstraints does not exist but fell back to /en-US/docs/Web/API/MediaDevices/getSupportedConstraints
    • /ru/docs/Web/API/MediaTrackSupportedConstraints does not exist but fell back to /en-US/docs/Web/API/MediaTrackSupportedConstraints
  • broken_links:
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
  • translation_differences:
    • Differences in the important macros (3 in common of 4 possible)

URL: /ru/docs/Web/API/Canvas_API/Tutorial/Pixel_manipulation_with_canvas
Title: Пиксельная манипуляция с холстом
Flaw count: 6

  • macros:
    • /ru/docs/Web/API/CanvasRenderingContext2D/createImageData does not exist but fell back to /en-US/docs/Web/API/CanvasRenderingContext2D/createImageData
    • /ru/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled does not exist but fell back to /en-US/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled
  • broken_links:
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
  • translation_differences:
    • Differences in the important macros (1 in common of 7 possible)

URL: /ru/docs/Web/API/console/debug
Title: Console.debug()
Flaw count: 1

  • broken_links:
    • Can't resolve /ru/docs/Web/API/Console#Outputting_text_to_the_console

URL: /ru/docs/Web/API/Media_Capture_and_Streams_API/Taking_still_photos
Title: Захват кадров с WebRTC
Flaw count: 10

  • macros:
    • /ru/docs/Web/API/Window/addEventListener does not exist but fell back to /en-US/docs/Web/API/EventTarget/addEventListener
    • This macro has been deprecated, and should be removed.
    • This macro has been deprecated, and should be removed.
    • /ru/docs/Web/API/Navigator/mediaDevices/enumerateDevices does not exist but fell back to /en-US/docs/Web/API/MediaDevices/enumerateDevices
    • /ru/docs/Web/API/MediaDeviceInfo does not exist but fell back to /en-US/docs/Web/API/MediaDeviceInfo
    • and 2 more flaws omitted
  • broken_links:
    • Can't resolve /ru/docs/Tools/Style_Editor
    • Can use the English (en-US) link as a fallback
  • translation_differences:
    • Differences in the important macros (1 in common of 2 possible)

URL: /ru/docs/Web/API/Screen_Capture_API/Using_Screen_Capture
Title: Использование интерфейса Screen Capture API
Flaw count: 32

  • macros:
    • /ru/docs/Web/API/MediaDevices/getDisplayMedia does not exist but fell back to /en-US/docs/Web/API/MediaDevices/getDisplayMedia
    • /ru/docs/Web/API/MediaDevices/getDisplayMedia does not exist but fell back to /en-US/docs/Web/API/MediaDevices/getDisplayMedia
    • /ru/docs/Web/API/DisplayMediaStreamConstraints does not exist but fell back to /en-US/docs/Web/API/MediaDevices/getDisplayMedia
    • /ru/docs/Web/API/MediaTrackSupportedConstraints does not exist but fell back to /en-US/docs/Web/API/MediaTrackSupportedConstraints
    • /ru/docs/Web/API/MediaTrackSettings does not exist but fell back to /en-US/docs/Web/API/MediaTrackSettings
    • and 19 more flaws omitted
  • broken_links:
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
    • Can't resolve /ru/docs/Web/HTTP/Feature_Policy
    • Can use the English (en-US) link as a fallback
    • and 2 more flaws omitted
  • translation_differences:
    • Differences in the important macros (1 in common of 4 possible)

URL: /ru/docs/Web/API/MediaTrackConstraints/echoCancellation
Title: MediaTrackConstraints.echoCancellation
Flaw count: 10

  • macros:
    • /ru/docs/Web/API/ConstrainBoolean does not exist but fell back to /en-US/docs/Web/API/MediaTrackConstraints
    • /ru/docs/Web/API/MediaTrackSettings/echoCancellation does not exist but fell back to /en-US/docs/Web/API/MediaTrackSettings/echoCancellation
    • /ru/docs/Web/API/MediaTrackSupportedConstraints/echoCancellation does not exist but fell back to /en-US/docs/Web/API/MediaTrackSupportedConstraints/echoCancellation
    • /ru/docs/Web/API/MediaDevices/getSupportedConstraints does not exist but fell back to /en-US/docs/Web/API/MediaDevices/getSupportedConstraints
    • /ru/docs/Glossary/RTP does not exist but fell back to /en-US/docs/Glossary/RTP
    • and 2 more flaws omitted
  • broken_links:
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback

URL: /ru/docs/Web/CSS/CSS_colors/Applying_color
Title: Применение цвета к HTML-элементам с помощью CSS
Flaw count: 57

  • macros:
    • /ru/docs/Web/HTML/Attributes/accept does not exist but fell back to /en-US/docs/Web/HTML/Attributes/accept
    • /ru/docs/Web/HTML/Attributes/autocomplete does not exist but fell back to /en-US/docs/Web/HTML/Attributes/autocomplete
    • /ru/docs/Web/HTML/Attributes/capture does not exist but fell back to /en-US/docs/Web/HTML/Attributes/capture
    • /ru/docs/Web/HTML/Attributes/dirname does not exist but fell back to /en-US/docs/Web/HTML/Attributes/dirname
    • /ru/docs/Web/HTML/Attributes/disabled does not exist but fell back to /en-US/docs/Web/HTML/Attributes/disabled
    • and 38 more flaws omitted
  • broken_links:
    • Anchor not lowercase
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
    • Can't resolve /ru/docs/Learn/WebGL
    • and 8 more flaws omitted
  • translation_differences:
    • Differences in the important macros (1 in common of 7 possible)

URL: /ru/docs/Mozilla/Firefox/Releases/63
Title: Firefox 63 для разработчиков
Flaw count: 167

  • macros:
  • broken_links:
    • Can't resolve /ru/docs/Tools/Page_Inspector
    • Can't resolve /ru/docs/Tools/Page_Inspector/How_to/Edit_fonts
    • Can't resolve /ru/docs/Tools/Accessibility_inspector
    • Can't resolve /ru/docs/Tools/Accessibility_inspector
    • Can't resolve /ru/docs/Tools/Accessibility_inspector#Highlighting_of_UI_items
    • and 17 more flaws omitted

URL: /ru/docs/Mozilla/Firefox/Releases/64
Title: Firefox 64 для разработчиков
Flaw count: 115

  • macros:
  • broken_links:
    • Can't resolve /ru/docs/Tools/Accessibility_inspector#Выделение_элементов_интерфейса
    • Can't resolve /ru/docs/Tools/Responsive_Design_Mode
    • Can't resolve /ru/docs/Tools/Network_Monitor
    • Can use the English (en-US) link as a fallback
    • Can't resolve /ru/docs/Tools/Web_Console
    • and 17 more flaws omitted

URL: /ru/docs/Learn/Forms/Sending_forms_through_JavaScript
Title: Отправка форм при помощи JavaScript
Flaw count: 111

  • macros:
    • /ru/docs/Learn/CSS/Building_blocks/Cascade_layers does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Cascade_layers
    • /ru/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper
    • /ru/docs/Learn/CSS/Building_blocks/A_cool_looking_box does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/A_cool_looking_box
    • /ru/docs/Learn/CSS/CSS_layout/Media_queries does not exist but fell back to /en-US/docs/Learn/CSS/CSS_layout/Media_queries
    • /ru/docs/Learn/CSS/CSS_layout/Legacy_Layout_Methods does not exist but fell back to /en-US/docs/Learn/CSS/CSS_layout/Legacy_Layout_Methods
    • and 81 more flaws omitted
  • broken_links:
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
    • Can't resolve /ru/docs/AJAX
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
    • and 19 more flaws omitted
  • translation_differences:
    • Differences in the important macros (4 in common of 6 possible)

URL: /ru/docs/Learn/CSS/Building_blocks/Cascade_and_inheritance
Title: Каскад и наследование
Flaw count: 87

  • macros:
    • /ru/docs/Learn/CSS/Building_blocks/Cascade_layers does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Cascade_layers
    • /ru/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper
    • /ru/docs/Learn/CSS/Building_blocks/A_cool_looking_box does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/A_cool_looking_box
    • /ru/docs/Learn/CSS/CSS_layout/Media_queries does not exist but fell back to /en-US/docs/Learn/CSS/CSS_layout/Media_queries
    • /ru/docs/Learn/CSS/CSS_layout/Legacy_Layout_Methods does not exist but fell back to /en-US/docs/Learn/CSS/CSS_layout/Legacy_Layout_Methods
    • and 76 more flaws omitted
  • broken_links:
    • Can't resolve /ru/Learn/Getting_started_with_the_web/Installing_basic_software
    • Can't resolve /ru/Learn/Getting_started_with_the_web/Dealing_with_files
    • Can use the English (en-US) link as a fallback
    • Can't resolve /ru/docs/Web/CSS/CSS_Селекторы
    • Link points to the page it's already on
  • translation_differences:
    • Differences in the important macros (1 in common of 20 possible)

URL: /ru/docs/conflicting/Web/HTML/Element/input/datetime-local
Title: <input type="datetime">
Flaw count: 18

  • macros:
    • /ru/docs/Web/HTML/Attributes/accept does not exist but fell back to /en-US/docs/Web/HTML/Attributes/accept
    • /ru/docs/Web/HTML/Attributes/autocomplete does not exist but fell back to /en-US/docs/Web/HTML/Attributes/autocomplete
    • /ru/docs/Web/HTML/Attributes/capture does not exist but fell back to /en-US/docs/Web/HTML/Attributes/capture
    • /ru/docs/Web/HTML/Attributes/dirname does not exist but fell back to /en-US/docs/Web/HTML/Attributes/dirname
    • /ru/docs/Web/HTML/Attributes/disabled does not exist but fell back to /en-US/docs/Web/HTML/Attributes/disabled
    • and 11 more flaws omitted
  • broken_links:
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
External URLs (1)

URL: /ru/docs/Mozilla/Firefox/Releases/63
Title: Firefox 63 для разработчиков

(comment last updated: 2023-08-04 05:49:09)

@@ -25,7 +25,7 @@ translation_of: Web/HTML/Element/Heading_Elements
- Информация о заголовке может использоваться пользовательскими агентами, например, для автоматического создания оглавления для документа
- Не используйте низкие уровни чтобы снизить размер шрифта: используйте [CSS](/ru/docs/Web/CSS) {{cssxref("font-size")}} вместо.
- Избегайте пропуск уровней заголовков: всегда начинайте с `<h1>`, потом используйте `<h2>`, и так далее.
- Вам следует рассмотреть избегание использования \<h1> более раза на страницу. Смотрите {{SectionOnPage("/en-US/docs/Web/Guide/HTML/Using_HTML_sections_and_outlines", "Defining sections")}}.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The last sentence is not existed in en-US.

image

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is actually the information that is described in the next section in the original article. I has opened the issue on syncronization Russian translation with original article #13480

@yin1999 yin1999 marked this pull request as ready for review May 28, 2023 08:36
@yin1999 yin1999 requested a review from a team as a code owner May 28, 2023 08:36
@yin1999 yin1999 requested review from myshov and removed request for a team May 28, 2023 08:36
@github-actions github-actions bot added the merge conflicts 🚧 This pull request has merge conflicts that must be resolved. label Jul 15, 2023
@github-actions
Copy link
Contributor

This pull request has merge conflicts that must be resolved before it can be merged.

@github-actions github-actions bot added merge conflicts 🚧 This pull request has merge conflicts that must be resolved. and removed merge conflicts 🚧 This pull request has merge conflicts that must be resolved. labels Jul 15, 2023
@github-actions
Copy link
Contributor

This pull request has merge conflicts that must be resolved before it can be merged.

@github-actions github-actions bot removed the merge conflicts 🚧 This pull request has merge conflicts that must be resolved. label Jul 17, 2023
@sashasushko sashasushko requested review from sashasushko and removed request for myshov July 17, 2023 07:09
@github-actions github-actions bot added the merge conflicts 🚧 This pull request has merge conflicts that must be resolved. label Jul 17, 2023
@github-actions
Copy link
Contributor

This pull request has merge conflicts that must be resolved before it can be merged.

@github-actions github-actions bot added merge conflicts 🚧 This pull request has merge conflicts that must be resolved. and removed merge conflicts 🚧 This pull request has merge conflicts that must be resolved. labels Jul 18, 2023
@github-actions
Copy link
Contributor

This pull request has merge conflicts that must be resolved before it can be merged.

@github-actions github-actions bot removed the merge conflicts 🚧 This pull request has merge conflicts that must be resolved. label Jul 19, 2023
@github-actions github-actions bot added the merge conflicts 🚧 This pull request has merge conflicts that must be resolved. label Aug 3, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Aug 3, 2023

This pull request has merge conflicts that must be resolved before it can be merged.

@github-actions github-actions bot removed the merge conflicts 🚧 This pull request has merge conflicts that must be resolved. label Aug 4, 2023
Copy link
Collaborator

@queengooborg queengooborg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, this is LGTM!

@queengooborg queengooborg merged commit c74bab8 into mdn:main Aug 4, 2023
@yin1999 yin1999 deleted the remove-section branch August 4, 2023 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
l10n-ru Issues related to Russian content.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

remove {{SectionOnPage}} macro from translated-content
3 participants