mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-24 11:10:12 +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.ajaxError
|
||||
}.each do |s|
|
||||
js << "i18n['#{s}'] = '#{t(s)}';\n"
|
||||
js << "i18n['#{s}'] = '#{ t(s).gsub(/'/, "\\\\'") }';\n"
|
||||
end
|
||||
return js
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue