mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-25 16:44:09 +01:00
fix #1104 together with previous commit (thanks 02strich) to escape single quotes in i18n strings
This commit is contained in:
parent
0207b3b949
commit
e278e3d5ce
1 changed files with 1 additions and 1 deletions
|
|
@ -254,7 +254,7 @@ module ApplicationHelper
|
||||||
common.cancel common.ok
|
common.cancel common.ok
|
||||||
common.ajaxError
|
common.ajaxError
|
||||||
}.each do |s|
|
}.each do |s|
|
||||||
js << "i18n['#{s}'] = '#{t(s)}';\n"
|
js << "i18n['#{s}'] = '#{ t(s).gsub(/'/, "\\\\'") }';\n"
|
||||||
end
|
end
|
||||||
return js
|
return js
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue