Project

General

Profile

Error #1619

Error in app/views/settings/_localizable.html.erb

Added by Przemysław Szustak 11 months ago.

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

0%

Estimated time:
Source:
Development
Detected on version:
Redmine version:
Redmine trunk
Milestones:

Description

I try to run localizable plugin in Ubuntu 22 LTS.
I downloaded latest files from repo - it is version 0.6.0 (version 0.4.0 not working).

When I try to open /settings/plugin/localizable belowed error occured:
ActionView::Template::Error (can't modify frozen String: "")

I changed from :
<input name="settings[locales][<%= element[:name] %>][<%= object.id %>][<%= locale.to_s.force_encoding("UTF-8") %>]"
value="<%= @settings["locales"][element[:name]][object.id.to_s][locale].to_s.force_encoding("UTF-8") %>" />

to :
<input name="settings[locales][<%= element[:name] %>][<%= object.id %>][<%= locale.to_s.dup.force_encoding("UTF-8") %>]"
value="<%= @settings["locales"][element[:name]][object.id.to_s][locale].to_s.dup.force_encoding("UTF-8") %>" />

and it works now.

This error is described in https://redmine.ociotec.com/issues/1594 to.

Environment:
  Redmine version                5.0.5.stable
  Ruby version                   3.0.2-p107 (2021-07-07) [x86_64-linux-gnu]
  Rails version                  6.1.7.2
Redmine plugins:
  localizable                    0.6.0

Can you add version 0.6.0 for download in https://redmine.ociotec.com/projects/localizable/files?

No data to display

Also available in: Atom PDF