DocStatus template throws error

RESOLVED FIXED

Status

Developer Documentation
Macros/Templates
RESOLVED FIXED
2 years ago
2 years ago

People

(Reporter: Victor Bychek, Unassigned)

Tracking

Details

(Reporter)

Description

2 years ago
User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 YaBrowser/16.2.0.3539 Safari/537.36

Steps to reproduce:

I updated Russian documentation status page https://developer.mozilla.org/ru/docs/MDN/Doc_status/CSS


Actual results:

I saw a scripting error


Expected results:

I mustn't see this error
Hey Victor,

the {{docstatus}} macro isn't meant to be used on the Russian page – it is for English status only. Instead what we want to display there is the status of the localization, which is done by this macro call:
{{LocalizationStatusInSection("/en-US/docs/Web/CSS", "ru")}}.

See the other locales, which have the same. E.g. https://developer.mozilla.org/de/docs/MDN/Doc_status/CSS

I fixed the Russian page to show the localization status.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → FIXED
(Reporter)

Comment 2

2 years ago
Thank you. I thought pages of other locales are out of date.
You need to log in before you can comment on or make changes to this bug.