Merge pull request #314 from kubabrecka/extract_strings2
extracting some more hardcoded strings
This commit is contained in:
commit
25494529d2
|
@ -5,7 +5,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% if @list.topics.length > 0 %>
|
<% if @list.topics.length > 0 %>
|
||||||
<p><a href="<%= @list.more_topics_url.sub('.json?','?') %>">next page →</a></p>
|
<p><a href="<%= @list.more_topics_url.sub('.json?','?') %>"><%= t 'next_page'%></a></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<p>Powered by <a href="http://www.discourse.org">Discourse</a>, best viewed with JavaScript enabled</p>
|
<p><%= t 'powered_by' %></p>
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
<% @topic_view.posts.each do |post| %>
|
<% @topic_view.posts.each do |post| %>
|
||||||
<div class='creator'>
|
<div class='creator'>
|
||||||
#<%=post.post_number%> By: <b><%= post.user.name %></b>, <%= post.created_at.to_formatted_s(:long_ordinal) %>
|
#<%=post.post_number%> <%= t 'by'%>: <b><%= post.user.name %></b>, <%= post.created_at.to_formatted_s(:long_ordinal) %>
|
||||||
</div>
|
</div>
|
||||||
<div class='post'>
|
<div class='post'>
|
||||||
<%= post.cooked.html_safe %>
|
<%= post.cooked.html_safe %>
|
||||||
|
@ -15,13 +15,13 @@
|
||||||
|
|
||||||
<% if @topic_view.next_page %>
|
<% if @topic_view.next_page %>
|
||||||
<p>
|
<p>
|
||||||
<b><%= link_to("next page →".html_safe, @topic_view.next_page_path ) %></b>
|
<b><%= link_to(t('next_page').html_safe, @topic_view.next_page_path ) %></b>
|
||||||
</p>
|
</p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
|
||||||
<p>Powered by <a href="http://www.discourse.org">Discourse</a>, best viewed with JavaScript enabled</p>
|
<p><%= t 'powered_by' %></p>
|
||||||
|
|
||||||
<% content_for :head do %>
|
<% content_for :head do %>
|
||||||
<%= auto_discovery_link_tag(@topic_view, {action: :feed, format: :rss}, title: "RSS feed of '#{@topic_view.title}'", type: 'application/rss+xml') %>
|
<%= auto_discovery_link_tag(@topic_view, {action: :feed, format: :rss}, title: t('rss_feed', topic: @topic_view.title), type: 'application/rss+xml') %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -2,6 +2,7 @@ en:
|
||||||
title: "Discourse"
|
title: "Discourse"
|
||||||
topics: "Topics"
|
topics: "Topics"
|
||||||
loading: "Loading"
|
loading: "Loading"
|
||||||
|
powered_by: 'Powered by <a href="http://www.discourse.org">Discourse</a>, best viewed with JavaScript enabled'
|
||||||
|
|
||||||
via: "%{username} via %{site_name}"
|
via: "%{username} via %{site_name}"
|
||||||
is_reserved: "is reserved"
|
is_reserved: "is reserved"
|
||||||
|
@ -12,6 +13,9 @@ en:
|
||||||
has_already_been_used: "has already been used"
|
has_already_been_used: "has already been used"
|
||||||
invalid_characters: "contains invalid characters"
|
invalid_characters: "contains invalid characters"
|
||||||
is_invalid: "is invalid; try to be a little more descriptive"
|
is_invalid: "is invalid; try to be a little more descriptive"
|
||||||
|
next_page: "next page →"
|
||||||
|
by: "By"
|
||||||
|
rss_feed: "RSS feed of %{topic}"
|
||||||
|
|
||||||
education:
|
education:
|
||||||
until_posts:
|
until_posts:
|
||||||
|
|
Loading…
Reference in New Issue