Project

General

Profile

Actions

Defect #42911

closed

English is the only available language when installing Redmine 5.1.8

Added by Vincent Robert 1 day ago. Updated about 11 hours ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

Using the current 5.1.8 branch, with a fresh empty install, the only language available is English.

And updating from 5.1.7 to 5.1.8, I got an error message when visiting the settings#display tab:

 Showing /redmine-5.1-stable/app/views/settings/_display.html.erb where line #14 raised:

"fr" is not a valid locale

Extracted source (around line #219):

  def date_format_setting_options(locale)
    Setting::DATE_FORMATS.map do |f|
      today = ::I18n.l(User.current.today, :locale => locale, :format => f)
      format = f.delete('%').gsub(/[dmY]/) do
        {'d' => 'dd', 'm' => 'mm', 'Y' => 'yyyy'}[$&]
      end

It must be related to the latest changes which modified how available languages are loaded.


Files

my-account.png (55.7 KB) my-account.png Vincent Robert, 2025-06-23 12:15
clipboard-202506232251-4iznn.png (250 KB) clipboard-202506232251-4iznn.png Marius BĂLTEANU, 2025-06-23 21:51
clipboard-202506232252-qkht7.png (492 KB) clipboard-202506232252-qkht7.png Marius BĂLTEANU, 2025-06-23 21:52
clipboard-202506232254-c2qjl.png (507 KB) clipboard-202506232254-c2qjl.png Marius BĂLTEANU, 2025-06-23 21:54
Actions

Also available in: Atom PDF