Project

General

Profile

Error #882

Plugin crashes on Redmine 2.5

Added by Ismael Barros² over 9 years ago. Updated over 8 years ago.

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

0%

Estimated time:
Source:
Customer
Detected on version:
Redmine version:
Milestones:

Description

After switching from "English" to "Spanish" as default language, and selecting "English" and "Galician" as localizations, I get this message every time I enter http://<IP>/settings/plugin/localizable

ActionView::Template::Error (undefined method `force_encoding' for "gl":String):
    92:       </td>
    93:       <%- @settings["locales_to_translate"].each do |locale| -%>
    94:       <td align="left">
    95:         <input name="settings[locales][<%= element[:name] %>][<%= object.id %>][<%= locale.to_s.force_encoding("UTF-8") %>]" 
    96:                value="<%= @settings["locales"][element[:name]][object.id.to_s][locale].to_s.force_encoding("UTF-8") %>" />
    97:       </td>
    98:       <%- end -%>
  app/views/settings/plugin.html.erb:6:in `_app_views_settings_plugin_html_erb___720118857__628213948'
  app/views/settings/plugin.html.erb:4:in `_app_views_settings_plugin_html_erb___720118857__628213948'
#1

Updated by Sébastien NOIRIE over 8 years ago

Hello,
I have the same problem with redmine 2.6.6

Also available in: Atom PDF