Fix some I18n translations.

This commit is contained in:
Uģis Ozols 2011-08-03 13:09:02 +03:00
parent a86b7698a1
commit 806aef1858
3 changed files with 13 additions and 7 deletions

View file

@ -14,10 +14,10 @@
<div id='page-tabs' class='clearfix ui-tabs ui-widget ui-widget-content ui-corner-all'>
<ul id='page_parts'>
<li class='ui-state-default ui-state-active'>
<%= link_to t('body', :scope => 'activerecord.attributes.refinery.blog_post'), "#page_part_body" %>
<%= link_to t('body', :scope => 'activerecord.attributes.refinery/blog_post'), "#page_part_body" %>
</li>
<li class='ui-state-default'>
<%= link_to t('teaser', :scope => 'activerecord.attributes.refinery.blog_post'), "#page_part_teaser" %>
<%= link_to t('teaser', :scope => 'activerecord.attributes.refinery/blog_post'), "#page_part_teaser" %>
</li>
<% Refinery::Blog.tabs.each_with_index do |tab, tab_index| %>
<li class='ui-state-default' id="custom_<%= tab.name %>_tab">

View file

@ -1,5 +1,5 @@
<aside id="comments">
<h2><%= t('.comments.title') %></h2>
<h2><%= t('title', :scope => 'refinery.blog.posts.show.comments') %></h2>
<% if (comments = @blog_post.comments.approved).any? %>
<%= render :partial => "comment", :collection => comments %>
<% else %>
@ -14,7 +14,7 @@
</div>
<% end %>
<h2><%= t('.comments.add') %></h2>
<h2><%= t('add', :scope => 'refinery.blog.posts.show.comments') %></h2>
<%= form_for [main_app, :blog_post, @blog_comment] do |f| %>
<%= render :partial => "/refinery/admin/error_messages",
:locals => {

View file

@ -1,11 +1,17 @@
<nav id="next_prev_article">
<% if @blog_post.next.present? -%>
<%= link_to (truncate(@blog_post.next.title) + " &#187;").html_safe, @blog_post.next, :class => 'next' %>
<%= link_to (truncate(@blog_post.next.title) + " &#187;").html_safe,
main_app.url_for(@blog_post.next),
:class => 'next' %>
<% end -%>
<%= link_to t('blog_home', :scope => 'blog.posts.show'), blog_root_path, :class => 'home' %>
<%= link_to t('blog_home', :scope => 'refinery.blog.posts.show'),
main_app.blog_root_path,
:class => 'home' %>
<% if @blog_post.prev.present? -%>
<%= link_to ("&#171; " + truncate(@blog_post.prev.title)).html_safe, @blog_post.prev, :class => 'prev' %>
<%= link_to ("&#171; " + truncate(@blog_post.prev.title)).html_safe,
main_app.url_for(@blog_post.prev),
:class => 'prev' %>
<% end -%>
</nav><!-- /next_prev_article -->