Content
You are here:
Translation plugin: after install on settings page 500 error
Added by Kona World over 9 years ago
Hi! I installed translations plugin using manual https://www.openproject.org/open-source/install-plugins/
After that i have seen plugin on /admin/plugins and at the same time i cann’t access /settings page.
I need plugin and I need /settings page too. How? =)
Log:
Started GET "/settings" for x.xx.xxx.xxx at 2015-06-17 10:31:07 +0300 Processing by SettingsController#index as HTML Rendered settings/_general.html.erb (34.1ms) Rendered settings/_display.html.erb (21.5ms) Rendered common/_tabs.html.erb (87.2ms) Rendered settings/edit.html.erb within layouts/admin (88.0ms) Completed 500 Internal Server Error in 127.3ms ActionView::Template::Error ("ar" is not a valid locale): 35: 36: <p><%= setting_check_box :accessibility_mode_for_anonymous %></p> 37: 38: <p id="setting_available_languages"><%= setting_multiselect :available_languages, all_lang_options_for_select(false) %></p> 39: 40: <p id="setting_default_language"><%= setting_select :default_language, all_lang_options_for_select(false) %></p> 41: lib/redmine/i18n.rb:64:in `ll' app/helpers/application_helper.rb:421:in `block in all_lang_options_for_select' app/helpers/application_helper.rb:421:in `collect' app/helpers/application_helper.rb:421:in `all_lang_options_for_select' app/views/settings/_display.html.erb:38:in `block in _app_views_settings__display_html_erb__3904012416681048146_75129280' app/views/settings/_display.html.erb:30:in `_app_views_settings__display_html_erb__3904012416681048146_75129280' app/views/common/_tabs.html.erb:62:in `block in _app_views_common__tabs_html_erb__3294351519746136594_76213020' app/views/common/_tabs.html.erb:60:in `each' app/views/common/_tabs.html.erb:60:in `_app_views_common__tabs_html_erb__3294351519746136594_76213020' app/helpers/application_helper.rb:214:in `render_tabs' app/views/settings/edit.html.erb:34:in `_app_views_settings_edit_html_erb__672556740316483416_76459340' app/controllers/settings_controller.rb:37:in `index'
Replies (3)
Hello Kona,
it’s difficult to determine the precise cause of this error. However, with OpenProject 4.2 you no longer need to install the translations plugin since it has been included in the core.
Therefore, this particular error should no longer occur. In addition, the translations are no longer limited to the core but there are also translations for OpenProject plugins included.
For more information on those changes, please take a look at the realease notes for OpenProject 4.2.
In order to avoid compatibility issues and reduce the complexity of the OpenProject installation & updates, you may also want to take a look at the OpenProject packaged installation which provides a much easier way to install and update OpenProject.
For a version which includes all the supported plugins, take a look at the packaged installation community.
Best regards,
Robin
Robin Wagner wrote:
Hello! I have installed version 4.0.10 (Mysql2) manual method (package installation breaks with fatal errors). Ok, will try to upgrade
Hello Kona,
yes we recommend to upgrade, especially since OpenProject 4.0.10 still contains a possible security issue which has been fixed since then.
After upgrading to OpenProject 4.2 (we recommend the current version OpenProject 4.2.5), you can then remove the translations plugin from the Gemfile.plugins (since it is now part of the core).
We therefore actually removed the translations plugin from the list of OpenProject plugins.
FYI: We always include the current, up-to-date translations committed via CrowdIn in the patch releases, so you automatically receive the newest translations when upgrading your OpenProject installation.
Best regards,
Robin