lib/generators/kryptonite/scaffold/templates/views/index.html.erb in kryptonite-0.0.1 vs lib/generators/kryptonite/scaffold/templates/views/index.html.erb in kryptonite-0.0.2
- old
+ new
@@ -1,11 +1,11 @@
<!-- Scaffolding generated by Kryptonite <%= kryptonite_get_full_version_string %> -->
-<h2><%= plural_name.humanize.capitalize %></h2>
+<h2><%%= t("kryptonite.<%= plural_name %>.plural_name_cap") %></h2>
<%%= render :partial => 'kryptonite/<%= plural_name %>/table', :locals => { :<%= plural_name %> => @<%= plural_name %> } %>
<%%= will_paginate @<%= plural_name %> %>
<%%= content_for :sidebar do %>
- <li><%%= link_to "#{kryptonite_show_icon "add"}Add a new <%= singular_name.humanize.downcase %>".html_safe, new_kryptonite_<%= singular_name %>_path %></li>
+ <li><%%= link_to "#{kryptonite_show_icon "add"}#{t("scaffold_add_new", :model=>t("kryptonite.<%= plural_name %>.singular_name_down"))}".html_safe, new_kryptonite_<%= singular_name %>_path %></li>
<%% end %>
\ No newline at end of file