Closed Bug 1522206 Opened 5 years ago Closed 5 years ago

Error rendering AddonSidebar.ejs

Categories

(developer.mozilla.org Graveyard :: KumaScript, enhancement, P1)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wbamberg, Assigned: dflanagan+bugzilla)

Details

(Keywords: in-triage)

Cross-linking https://github.com/mdn/kumascript/issues/1052 thanks to John :)

Assignee: nobody → djf

It appears to me that the text array was not properly defined even before my big refactor. I'm guessing that we were silently ignoring the error before, maybe. The fix looks straightforward. And we ought to be able to translate the other strings like "Methods" and "Properties" as well.

Proposed patch under review: https://github.com/mdn/kumascript/pull/1053

Commits pushed to master at https://github.com/mdn/kumascript

https://github.com/mdn/kumascript/commit/55afee9fc3964dc4a85c87a0e99d0ad4b46c5846
Bug 1522206: Define translation text for the WebExtAPISidebar macro.

The WebExtAPISidebar macro (used by AddonSidebar) tries to access
a text[] array that does not exist. This appears to be an old bug
that only recently started throwing an error after the KumaScript
refactor.

This PR takes the text array from the APIRef macro and uses a
tweaked version in WebExtAPISidebar. It also adds translations
to the sidebar strings "Properties", "Methods", "Types" and "Events".

https://github.com/mdn/kumascript/commit/28c9720ad5f06aeeb724465c8ac716cc40483daa
Merge pull request #1053 from davidflanagan/webextsidebar

Bug 1522206: Define translation text for the WebExtAPISidebar macro.
Keywords: in-triage
Priority: -- → P1
Status: NEW → ASSIGNED

This has been deployed to production, and the 2074 documents with AddonSidebar have been re-rendered. It took 1405 seconds, which is faster than the ~2000 seconds it took before the KumaScript refactor.

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.