Page MenuHomePhabricator

The image sizing not work in $wgShellLocale="fr_FR.utf8" and return link image
Closed, DuplicatePublic


In mediawiki 1.31.1-release downloaded here :
If the parameter $wgShellLocale in LocalSettings.php is set on fr_FR.utf8 the resizing of images not work and return only the link of images
The reason is located in img tag. The "srcset" for the medium size of images is 1.5x of pixel density but with fr_FR.utf8 it is 1,5x because there is translation in french.
So the browser don't understand this information and return the link of images without display the images

Steps to reproduce:

  1. Install and default configuration of mediawiki 1.31.1 provided by this link :
  2. In LocalSettings.php set $wgShellLocale="fr_FR.utf8"
  3. Connection with an account

4.Create new wiki page

  1. Use the insert image method and upload an image on the mediawiki
  2. Try to display image by adding the mediawiki code : [[File:xxxx.png|50px]]
  3. Save the change and go to read mode on this page

Actual Results:
Only the link of image is displayed but not the image. If I do right-click and inspect element, I see in img tag the "srcset" with 1,5x instead of 1.5x

Expected result:
The images display with resizing

Event Timeline

Hi @LaMottePicquet, thanks for taking the time to report this and welcome to Wikimedia Phabricator!
This problem has already been reported, so I am going to merge this task into the older report.

Hi @Aklapper, thanks for your answer.
This problem will be resolved in 1.31.2 ?

Hi, see The task is "open" (see upper left corner) and there is no software patch. in that task
Until somebody contributes a software patch, the problem will not be fixed.
If you are interested in providing a software patch to fix the problem, please see and - thanks a lot!