mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
d5f2c5c20e
Previously, only the object and method name from the label tag were used when looking up the translation for a label. If a value is given for the label, this ought to be additionally used. The following: # form.html.erb <%= form_for @post do |f| %> <%= f.label :type, value: "long" %> <% end %> # en.yml en: activerecord: attributes: post/long: "Long-form Post" Used to simply return "long", but now it will return "Long-form Post". |
||
---|---|---|
.. | ||
erb | ||
html-scanner | ||
testing | ||
active_model_helper_test.rb | ||
asset_tag_helper_test.rb | ||
atom_feed_helper_test.rb | ||
capture_helper_test.rb | ||
compiled_templates_test.rb | ||
date_helper_i18n_test.rb | ||
date_helper_test.rb | ||
debug_helper_test.rb | ||
dependency_tracker_test.rb | ||
digestor_test.rb | ||
erb_util_test.rb | ||
form_collections_helper_test.rb | ||
form_helper_test.rb | ||
form_options_helper_i18n_test.rb | ||
form_options_helper_test.rb | ||
form_tag_helper_test.rb | ||
html_test.rb | ||
javascript_helper_test.rb | ||
log_subscriber_test.rb | ||
lookup_context_test.rb | ||
number_helper_test.rb | ||
output_buffer_test.rb | ||
output_safety_helper_test.rb | ||
record_identifier_test.rb | ||
record_tag_helper_test.rb | ||
render_test.rb | ||
resolver_patterns_test.rb | ||
sanitize_helper_test.rb | ||
streaming_render_test.rb | ||
tag_helper_test.rb | ||
template_error_test.rb | ||
template_test.rb | ||
test_case_test.rb | ||
test_test.rb | ||
text_helper_test.rb | ||
text_test.rb | ||
translation_helper_test.rb | ||
url_helper_test.rb |