Skip to content

Commit

Permalink
Add translation to _tags.html.erb (publiclab#9775)
Browse files Browse the repository at this point in the history
* Update _tags.html.erb

* Update en.yml
  • Loading branch information
CaptainDrewBoy authored and reginaalyssa committed Oct 16, 2021
1 parent f0fae0c commit d5f42e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/tag/_tags.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
data-trigger="focus"
data-count=0
data-placement="top"
data-content="<p style='text-align:center;'><a href='/tag/<%= tag.name %>'><%= Tag.tagged_node_count(tag.name) || 0 %> notes</a> - <a href='/contributors/<%= tag.name %>'><%= Tag.contributors(tag.name).count %> people <br></a></p><% if tag.location_tag? %><p>This is a geographical tag for placing this content on a map. Please visit our <a href='https://publiclab.org/wiki/location-privacy'>location privacy</a> page. </p><% end %> <p style='text-align:center;font-size:12px;'><%if tag.description %><%= tag.description %> |<% end %> created by <a href='/profile/<%= tag.try(:author).try(:username) %>'><%= tag.try(:author).try(:username) %></a> <%= time_ago_in_words(Time.at(tag.date)) %> ago </p><div class='text-center'><a href='/subscribe/tag/<%= tag.name %>' class='btn btn-primary'>Follow</a></div>"
data-content="<p style='text-align:center;'><a href='/tag/<%= tag.name %>'><%= Tag.tagged_node_count(tag.name) || 0 %> notes</a> - <a href='/contributors/<%= tag.name %>'><%= Tag.contributors(tag.name).count %> people <br></a></p><% if tag.location_tag? %><p><%= translation('tag.location.tooltip') %></p><% end %> <p style='text-align:center;font-size:12px;'><%if tag.description %><%= tag.description %> |<% end %> created by <a href='/profile/<%= tag.try(:author).try(:username) %>'><%= tag.try(:author).try(:username) %></a> <%= time_ago_in_words(Time.at(tag.date)) %> ago </p><div class='text-center'><a href='/subscribe/tag/<%= tag.name %>' class='btn btn-primary'>Follow</a></div>"
data-html="true"
title="<%= tag.name %>"
>
Expand Down
3 changes: 3 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,9 @@ en:
notes: "Notes"
people_who've_posted: "People who've posted"
people_who_are_following: "People who are following"
location:
tooltip: "This is a geographical tag for placing this content on a map.
Please visit our <a href='https://publiclab.org/wiki/location-privacy'>location privacy</a> page."
wiki:
index:
wiki_pages_tagged_with: "Wiki pages tagged with <i style='color:#aaa;'>%{tag}</i>"
Expand Down

0 comments on commit d5f42e1

Please sign in to comment.