Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Fix default language setting value zh -> zh-CN

Christophe Bliard9d8c164d2003
diff --git a/db/migrate/20231002141527_fix_default_language_value_for_chinese_simplified.rb b/db/migrate/20231002141527_fix_default_language_value_for_chinese_simplified.rb
new file mode 100644
index 00000000000..72d40d8cb90
--- /dev/null
+++ b/db/migrate/20231002141527_fix_default_language_value_for_chinese_simplified.rb
@@ -0,0 +1,5 @@
+class FixDefaultLanguageValueForChineseSimplified < ActiveRecord::Migration[7.0]
+ def up
+ Setting.where(name: 'default_language', value: 'zh').update_all(value: 'zh-CN')
+ end
+end