vendor/plugins/refinery/lib/generators/refinery/templates/views/admin/index.html.erb in refinerycms-0.9.6.34 vs vendor/plugins/refinery/lib/generators/refinery/templates/views/admin/index.html.erb in refinerycms-0.9.7

- old
+ new

@@ -6,23 +6,23 @@ <li> <%%= link_to "Create New <%= $title_name %>", new_admin_<%= singular_name %>_url, :class => "add_icon" %> </li> <%% if !searching? and <%= class_name %>.count > 1 %> <li> - <%%= link_to "Reorder <%= $title_name.pluralize %>", admin_<%= plural_name %>_url, :id => "reorder_action", :class => "reorder_icon" %> - <%%= link_to "Done Reordering <%= $title_name.pluralize %>", admin_<%= plural_name %>_url, :id => "reorder_action_done", :style => "display: none;", :class => "reorder_icon" %> + <%%= link_to t('refinery.reorder', :what => "<%= $title_name.pluralize %>"), admin_<%= plural_name %>_url, :id => "reorder_action", :class => "reorder_icon" %> + <%%= link_to t('refinery.reorder_done', :what => "<%= $title_name.pluralize %>"), admin_<%= plural_name %>_url, :id => "reorder_action_done", :style => "display: none;", :class => "reorder_icon" %> </li> <%% end %> </ul> </div> <div id='records'> <%% if searching? %> - <h2>Search Results for "<%%= params[:search] %>"</h2> + <h2><%%= t('admin.search_results_for', :query => params[:search]) %></h2> <%% if @<%= plural_name %>.any? %> <%%= render :partial => "<%= singular_name %>", :collection => @<%= plural_name %> %> <%% else %> - <p>Sorry, no results found.</p> + <p><%%= t('.search_no_results') %></p> <%% end %> <%% else %> <%% if @<%= plural_name %>.any? %> <%%= will_paginate @<%= plural_name %>, :previous_label => '&laquo;', :next_label => '&raquo;' %> <ul id='sortable_list'> @@ -30,11 +30,10 @@ </ul> <%%= will_paginate @<%= plural_name %>, :previous_label => '&laquo;', :next_label => '&raquo;' %> <%% else %> <p> <strong> - There are no <%= $title_name.pluralize.downcase %> yet. - Click "Create New <%= $title_name %>" to add your first <%= $title_name.downcase %>. + <%%= t('.no_items_yet') %> </strong> </p> <%% end %> <%% end %> </div>