Skip to content

Commit

Permalink
Translation fix#11145 (#11155)
Browse files Browse the repository at this point in the history
* fix: text line replaced w/ translations function

* Update _social.html.erb
  • Loading branch information
gunesnt authored May 31, 2022
1 parent 8132622 commit f75dcea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/home/_social.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
data-layout="button"
data-size="small" data-mobile-iframe="true"><a target="_blank"
href="https://www.facebook.com/sharer"
class="fb-xfbml-parse-ignore">Share</a>
class="fb-xfbml-parse-ignore"><%= translation('home.subscriptions.share') %></a>
</div>

<div class="tweet"><a style="width: 60px;height: 20px;bottom: 7px;" href="https://twitter.com/share" class="twitter-share-button">Tweet</a></div>
<div class="tweet"><a style="width: 60px;height: 20px;bottom: 7px;" href="https://twitter.com/share" class="twitter-share-button"><%= translation('home._social.tweet') %></a></div>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
<% end %>
</div>
Expand Down
2 changes: 2 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -846,6 +846,8 @@ en:
home:
read_more: "Read more"
more_projects: "More projects"
_social:
tweet: "Tweet"
dashboard:
welcome: "Welcome!"
need_help: "Need help, want to float an idea, or find collaborators?"
Expand Down

0 comments on commit f75dcea

Please sign in to comment.