Please throw your suggestions on how the current template translation could be better. Take http://commons.wikimedia.org/wiki/Template:GFDL . One click should show the GFDL message in the desired language, without bringing out a whole new page. Ideally, the template message should change to show whatever language the image in included into; {{GFDL/es}} for Spanish Wikipedia, etc. Is it possible? Or does it require complicated changes to MediaWiki?
Are there other ways to improve this template situation?
/ Fredrik
_________________________________________________________ Flyger tiden iväg? Fånga dagen med Yahoo! Mails inbyggda kalender. Dessutom 250 MB gratis, virusscanning och antispam. Få den på: http://se.mail.yahoo.com
Fredrik Josefsson schrieb:
Ideally, the template message should change to show whatever language the image in included into; {{GFDL/es}} for Spanish Wikipedia, etc. Is it possible? Or does it require complicated changes to MediaWiki?
Your wish is good and important. Could this be done by AJAX? It sould work the following way: 1. translation of the template if the image is used from another wiki like es: 2. If the image is viewed through commons it the language of the template sould be in the user interface language
Note that I find it even more important to have this on Template:Information than on Template:GFDL
Regards
Robin
I have actually been working on just that for some time now. All I currently have is javascript hacks which would not even work if the person does not have javascript enabled. Javascript is also slow, another reason to avoid it. But I share your reason. See [[User talk:Cool Cat/Sandboxhttp://commons.wikimedia.org/wiki/User_talk:Cool_Cat/Sandbox]] for what I currently have. Feel free to edit that sanbox page. - Cool Cat
On 1/10/07, Robin Schwab contact@robinschwab.ch wrote:
Fredrik Josefsson schrieb:
Ideally, the template message should change to show whatever language the image in included into; {{GFDL/es}} for Spanish Wikipedia, etc. Is it possible? Or does it require complicated changes to MediaWiki?
Your wish is good and important. Could this be done by AJAX? It sould work the following way:
- translation of the template if the image is used from another wiki
like es: 2. If the image is viewed through commons it the language of the template sould be in the user interface language
Note that I find it even more important to have this on Template:Information than on Template:GFDL
Regards
Robin
Commons-l mailing list Commons-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/commons-l
Cool Cat schrieb:
I have actually been working on just that for some time now. All I currently have is javascript hacks which would not even work if the person does not have javascript enabled. Javascript is also slow, another reason to avoid it. But I share your reason. See [[ User talk:Cool Cat/Sandbox
I saw the example, nice tool but it has a principal hook: Each user downloads all languages which will generate huge traffic on a template like Template:GFDL
So I think we need another technology. Daniel Arnold has a proposal that works, see
http://bugzilla.wikimedia.org/show_bug.cgi?id=8287
and vote for this feature request here:
http://bugzilla.wikimedia.org/votes.cgi?action=show_user&bug_id=8287
Regards
Robin
On 1/11/07, Robin Schwab contact@robinschwab.ch wrote:
Cool Cat schrieb:
I have actually been working on just that for some time now. All I currently have is javascript hacks which would not even work if the person does not have javascript enabled. Javascript is also slow, another reason to avoid it. But I share your reason. See [[ User talk:Cool Cat/Sandbox
I saw the example, nice tool but it has a principal hook: Each user downloads all languages which will generate huge traffic on a template like Template:GFDL
So I think we need another technology. Daniel Arnold has a proposal that works, see
http://bugzilla.wikimedia.org/show_bug.cgi?id=8287
and vote for this feature request here:
http://bugzilla.wikimedia.org/votes.cgi?action=show_user&bug_id=8287
Please don't just go 'vote' for this.. There are unsolved technical problems with the proposal as standing (it totally breaks caching), voting won't fix that.. coding will.
On Fri, 12 Jan 2007 00:04:26 +0200, Robin Schwab contact@robinschwab.ch wrote:
Cool Cat schrieb:
I have actually been working on just that for some time now. All I currently have is javascript hacks which would not even work if the person does not have javascript enabled. Javascript is also slow, another reason to avoid it. But I share your reason. See [[ User talk:Cool Cat/Sandbox
I saw the example, nice tool but it has a principal hook: Each user downloads all languages which will generate huge traffic on a template like Template:GFDL
So I think we need another technology. Daniel Arnold has a proposal that works, see
This may not be the right mailing list but... I like this solution because it's server side.
I had been thinking about this for a time. My idea was setting a <div around the template (easy) and then make the {{/lang}} links 'special' (need to be done with JS), so they show the target on its parent div (not the first div, but the template div). However, as templates have parameters, the would need to be isolated on the parsed html to be reused by the js. And doing the template rendering with AJAX, wouldn't hit the caches, so server admins wouldn't be exactly happy with that extra load.
As you mention it, extra-hacking would be needed to make it work with transclusions (js not available, different domain: ajax not working...).
Platonides