Project

General

Profile

Patch #44342 » hours_field_placeholder_localization.patch

Ivan Kabluchkov, 2026-08-13 18:04

View differences:

config/locales/en.yml
1193 1193
  label_enable_default_issue_due_date_offset: Enable default due date for new issues
1194 1194
  setting_default_issue_due_date_offset: Default due date for new issues
1195 1195
  label_days_relative_to_today: days relative to today
1196
  hours_field_placeholder: h:mm
1196 1197

  
1197 1198
  webhook_event_created: "%{object_name} created"
1198 1199
  webhook_event_updated: "%{object_name} updated"
config/locales/ru.yml
1624 1624
  error_issue_status_in_use_by_issues: This status is used by some issues
1625 1625
  error_issue_status_default_for_trackers: This status is used as the default status by some trackers
1626 1626
  text_users_remove_from_group_confirmation: Are you sure you want to remove the selected user(s) from the group %{group}?
1627
  hours_field_placeholder: ч:мм
lib/redmine/views/labelled_form_builder.rb
51 51
    # display the value before type cast when the entered value is not valid
52 52
    if @object.errors[field].blank?
53 53
      options = options.merge(:value => format_hours(@object.send field))
54
                       .with_defaults(:placeholder => 'h:mm')
54
                       .with_defaults(:placeholder => l(:hours_field_placeholder))
55 55
    end
56 56
    text_field field, options
57 57
  end
    (1-1/1)