This repository has been archived by the owner on May 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make I18n.t calls Ruby 3.0 compatible.
- Loading branch information
1 parent
eded53f
commit 64a8c54
Showing
8 changed files
with
26 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<h2><%= I18n.t('authy_register_title', {:scope => 'devise'}) %></h2> | ||
<h2><%= I18n.t('authy_register_title', scope: 'devise') %></h2> | ||
|
||
<%= enable_authy_form do %> | ||
<%= text_field_tag :country_code, '', :autocomplete => :off, :placeholder => I18n.t('devise.country'), :id => "authy-countries"%> | ||
<%= text_field_tag :cellphone, '', :autocomplete => :off, :placeholder => I18n.t('devise.cellphone'), :id => "authy-cellphone"%> | ||
<p><%= submit_tag I18n.t('enable_authy', {:scope => 'devise'}) %></p> | ||
<p><%= submit_tag I18n.t('enable_authy', scope: 'devise') %></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,5 +1,5 @@ | ||
%h2= I18n.t('authy_register_title', {:scope => 'devise'}) | ||
%h2= I18n.t('authy_register_title', scope: 'devise') | ||
= enable_authy_form do | ||
= text_field_tag :country_code, '', :autocomplete => :off, :placeholder => I18n.t('devise.country'), :id => "authy-countries" | ||
= text_field_tag :cellphone, '', :autocomplete => :off, :placeholder => I18n.t('devise.cellphone'), :id => "authy-cellphone" | ||
%p= submit_tag I18n.t('enable_authy', {:scope => 'devise'}) | ||
%p= submit_tag I18n.t('enable_authy', scope: 'devise') |
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 @@ | ||
<h2><%= I18n.t('authy_verify_installation_title', {:scope => 'devise'}) %></h2> | ||
<h2><%= I18n.t('authy_verify_installation_title', scope: 'devise') %></h2> | ||
|
||
<% if @authy_qr_code %> | ||
<%= image_tag @authy_qr_code, :size => '256x256', :alt => I18n.t('authy_qr_code_alt', {:scope => 'devise'}) %> | ||
<p><%= I18n.t('authy_qr_code_instructions', {:scope => 'devise'}) %></p> | ||
<%= image_tag @authy_qr_code, :size => '256x256', :alt => I18n.t('authy_qr_code_alt', scope: 'devise') %> | ||
<p><%= I18n.t('authy_qr_code_instructions', scope: 'devise') %></p> | ||
<% end %> | ||
|
||
<%= verify_authy_installation_form do %> | ||
<legend><%= I18n.t('submit_token_title', {:scope => 'devise'}) %></legend> | ||
<legend><%= I18n.t('submit_token_title', scope: 'devise') %></legend> | ||
<%= label_tag :token %> | ||
<%= text_field_tag :token, "", :autocomplete => "one-time-code", :inputmode => "numeric", :pattern => "[0-9]*", :id => 'authy-token' %> | ||
<label> | ||
<%= check_box_tag :remember_device %> | ||
<span><%= I18n.t('remember_device', {:scope => 'devise'}) %></span> | ||
<span><%= I18n.t('remember_device', scope: 'devise') %></span> | ||
</label> | ||
<%= authy_request_sms_link %> | ||
<%= submit_tag I18n.t('enable_my_account', {:scope => 'devise'}), :class => 'btn' %> | ||
<%= submit_tag I18n.t('enable_my_account', scope: 'devise'), :class => 'btn' %> | ||
<% 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,16 +1,16 @@ | ||
%h2= I18n.t('authy_verify_installation_title', {:scope => 'devise'}) | ||
%h2= I18n.t('authy_verify_installation_title', scope: 'devise') | ||
|
||
- if @authy_qr_code | ||
= image_tag @authy_qr_code, :size => '256x256', :alt => I18n.t('authy_qr_code_alt', {:scope => 'devise'}) | ||
%p= I18n.t('authy_qr_code_instructions', {:scope => 'devise'}) | ||
= image_tag @authy_qr_code, :size => '256x256', :alt => I18n.t('authy_qr_code_alt', scope: 'devise') | ||
%p= I18n.t('authy_qr_code_instructions', scope: 'devise') | ||
|
||
= verify_authy_installation_form do | ||
%legend= I18n.t('submit_token_title', {:scope => 'devise'}) | ||
%legend= I18n.t('submit_token_title', scope: 'devise') | ||
= label_tag :token | ||
= text_field_tag :token, "", :autocomplete => "one-time-code", :inputmode => "numeric", :pattern => "[0-9]*", :id => 'authy-token' | ||
%label | ||
= check_box_tag :remember_device | ||
%span= I18n.t('remember_device', {:scope => 'devise'}) | ||
%span= I18n.t('remember_device', scope: 'devise') | ||
= authy_request_sms_link | ||
= submit_tag I18n.t('enable_my_account', {:scope => 'devise'}), :class => 'btn' | ||
= submit_tag I18n.t('enable_my_account', scope: 'devise'), :class => 'btn' | ||
|
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