Page MenuHomePhabricator

Auto-wrap posted content blocks in source language
Closed, DuplicatePublic

Description

From http://lists.wikimedia.org/pipermail/wikimedia-l/2014-January/129723.html

When messages are posted in languages other than the content language of the wiki, please wrap them in a <div> with the lang and dir attributes set correctly, so users' browsers know how to handle them.


Version: master
Severity: enhancement

Details

Reference
bz60176

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:02 AM
bzimport added a project: MassMessage.
bzimport set Reference to bz60176.
bzimport added a subscriber: Unknown Object (MLST).

Is this a bug in the extension itself? I think it's message senders' responsibility to use proper markups.

For example some senders may use:

{{subst:#switch:{{subst:CONTENTLANGUAGE}}

en=some text
he=some other text in Hebrew
#default=<div lang=en dir=ltr>some text ''Please translate me''</div>

}}

It doesn't make sense to wrap text in <div lang=en dir=ltr></div> when the Hebrew branch is used.

(In reply to comment #1)

Is this a bug in the extension itself? I think it's message senders'
responsibility to use proper markups.

Agreed. MassMessage very little knowledge of message text and it could get complex trying to figure out what language a message is written in. For now [[m:MediaWiki:massmessage-summary]] has a note about this.

In the future when bug 54839 is fixed, it might make sense to automatically do this if we know a message is going to a wiki in a different language/direction.

(In reply to comment #3)

Agreed. MassMessage very little knowledge of message text and it could get

MassMessage has*