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

ru: Replaced {{HTMLRefTable}} with markdown table #12019

Merged
merged 12 commits into from
Apr 13, 2023

Conversation

manjuu-eater
Copy link
Contributor

@manjuu-eater manjuu-eater commented Mar 4, 2023

Description

The {{HTMLRefTable}} macro became obsolete, and the entire table content was gone. So, I converted the macros as described below:

  1. Get the markdown corresponding to the "Element" cell of each table from the English version
  2. Set the markdowns to the "Element" cells in the translated version
  3. For each element (=HTML tag), get the first line of the translated version of the page
    (specifically, the first line that is not a front-matter, heading, or Lv1 list)
  4. Set the retrieved line to the "Description" cell
  5. If "Description" cell was empty, fill with en-US description ({{HTMLRefTable}} did not seem to have this process)

I am not entirely sure what the {{HTMLRefTable}} macro was actually doing.
I assumed it probably did something like the above.
A PR in the Japanese version (#11993) was determined that there was no problem.

I can't understand what the translated text means.
So, I would like the reviewer to do the following tasks:

  1. Since I did the conversion semi-mechanically, there may be some strange things in the text. Please check it lightly.
  2. Please compare with WayBackMachine page and check if there are any significant changes.
  3. The chapters that existed in the English version but were not in the translated version ("Sectioning root", "SVG and MathML") have been copied directly from the English version. Please translate them later.

I am writing this English text with using a translator. Sorry if there are parts that are difficult to read.

Thank you in advance.

Motivation

Additional details

WayBackMachine page: http://web.archive.org/web/20221214131651/https://developer.mozilla.org/ru/docs/Web/HTML/Element
current page: https://developer.mozilla.org/ru/docs/Web/HTML/Element

Related issues and pull requests

Relates to #11953

@manjuu-eater manjuu-eater requested a review from a team as a code owner March 4, 2023 22:02
@manjuu-eater manjuu-eater requested review from armanpwnz and removed request for a team March 4, 2023 22:02
@github-actions github-actions bot added the l10n-ru Issues related to Russian content. label Mar 4, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2023

Preview URLs

Flaws (94)

URL: /ru/docs/Web/HTML/Element
Title: Элемент
Flaw count: 94

  • 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/disabled does not exist but fell back to /en-US/docs/Web/HTML/Attributes/disabled
    • /ru/docs/Web/HTML/Attributes/elementtiming does not exist but fell back to /en-US/docs/Web/HTML/Attributes/elementtiming
    • and 75 more flaws omitted
  • broken_links:
    • Can't resolve /ru/docs/Web/Guide/HTML/Sections_and_Outlines_of_an_HTML5_document#Задание_разделов_в_HTML5
    • Can't resolve /ru/docs/Web/Guide/HTML/Sections_and_Outlines_of_an_HTML5_document#Корни_задания_разделов
    • Can use the English (en-US) link as a fallback
    • Can't resolve /ru/docs/Web/Guide/HTML/Content_categories#Потоковый_контент
    • Anchor not lowercase
    • and 8 more flaws omitted
  • translation_differences:
    • Differences in the important macros (0 in common of 2 possible)
External URLs (3)

URL: /ru/docs/Web/HTML/Element
Title: Элемент

(comment last updated: 2023-04-13 19:39:05)

files/ru/web/html/element/index.md Outdated Show resolved Hide resolved
files/ru/web/html/element/index.md Outdated Show resolved Hide resolved
files/ru/web/html/element/index.md Outdated Show resolved Hide resolved
files/ru/web/html/element/index.md Outdated Show resolved Hide resolved
files/ru/web/html/element/index.md Outdated Show resolved Hide resolved
files/ru/web/html/element/index.md Outdated Show resolved Hide resolved
files/ru/web/html/element/index.md Outdated Show resolved Hide resolved
files/ru/web/html/element/index.md Outdated Show resolved Hide resolved
files/ru/web/html/element/index.md Outdated Show resolved Hide resolved
files/ru/web/html/element/index.md Outdated Show resolved Hide resolved
@saionaro saionaro self-assigned this Apr 13, 2023
@saionaro
Copy link
Member

@manjuu-eater thank you!

@saionaro saionaro merged commit 3ff9d96 into mdn:main Apr 13, 2023
@manjuu-eater manjuu-eater deleted the htmlreftable-ru branch April 19, 2023 05:07
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.

Web/HTML/Element: All translated pages are missing table content
2 participants