Actions
Defect #42911
closedEnglish is the only available language when installing Redmine 5.1.8
Defect #42911:
English is the only available language when installing Redmine 5.1.8
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
Actions


