Hi,

I noticed a bug with MultimediaViewer but I am unsure if the best way is to fix it in MMV (in which case I would have gone to Bugzilla ;) or on Commons.

On Wikimedia Commons description pages, descriptions are usually labeled with language templates like {{fr|blabla}} {{en|blahblah}} etc.

Example:
<https://commons.wikimedia.org/wiki/File:Axis_axis_%28Nagarhole,_2010%29.jpg>
{{en|1=Chital (''Axis axis'') stag attempting to browse on a misty morning in Nagarhole National Park}}
{{fr|Un cerf axis (''Axis axis'') dans le Parc national de Nagarhole (Inde).}}

which generates the following markup :
<div class="description mw-content-ltr en" dir="ltr" lang="en" style=""><span class="language en" title=""><b>English:</b></span> Chital (<i>Axis axis</i>) stag attempting to browse on a misty morning in Nagarhole National Park</div>
<div class="description mw-content-ltr fr" dir="ltr" lang="fr" style=""><span class="language fr" title="Français"><b>Français&#160;:</b></span> Un cerf axis (<i>Axis axis</i>) dans le Parc national de Nagarhole (Inde).</div>

Some pages use the alternative {{Mld}} template (which IIRC implemented a language selection feature taken from Meta, which since then was folded back into the old way. I think. >_>).

Example:
<https://commons.wikimedia.org/wiki/File:RhB_Ge_4-4_II_Wiesener_Viadukt.jpg>
{{mld
|en=A RhB Ge 4/4 II
|fr=Une RhB Ge 4/4 II
}}

which makes the (different) markup:

<div class="multilingual">
<div class="description en lang-en" lang="en" style="margin:0.3em 0;line-height:1.2;direction:ltr;"><span class="langlabel-en" lang="en" style="font-weight:bold;">English&#160;:</span> A RhB Ge 4/4 II</div>
<div class="description fr lang-fr" lang="fr" style="margin:0.3em 0;line-height:1.2;direction:ltr;"><span class="langlabel-fr" lang="fr" style="font-weight:bold;">Français&#160;:</span> Une RhB Ge 4/4 II</div>
</div>

In the second case, MMV does not filter the “English” or “Français” label.

What’s the best way to deal with that? Alter the classes on Commons or add the feature to MMV?

(Feel free to copy/paste this email to Bugzilla/MediaWiki.org if it’s a better way to deal with this)

Thanks,
--
Jean-Frédéric