From 1799ee49ceef4dd2f9051c0e4d4e5c85643316f2 Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Sun, 3 Nov 2024 12:42:10 +0000 Subject: Use @.capitalize@ for button_save_object, button_edit_object, and button_delete_object labels in order to ensure that only the first character is converted to uppercase and the rest to lowercase (#37072). git-svn-id: https://svn.redmine.org/redmine/trunk@23191 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/calendars/show.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/views/calendars') diff --git a/app/views/calendars/show.html.erb b/app/views/calendars/show.html.erb index b67b93238..c1d412a0b 100644 --- a/app/views/calendars/show.html.erb +++ b/app/views/calendars/show.html.erb @@ -38,13 +38,13 @@ <%= link_to_function sprite_icon('checked', l(:button_apply)), '$("#query_form").submit()', :class => 'icon icon-checked' %> <%= link_to sprite_icon('reload', l(:button_clear)), { :project_id => @project, :set_filter => 1 }, :class => 'icon icon-reload' %> <% if @query.new_record? && User.current.allowed_to?(:save_queries, @project, :global => true) %> - <%= link_to_function sprite_icon('save', l(:button_save_object, object_name: l(:label_query).downcase)), + <%= link_to_function sprite_icon('save', l(:button_save_object, object_name: l(:label_query)).capitalize), "$('#query_form').attr('action', '#{ @project ? new_project_query_path(@project) : new_query_path }').submit();", :class => 'icon icon-save' %> <% end %> <% if !@query.new_record? && @query.editable_by?(User.current) %> - <%= link_to sprite_icon('edit', l(:button_edit_object, object_name: l(:label_query).downcase)), edit_query_path(@query, :calendar => 1), :class => 'icon icon-edit' %> - <%= delete_link query_path(@query, :calendar => 1), {}, l(:button_delete_object, object_name: l(:label_query).downcase) %> + <%= link_to sprite_icon('edit', l(:button_edit_object, object_name: l(:label_query)).capitalize), edit_query_path(@query, :calendar => 1), :class => 'icon icon-edit' %> + <%= delete_link query_path(@query, :calendar => 1), {}, l(:button_delete_object, object_name: l(:label_query)).capitalize %> <% end %>

-- cgit v1.2.3