Avoid using raw html in translations for links.
This is a followup to 26698d6
which introduced the html. It's better
to use interpolation for links, since this avoids the translations
from introducing html syntax errors.
I had to change the translation key, since changing the interpolation
variables alone would lead to breakages.
This commit is contained in:
parent
ebb25a095c
commit
06d73857d1
2 changed files with 3 additions and 2 deletions
|
@ -191,7 +191,7 @@
|
|||
<div class="col-md order-md-last">
|
||||
<% if @user.home_lat.nil? or @user.home_lon.nil? %>
|
||||
<div id="map" class="content_map">
|
||||
<p id="no_home_location"><%= t(".set_location_html", :edit_profile_url => edit_profile_path) %></p>
|
||||
<p id="no_home_location"><%= t(".no_home_location_html", :edit_profile_link => link_to(t(".edit_your_profile"), edit_profile_path)) %></p>
|
||||
</div>
|
||||
<% else %>
|
||||
<% content_for :head do %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue