Page MenuHomePhabricator

Translatable modules: Content handler for MessageBundle
Closed, ResolvedPublic

Description

Translate extension provides a “message bundle” content handler.

As an initial step towards the support of translatable modules, this ticket will adapt the “message bundle” including format validation, error messages, permissions, etc.

See task T275976: JsonContent is not safe to extend for relevant information with regards to the implementation.

Outcome

It's possible to create pages with "message bundle" content format, that does basic schema validation. There is no integration with Lua modules or the translation interface yet.

Event Timeline

Change 638528 had a related patch set uploaded (by Nikerabbit; owner: Nikerabbit):
[mediawiki/extensions/Translate@master] Content model and handler for translatable modules

https://gerrit.wikimedia.org/r/638528

Based on my understanding of T275976: JsonContent is not safe to extend, extending JsonContent is okay because we do want to allow direct editing of the JSON and at least initially there won't even be another editor.

Change 638528 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] Content model and handler for translatable modules

https://gerrit.wikimedia.org/r/638528

This was deployed to translatewiki.net and QAd there.