Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve I18n in shipping category views #829

Merged

Conversation

Murph33
Copy link
Contributor

@Murph33 Murph33 commented Feb 10, 2016

Use model name and model attribute translation instead of generic translations.

This is part of an ongoing effort to improve I18n usage as discussed in #735.

@@ -1,6 +1,6 @@
<div data-hook="admin_shipping_category_form_fields">
<div data-hook="name" class="field align-center">
<%= label_tag :shipping_category_name, Spree.t(:name) %><br>
<%= f.text_field :name %>
<%= label_tag :shipping_category_name %><br>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this will pick up a translation

@Murph33 Murph33 force-pushed the improve_i18n_shipping_category_views branch from c56c99a to 4c2f4ee Compare February 11, 2016 22:45
@jhawthorn
Copy link
Contributor

👍

jhawthorn added a commit that referenced this pull request Feb 12, 2016
…iews

Improve I18n in shipping category views
@jhawthorn jhawthorn merged commit b3169a7 into solidusio:master Feb 12, 2016
@Murph33 Murph33 deleted the improve_i18n_shipping_category_views branch February 18, 2016 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants