Project

General

Profile

Actions

Defect #43135

open

Default language list only English

Added by Sheng Ze Fan 2 days ago. Updated 2 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Administration
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

the default langulage list only English, but locate

but lots of files exist in locales


Files

Actions #1

Updated by Sheng Ze Fan 2 days ago

Dear Support:
How to fix it, please help.

thanks
Tomato

Actions #2

Updated by Jörg Göbel 2 days ago

Same problem here. Do you use any plugins?

Environment:
Redmine version 6.0.6.stable
Ruby version 3.3.7-p123 (2025-01-15) [x86_64-linux]
Rails version 7.2.2.1
Environment production
Database adapter Mysql2
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery sendmail
Redmine settings:
Redmine theme Circle (includes JavaScript)
SCM:
Subversion 1.14.3
Git 2.43.0
Filesystem
Redmine plugins:
redmine_agile 1.6.11
redmine_budgets 1.0.7
redmine_checklists 3.1.26
redmine_contacts 4.4.3
redmine_contacts_helpdesk 4.2.5
redmine_contacts_invoices 4.2.13
redmine_drive 1.2.3
redmine_finance 2.1.11
redmine_messenger 1.0.15
redmine_more_previews 5.0.9
redmine_people 1.6.11
redmine_products 2.2.6
redmine_questions 1.0.7
redmine_reporter 2.0.5
redmine_resources 2.0.5
redmine_xapian 4.0.3
redmine_zenedit 2.0.8
redmineup_tags 2.0.15

I had some problems with locales in 6.0.6 and database dumps… this may be related to the current problem.

This is a remark regarding version 6.0.6:
 “ Additionally, the patch for #38529, initially released in version 5.1.0, is now properly fixed and the locales are limited to those defined by Redmine itself.

In my installations, no other languages than English were recognized anymore.
I had to develop a fix so that my plugins which use Bulgarian internally would not crash anymore.

I had to create ./config/initializers/fix_locales.rb

# Fix für Redmine 6.0.6 Locale-Problem
Rails.application.config.after_initialize do
  available_locales = Dir[Rails.root.join('config', 'locales', '*.yml')].map do |f|
    File.basename(f, '.yml').to_sym
  end

  I18n.available_locales = available_locales
end

Then all languages were recognized again - and no crashes would happen with the RedmineUP plugins anymore.

But there is only english as language available at the account page anymore.

Actions

Also available in: Atom PDF