forked from solidusio/solidus_auth_devise
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request solidusio#200 from spaghetticode/spaghetticode/i18…
…n-t-views Replace `I18n.t` with `t` in views
- Loading branch information
Showing
17 changed files
with
65 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
<%= render partial: 'spree/shared/error_messages', locals: { target: @spree_user } %> | ||
<h2><%= I18n.t('spree.change_my_password') %></h2> | ||
<h2><%= t('spree.change_my_password') %></h2> | ||
|
||
<%= form_for @spree_user, as: :spree_user, url: spree.update_password_path, method: :put do |f| %> | ||
<p> | ||
<%= f.label :password, I18n.t('spree.password') %><br /> | ||
<%= f.label :password, t('spree.password') %><br /> | ||
<%= f.password_field :password %><br /> | ||
</p> | ||
<p> | ||
<%= f.label :password_confirmation, I18n.t('spree.confirm_password') %><br /> | ||
<%= f.label :password_confirmation, t('spree.confirm_password') %><br /> | ||
<%= f.password_field :password_confirmation %><br /> | ||
</p> | ||
<%= f.hidden_field :reset_password_token %> | ||
<%= f.submit I18n.t('spree.update'), class: 'button primary' %> | ||
<%= f.submit t('spree.update'), class: 'button primary' %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
<div id="forgot-password"> | ||
<h6><%= I18n.t('spree.forgot_password') %></h6> | ||
<h6><%= t('spree.forgot_password') %></h6> | ||
|
||
<p><%= I18n.t('spree.instructions_to_reset_password') %></p> | ||
<p><%= t('spree.instructions_to_reset_password') %></p> | ||
|
||
<%= form_for Spree::User.new, as: :spree_user, url: spree.admin_reset_password_path do |f| %> | ||
<p> | ||
<%= f.label :email, I18n.t('spree.email') %><br /> | ||
<%= f.label :email, t('spree.email') %><br /> | ||
<%= f.email_field :email, required: true %> | ||
</p> | ||
<p> | ||
<%= f.submit I18n.t('spree.reset_password'), class: 'button primary' %> | ||
<%= f.submit t('spree.reset_password'), class: 'button primary' %> | ||
</p> | ||
<% end %> | ||
</div> |
2 changes: 1 addition & 1 deletion
2
lib/views/backend/spree/admin/user_sessions/authorization_failure.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<div style="height:50px; padding-top:20px;"> | ||
<strong><%= I18n.t('spree.authorization_failure') %></strong> | ||
<strong><%= t('spree.authorization_failure') %></strong> | ||
</div> | ||
<!-- Add your own custom access denied message here if you like --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
<%= form_for Spree::User.new, as: :spree_user, url: spree.create_new_session_path do |f| %> | ||
<div id="password-credentials"> | ||
<p> | ||
<%= f.label :email, I18n.t('spree.email') %><br /> | ||
<%= f.label :email, t('spree.email') %><br /> | ||
<%= f.email_field :email, class: 'title', tabindex: 1, autofocus: true %> | ||
</p> | ||
<p> | ||
<%= f.label :password, I18n.t('spree.password') %><br /> | ||
<%= f.label :password, t('spree.password') %><br /> | ||
<%= f.password_field :password, class: 'title', tabindex: 2 %> | ||
</p> | ||
</div> | ||
<p> | ||
<%= f.check_box :remember_me, tabindex: 3 %> | ||
<%= f.label :remember_me, I18n.t('spree.remember_me') %> | ||
<%= f.label :remember_me, t('spree.remember_me') %> | ||
</p> | ||
|
||
<p><%= f.submit I18n.t('spree.login'), class: 'button primary', tabindex: 4 %></p> | ||
<p><%= f.submit t('spree.login'), class: 'button primary', tabindex: 4 %></p> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<% if spree_current_user %> | ||
<li><%= link_to I18n.t('spree.my_account'), spree.account_path %></li> | ||
<li><%= link_to I18n.t('spree.logout'), spree.logout_path, method: Devise.sign_out_via %></li> | ||
<li><%= link_to t('spree.my_account'), spree.account_path %></li> | ||
<li><%= link_to t('spree.logout'), spree.logout_path, method: Devise.sign_out_via %></li> | ||
<% else %> | ||
<li id="link-to-login"><%= link_to I18n.t('spree.login'), spree.login_path %></li> | ||
<li id="link-to-login"><%= link_to t('spree.login'), spree.login_path %></li> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
<%= render partial: 'spree/shared/error_messages', locals: { target: @spree_user } %> | ||
<div id="change-password"> | ||
<h6><%= I18n.t('spree.change_my_password') %></h6> | ||
<h6><%= t('spree.change_my_password') %></h6> | ||
|
||
<%= form_for @spree_user, as: :spree_user, url: spree.update_password_path, method: :put do |f| %> | ||
<p> | ||
<%= f.label :password, I18n.t('spree.password') %><br /> | ||
<%= f.label :password, t('spree.password') %><br /> | ||
<%= f.password_field :password %><br /> | ||
</p> | ||
<p> | ||
<%= f.label :password_confirmation, I18n.t('spree.confirm_password') %><br /> | ||
<%= f.label :password_confirmation, t('spree.confirm_password') %><br /> | ||
<%= f.password_field :password_confirmation %><br /> | ||
</p> | ||
<%= f.hidden_field :reset_password_token %> | ||
<%= f.submit I18n.t('spree.update'), class: 'button primary' %> | ||
<%= f.submit t('spree.update'), class: 'button primary' %> | ||
<% end %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
<div id="forgot-password"> | ||
<h6><%= I18n.t('spree.forgot_password') %></h6> | ||
<h6><%= t('spree.forgot_password') %></h6> | ||
|
||
<p><%= I18n.t('spree.instructions_to_reset_password') %></p> | ||
<p><%= t('spree.instructions_to_reset_password') %></p> | ||
|
||
<%= form_for Spree::User.new, as: :spree_user, url: spree.reset_password_path do |f| %> | ||
<p> | ||
<%= f.label :email, I18n.t('spree.email') %><br /> | ||
<%= f.label :email, t('spree.email') %><br /> | ||
<%= f.email_field :email, required: true %> | ||
</p> | ||
<p> | ||
<%= f.submit I18n.t('spree.reset_password'), class: 'button primary' %> | ||
<%= f.submit t('spree.reset_password'), class: 'button primary' %> | ||
</p> | ||
<% end %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
lib/views/frontend/spree/user_sessions/authorization_failure.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<div style="height:50px; padding-top:20px;"> | ||
<strong><%= I18n.t('spree.authorization_failure') %></strong> | ||
<strong><%= t('spree.authorization_failure') %></strong> | ||
</div> | ||
<!-- Add your own custom access denied message here if you like --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters