Project

General

Profile

Patch #44342 » hours_field_placeholder_localization.patch

Ivan Kabluchkov, 2026-08-13 18:04

View differences:

config/locales/en.yml
label_enable_default_issue_due_date_offset: Enable default due date for new issues
setting_default_issue_due_date_offset: Default due date for new issues
label_days_relative_to_today: days relative to today
hours_field_placeholder: h:mm
webhook_event_created: "%{object_name} created"
webhook_event_updated: "%{object_name} updated"
config/locales/ru.yml
error_issue_status_in_use_by_issues: This status is used by some issues
error_issue_status_default_for_trackers: This status is used as the default status by some trackers
text_users_remove_from_group_confirmation: Are you sure you want to remove the selected user(s) from the group %{group}?
hours_field_placeholder: ч:мм
lib/redmine/views/labelled_form_builder.rb
# display the value before type cast when the entered value is not valid
if @object.errors[field].blank?
options = options.merge(:value => format_hours(@object.send field))
.with_defaults(:placeholder => 'h:mm')
.with_defaults(:placeholder => l(:hours_field_placeholder))
end
text_field field, options
end
    (1-1/1)