On 28 April 2014 09:39, Jean-Frédéric <[email protected]> wrote:
> 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 :</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 :</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 :</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?
>
I'd suggest altering the classes on Commons to be consistent would make
most sense, given that they mean the same thing here.
J.
--
James D. Forrester
Product Manager, VisualEditor
Wikimedia Foundation, Inc.
[email protected] | @jdforrester
_______________________________________________
Multimedia mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/multimedia