Last modified: 2009-11-28 04:43:39 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T16981, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 14981 - Shared repo APIs should include 'repo-sharedupload' and 'repo-name' messages
Shared repo APIs should include 'repo-sharedupload' and 'repo-name' messages
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Chad H.
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-07-30 10:34 UTC by Jon Harald Søby
Modified: 2009-11-28 04:43 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Jon Harald Søby 2008-07-30 10:34:13 UTC
 
Comment 1 Jon Harald Søby 2008-07-30 10:35:03 UTC
Pressed enter by mistake.
Comment 2 Jon Harald Søby 2008-07-30 10:44:25 UTC
I do not know if this is technically possible, but it would be great if the API could include two messages for internationalisation, that could be specified by each repository. I'm thinking specifically about a message like 'repo-name', which could contain the name of the repo, and a message like 'repo-sharedupload', to take the place of the normal 'sharedupload' (assuming bug 14980 is fixed) when it exists. This message could look something like the one used on a lot of Wikimedia projects to link to Wikimedia Commons, see e.g. [1]. (Eventually the message names could be something like '%reponame%-name' and '%reponame%-sharedupload' instead, which would make it possible to translate individual repositories' messages at Betawiki.)

I believe this would require changes to api.php and ImagePage.php, but I am not sure if it is possible to include messages this way in the API at all, so that makes it a bit difficult.

[1] http://no.wikipedia.org/wiki/MediaWiki:Sharedupload
Comment 3 Roan Kattouw 2008-08-04 12:48:05 UTC
Could you explain what you mean more clearly? I particularly don't understand what you mean by including messages in the API.
Comment 4 Jon Harald Søby 2008-08-04 13:02:48 UTC
Exactly; I have no idea if it is possible to include (or define) messages in the API this way.

Ok, I'll give you a scenario.

We have three huge media repositories which are used for a lot of different wikis. One of those is Commons. So it would be great to have one message (localisable) for Commons, named 'repo-name' or soemthing, that contains the name "Wikimedia Commons"; this could then be used on all the small wikis that use images from Commons, by writing e.g. "We use files from {{int:repo-name}}" (particularly in other interface messages).

As for the 'repo-sharedupload' message, it could take the place of the normal 'sharedupload', and could be a lot more specific than the generic sharedupload message. See the generic one at [1] and a customized one at [2]. The one in [2] could be one definied per-repo in my idea.

[1] http://ff.wikipedia.org/wiki/Image:Flag_of_Nauru.svg?uselang=en
[2] http://no.wikipedia.org/wiki/Bilde:Flag_of_Nauru.svg
Comment 5 Roan Kattouw 2008-08-04 13:05:05 UTC
OK, so what does this have to do with the API? You can get a message's contents through the API (see below), so as long as you add such a message *somewhere*, it should show up there.

http://en.wikipedia.org/w/api.php?action=query&meta=allmessages&ammessages=sharedupload|monday&amlang=nl
Comment 6 Siebrand Mazeland 2008-08-11 22:09:27 UTC
Assigned to demon.
Comment 7 Bryan Tong Minh 2008-08-18 21:13:37 UTC
Something related to ForeignApiRepo. Component API => File/Repo
Comment 8 Chad H. 2009-02-17 23:19:19 UTC
Done in r47385, r47386

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links