diff options
author | Uģis Ozols <ugis.ozolss@gmail.com> | 2011-07-28 13:39:05 +0300 |
---|---|---|
committer | Uģis Ozols <ugis.ozolss@gmail.com> | 2011-07-28 13:39:05 +0300 |
commit | 17f08ab5cb47e7d4d90385f1150e2373ed1abfa9 (patch) | |
tree | 0f8869aa4a888215adc7f982e6411395de9b7f44 | |
parent | 3475603f72ff0b3e051542908199b5bab3f47b14 (diff) | |
download | refinerycms-blog-17f08ab5cb47e7d4d90385f1150e2373ed1abfa9.tar.gz refinerycms-blog-17f08ab5cb47e7d4d90385f1150e2373ed1abfa9.tar.bz2 refinerycms-blog-17f08ab5cb47e7d4d90385f1150e2373ed1abfa9.zip |
Update translation scopes and routes.
5 files changed, 20 insertions, 17 deletions
diff --git a/app/views/refinery/admin/blog/categories/_category.html.erb b/app/views/refinery/admin/blog/categories/_category.html.erb index 191f649..80cc2e3 100644 --- a/app/views/refinery/admin/blog/categories/_category.html.erb +++ b/app/views/refinery/admin/blog/categories/_category.html.erb @@ -5,12 +5,14 @@ </span> <span class='actions'> <%= link_to refinery_icon_tag("application_edit.png"), - edit_admin_blog_category_path(category, :dialog => true, :height => 325), + main_app.edit_refinery_admin_blog_category_path(category, + :dialog => true, + :height => 325), :title => t('.edit') %> - <%= link_to refinery_icon_tag("delete.png"), admin_blog_category_path(category), + <%= link_to refinery_icon_tag("delete.png"), main_app.refinery_admin_blog_category_path(category), :class => "cancel confirm-delete", :title => t('.delete'), :method => :delete, - :confirm => t('message', :scope => 'shared.admin.delete', :title => category.title) %> + :confirm => t('message', :scope => 'refinery.admin.delete', :title => category.title) %> </span> </li> diff --git a/app/views/refinery/admin/blog/categories/_form.html.erb b/app/views/refinery/admin/blog/categories/_form.html.erb index bfcbc7b..a5d3de3 100644 --- a/app/views/refinery/admin/blog/categories/_form.html.erb +++ b/app/views/refinery/admin/blog/categories/_form.html.erb @@ -1,5 +1,5 @@ -<%= form_for [:admin, @blog_category] do |f| -%> - <%= render :partial => "/shared/admin/error_messages", +<%= form_for [main_app, :refinery_admin, @blog_category] do |f| -%> + <%= render :partial => "/refinery/admin/error_messages", :locals => { :object => f.object, :include_object_name => true @@ -10,10 +10,10 @@ <%= f.text_field :title, :class => 'larger widest' -%> </div> - <%= render :partial => "/shared/admin/form_actions", + <%= render :partial => "/refinery/admin/form_actions", :locals => { :f => f, :continue_editing => false, - :delete_title => t('delete', :scope => 'admin.blog.categories.category') + :delete_title => t('delete', :scope => 'refinery.admin.blog.categories.category') } %> <% end %> diff --git a/app/views/refinery/admin/blog/categories/_sortable_list.html.erb b/app/views/refinery/admin/blog/categories/_sortable_list.html.erb index df6a39b..f4e8641 100644 --- a/app/views/refinery/admin/blog/categories/_sortable_list.html.erb +++ b/app/views/refinery/admin/blog/categories/_sortable_list.html.erb @@ -1,7 +1,7 @@ <ul id='sortable_list'> <%= render :partial => 'category', :collection => @blog_categories %> </ul> -<%= render :partial => "/shared/admin/sortable_list", +<%= render :partial => "/refinery/admin/sortable_list", :locals => { :continue_reordering => (defined?(continue_reordering) ? continue_reordering : true) } %> diff --git a/app/views/refinery/admin/blog/categories/index.html.erb b/app/views/refinery/admin/blog/categories/index.html.erb index 938f235..75acb77 100644 --- a/app/views/refinery/admin/blog/categories/index.html.erb +++ b/app/views/refinery/admin/blog/categories/index.html.erb @@ -1,12 +1,13 @@ -<%= render :partial => '/admin/blog/submenu' %> +<%= render :partial => '/refinery/admin/blog/submenu' %> <div id='records'> <% if searching? %> - <h2><%= t('results_for', :scope => 'shared.admin.search', :query => params[:search]) %></h2> + <h2><%= t('results_for', :scope => 'refinery.admin.search', + :query => params[:search]) %></h2> <% if @blog_categories.any? %> <%= render :partial => "blog_categories", :collection => @blog_categories %> <% else %> - <p><%= t('search_no_results', :scope => 'admin') %></p> + <p><%= t('no_results', :scope => 'refinery.admin.search') %></p> <% end %> <% else %> <% if @blog_categories.any? %> @@ -18,7 +19,7 @@ <% else %> <p> <strong> - <%= t('.no_items_yet', :create => t('new', :scope => 'admin.blog.submenu.categories')) %> + <%= t('.no_items_yet', :create => t('new', :scope => 'refinery.admin.blog.submenu.categories')) %> </strong> </p> <% end %> diff --git a/app/views/refinery/admin/blog/posts/_form.html.erb b/app/views/refinery/admin/blog/posts/_form.html.erb index 1fc0050..a452c13 100644 --- a/app/views/refinery/admin/blog/posts/_form.html.erb +++ b/app/views/refinery/admin/blog/posts/_form.html.erb @@ -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.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.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"> @@ -49,7 +49,7 @@ </div> <div class='field'> - <%= f.label :tag_list, t('blog.shared.tags.title') -%> + <%= f.label :tag_list, t('refinery.blog.shared.tags.title') -%> <%= f.text_field :tag_list, :class => 'larger' -%> </div> @@ -66,7 +66,7 @@ </div> <div id='more_options' style="display:none;"> <div class="hemisquare"> - <h3><%= t('title', :scope => 'admin.blog.submenu.categories') %></h3> + <h3><%= t('title', :scope => 'refinery.admin.blog.submenu.categories') %></h3> <ul class='blog_categories'> <% @blog_categories.each do |category| %> <li> @@ -99,7 +99,7 @@ :locals => { :f => f, :continue_editing => true, - :delete_title => t('delete', :scope => 'admin.blog.posts.post') + :delete_title => t('delete', :scope => 'refinery.admin.blog.posts.post') } %> <% end -%> |