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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Change the seed locale ENV
Oliver Günther77bc9e89f6c6
diff --git a/app/seeders/root_seeder.rb b/app/seeders/root_seeder.rbindex 3bcc70033a8..8b25ba8c322 100644--- a/app/seeders/root_seeder.rb+++ b/app/seeders/root_seeder.rb@@ -101,7 +101,7 @@ class RootSeeder < Seeder# #set_language_if_valid here as it# would mean to circumvent the default settings# for valid_languages.- desired_lang = (ENV['LOCALE'] || :en).to_sym+ desired_lang = (ENV['OPENPROJECT_SEED_LOCALE'] || :en).to_symif all_languages.include?(desired_lang)I18n.locale = desired_langdiff --git a/docs/installation-and-operations/installation/manual/README.md b/docs/installation-and-operations/installation/manual/README.mdindex 6a7cb5c6f73..641825a21d7 100644--- a/docs/installation-and-operations/installation/manual/README.md+++ b/docs/installation-and-operations/installation/manual/README.md@@ -232,9 +232,9 @@ prevents you from such errors.**NOTE:** When not specified differently, the default data loaded via db:seed will have an english localization. You can choose to seed in a different language by specifying the language via the `LOCALE` environment variable on the call to `db:seed`. E.g.```bash-[openproject@all] RAILS_ENV="production" LOCALE=fr ./bin/rake db:seed+[openproject@all] RAILS_ENV="production" OPENPROJECT_SEED_LOCALE=fr ./bin/rake db:seed```-will seed the database in the french language.+will seed the database in the french language. A large portion of the seed data is only available in english, however.### Secret token