Project

General

Profile

« Previous | Next » 

Revision 6366e9e2

Added by Bryan Kearney over 11 years ago

  • ID 6366e9e2476d4991d9fcdae07126b16b19847d13

Add gettext calls to the common views, application controller, and application helper objects.

Note, this patch does not include an update to the strings file. This will allow patches to be submitted without colliding with each other.
To regenerate the strings file, run rake gettext:find

View differences:

app/views/common/_puppetclasses_or_envs_changed.html.erb
<% title "Changed environments and puppet classes" -%>
<% title _("Changed environments and puppet classes") -%>
<%= form_tag "/#{controller_path}/obsolete_and_new" do -%>
<fieldset>
<legend>Accept these environment changes found in puppet? </legend>
<legend><%= _("Accept these environment changes found in puppet?") %> </legend>
<table class="table table-striped">
<th>Environment</th><th>Operation</th><th>Puppet Modules</th>
<th><%= _("Environment") %></th><th><%= _("Operation") %></th><th><%= _("Puppet Modules") %></th>
<% for kind in ["new", "obsolete", "updated"] -%>
<% unless (envs = @changed[kind]).empty? -%>
<% for env in envs.keys.sort -%>
......
<%= env -%>
</td>
<td>
<%= {"new" => "Add:", "obsolete" => "Remove:", "updated" => "Update:"}[kind] -%>
<%= {"new" => _("Add:"), "obsolete" => _("Remove:"), "updated" => _("Update:")}[kind] -%>
</td>
<td>
<% pcs = @changed[kind][env] -%>
......
</table>
</fieldset>
<div>
<%= link_to "Cancel","/" + controller_path, :class => "btn" %>
<%= link_to _("Cancel"),"/" + controller_path, :class => "btn" %>
<%= submit_tag "Update", :class => "btn btn-primary" %>
</div>
<% end -%>
<% end -%>

Also available in: Unified diff