https://bugzilla.wikimedia.org/show_bug.cgi?id=33544
Erik Moeller <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #4 from Erik Moeller <[email protected]> 2012-05-22 01:28:00 UTC --- There's a standard ?uselang parameter, but this will only affect the menu language, not the content language, e.g.: https://commons.wikimedia.org/wiki/Commons:Copyright_tags?uselang=de For pages translated with the Translate extension, there's also the convenient Special:MyLanguage redirector, e.g.: https://meta.wikimedia.org/wiki/Special:MyLanguage/Terms_of_use (will evaluate whatever language setting is in your UI) Neither is particularly helpful here, and the current hardcoding of license URLs in UploadWizard.config.php probably has to stop. I'd suggest the following implementation strategy: * Instead of using an absolute URL attribute for Upload Wizard config variables, use a URL stored in a MediaWiki: user interface message, e.g. "MediaWiki:Mwe-upwiz-license-cc-by-2.5-url". This means we can use the existing convenience functions to retrieve 1) the URL for the current user interface language if defined, 2) fall back to English if not defined. * Instead of hardcoding the URLs, we can now simply look up the message defined in the licenses array in UploadWizard.config.php with the added '-url' suffix to try to find a valid URL in the user's language. This is similar to existing MediaWiki messages like "MediaWiki:Portal-url". * For bonus points, interpret a -url UI message that follows no valid URI scheme as a MediaWiki title and generate the valid URL. So If I put "Commons:Copyright tags" in "MediaWiki:Mwe-upwiz-license-custom-url", it should automatically turn that into https://commons.wikimedia.org/wiki/Commons:Copyright_tags . In the above example, defining "MediaWiki:Mwe-upwiz-license-custom-url/de" as "Commons:Lizenzvorlagen" on Commons, or localizing it through the i18n file, would achieve the desired effect. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
