Page MenuHomePhabricator

Mobile gateway uses hardcoded 'File' namespace for simplified image view; should use i18n info or proper namespace check
Closed, ResolvedPublic

Description

You should add support for localized strings/namespaces in the server (magic words, namespaces etc.).

Specifically, you should also support localized "file" namespace names for each language version when showing image files. Right now, the simplified image page is shown only if "File:" prefix is used. See http://ro.m.wikipedia.org/wiki/Fi%C8%99ier:Interborough_Rattled_Transit_Restored.png vs http://ro.m.wikipedia.org/wiki/File:Interborough_Rattled_Transit_Restored.png The localized strings are available at http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/languages/messages/ in php format.

A linked problem are the namespace aliases still in use on en.wp (i.e. Filve/Image/Media)

I'm sure there are other situations like this in the code, but a general fix could (or could not) wait until Bug 25558 is implemented.


Version: .5
Severity: normal
URL: http://github.com/hcatlin/wikimedia-mobile/blob/557c5e8920fccb2a63bdb2971846a162e88c7067/config/router.rb#L34

Details

Reference
bz25678

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:16 PM
bzimport set Reference to bz25678.

hcatlin wrote:

I have added a key called 'file_namespace' to the translation wiki. As soon as these get translated, it should start working immediately.