I once was thinking about something like that, but I didn't know the
<switch> tag existed.
Really awesome, great functionality! I hope it can be used on Commons soon.

2011/12/8 Harry Burt <jarry1...@gmail.com>

> Hey all.
>
> I'm looking for comments regarding an extension I knocked up today and its
> viability for Wikimedia wikis:
>
> https://github.com/Jarry1250/TranslateSvg
>
> The extension removes the need for duplicating a file (an administrative
> nightmare) when you want to translate it. It does this by creating an extra
> information flow:
>
> [[File:Example.svg|thumb|120px|lang=en]] => rsvg "...Example.svg"
> "120px-en-Example.svg" (lang='en') => Displays in English
> [[File:Example.svg|thumb|120px|lang=fr]] => rsvg "...Example.svg"
> "120px-fr-Example.svg" (lang='fr') => Displays in French
>
> It means rsvg SVG to PNG will finally "understand" the <switch> tag,
> enabling fully translatable SVGs [1]. It would eventually work in tandem
> with a translating interface, e.g. through TranslateWiki and/or a local
> special page.
>
> The only issue I know of is that the renderer will create a new file every
> time you change the language parameter, causing a drain on memory/storage
> space. How do we handle this for random thumb sizes at the moment?
>
> All comments appreciated
>
> Harry (User:Jarry1250)
>
> [1] https://developer.mozilla.org/en/SVG/Element/switch
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to