> Well, yes the script can be loaded with withJS, but it doesn't stay  
> when navigating to other pages which is the main purpose of the script.
> But if one just wants to see how it basically looks, sure the withJS  
> is great for that.

just add withJS to your uselang append ( for testing ) ( instead of
having the user have to add it to their user profile ) one less click
for people to test ideally gets more people trying it out in the village
pump and what not and can ideally help us catch more errors.
 
>> I imagine you saw the recent persistantUseLang that got turned on that
>> does some similar stuff:
>> http://commons.wikimedia.org/wiki/Commons:Village_pump#Localization_for_anonymous_users
> I'm afraid I missed this one, I'll check it out right away.
> My first impression is that it's very exact and elaborate on referals  
> but a few points though
> * It should be watching out for a hash-tag (ie. #some-header? 
> uselang=fr doesn't get the user anywhere)
> * instead of looping through ALL anchor-tags on the page, just listen  
> for a click on any a-tag and then perform the is-wiki-domain-check.
>       By doing it live() one also catches clicks on dynamically added links  
> such as the GlobalUsage-action by MediaWiki:Extra-tabs.js.
> * And usage of global wgVariables to avoid the script being/becoming  
> wiki-dependant.

Sounds reasonable. I think there are some absolute links to commons that
we want to rewrite that we don't want to rewrite for other domains.

> I think these scripts can go great together.
> A hook in AnonymousI18N could be added to suggest an alternative  
> language (ie. the referal language code) (overriding the browser- 
> language check, but not overriding the cookie-setting).
>
> --
> Krinkle
>
Sounds good, feel free to run with it. Take whatever is useful and we
can port over to your work once its ready ;)

peace,
michael

_______________________________________________
Commons-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/commons-l

Reply via email to