Page MenuHomePhabricator

Allow localization of edit button images in LanguageXYZ.php
Closed, ResolvedPublic


Author: Eugene.Zelenko

Bold and Italic buttons are definitely English centric now. It's possible to customize then in MediaWiki:Monobook.js (see, but this solution must be applied in every installation of MediaWiki.

I think will be good idea to add array for buttons image names in Language.php and ability to change it in every language class.

In this case localization will work out of the box on every project on particular language without additional changes. Also it'll work for multi-language wikis such as Commons, Meta, WikiSpecies or OmegaWiki.

Version: 1.12.x
Severity: enhancement



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:57 PM
bzimport set Reference to bz11732.
bzimport added a subscriber: Unknown Object (MLST).

Can you provide examples (references to screen shots, for instance) of widely-used desktop software which localizes system-standard bold and italic toolbar icons?

Eugene.Zelenko wrote:

If I'm not mistaken, Microsoft does so in Office since version 95 (at least for Russian localization).

See for screenshot.

mohamed.m.k wrote:

You can make the buttons language neutral (no letters/text at all) or do like the request mentions.

@brion: the lack of it in other software or negligence in doing it doesn't mean MediaWiki cannot start that habit and even spread it. we are already localizing everything (it is like saying that other software packages don't include localizations for language X so MediaWiki shouldn't include it).

May be that can affect performance that you will have to load different images for each language but I'm not sure if it is an issue..


See r37040. It is now possible to overwrite images per language basis (fallbacks are honoured), if someone commits a suitable licensed image and adds item to $imageFiles array in MessagesXyz.php.