-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 return authorization views. #817
Improve i18n in return authorization views. #817
Conversation
032ce27
to
22d1855
Compare
@@ -76,13 +76,13 @@ | |||
<% end %> | |||
|
|||
<%= f.field_container :stock_location do %> | |||
<%= f.label :stock_location, Spree.t(:stock_location) %> | |||
<%= f.label :stock_location_id %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we generally use Spree::StockLocation.human_name for these, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah. This wasn't merged in yet but it would be taken care of https://github.com/solidusio/solidus/pull/876/files#diff-3 if it's merged first or need to be rebased to take care of. I did this wrong in a number of places (every place in that PR) but since some were merged and some not I thought it made the most sense to handle it all in one PR and rebase as necessary.
Either way I can handle this change now instead of pushing something into master just to immediately change it.
22d1855
to
e92d5ff
Compare
So I tossed those other translations into new translations on model attributes that don't have corresponding column in the DB but if we want to do that I might need to take another sweep through the forms to be consistent because I'm pretty sure there are still some |
We should avoid them as much as possible, but "Ausnahmen machen die Regel", as Germans say. |
e92d5ff
to
bdda19d
Compare
@@ -69,6 +69,7 @@ en: | |||
spree/line_item: | |||
description: Item Description | |||
name: Name | |||
pre_tax_amount: Pre-Tax Refund Amount |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say let's go on a case-by-case basis here. Aside from the comments I made regarding |
bdda19d
to
c03343b
Compare
👍 |
@Murph33 Would you mind rebasing this on current master? |
Use model name and model attribute translations where logical. Change-Id: I8a56f3fa9aa158f4d2be205fce1808aa65728e9a
c03343b
to
2119b80
Compare
Thanks! |
Use model name and model attribute translations where logical.
This is part of an ongoing effort to improve I18n use in solidus as discussed in #735.