Hi, When uploading a file using the mediawiki API, i use this Url of the Upload page:
$url= *" http://localhost/mediawki/index.php/Special:Upload"; *But is this variable configurable*? *I mean* *to get the url in any wiki langagues. Because the french wiki have the different url for this page, for exemple: $url= *" http://localhost/mediawki/index.php/*Sp%C3%A9cial:T%C3%A9l%C3%A9verser*" *instead
Best regards.
On Tue, Jun 5, 2012 at 9:29 AM, nguyenkim thuat kimthuatnguyenensimagfr@gmail.com wrote:
Hi, When uploading a file using the mediawiki API, i use this Url of the Upload page:
$url= "http://localhost/mediawki/index.php/Special:Upload"; But is this variable configurable? I mean to get the url in any wiki langagues. Because the french wiki have the different url for this page, for exemple: $url= "http://localhost/mediawki/index.php/Sp%C3%A9cial:T%C3%A9l%C3%A9verser%22%C2%... instead
[[Special:Upload]] will work on any wiki, since the English names (known internally as the "canonical" page) will work regardless of the wiki's language.
For example, if you go to http://fr.wikipedia.org/wiki/Special:Upload, you'll see that it redirects automatically.
-Chad
On Tue, Jun 5, 2012 at 3:31 PM, Chad innocentkiller@gmail.com wrote:
On Tue, Jun 5, 2012 at 9:29 AM, nguyenkim thuat kimthuatnguyenensimagfr@gmail.com wrote:
Hi, When uploading a file using the mediawiki API, i use this Url of the
Upload
page:
$url=
"http://localhost/mediawki/index.php/Special:Upload"; But is this variable configurable? I mean to get the url in any wiki langagues. Because the french wiki have the different url for this page, for exemple: $url= "http://localhost/mediawki/index.php/Sp%C3%A9cial:T%C3%A9l%C3%A9verser" instead
[[Special:Upload]] will work on any wiki, since the English names (known internally as the "canonical" page) will work regardless of the wiki's language.
For example, if you go to http://fr.wikipedia.org/wiki/Special:Upload, you'll see that it redirects automatically.
That's true, thank you a lot. At first, i think that it will need to use the API to get this url for each language. But now, there is no need to do it anymore.
Best regards.
-Chad _______________________________________________ Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
mediawiki-api@lists.wikimedia.org