Hoi, At the Toolserver there is a (localisable) tool that allows for the localisation of texts in a SVG image.. Does your functionality work together with this ? Thanks, Gerard
On 8 December 2011 22:55, Harry Burt jarry1250@gmail.com wrote:
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