-
Notifications
You must be signed in to change notification settings - Fork 13
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
I18n for some of the devise related pages #1059
Closed
Closed
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
4f143de
Alliance seeds.
cwant 2d63c28
Language switch button
cwant 3deadcd
Alliance configuration, mostly via tess.yml.
cwant a040dd7
Why wouldn't you want pry to be the default REPL?
cwant 7c91a71
Refactor the IcalIngestor to be more subclass-friendly.
cwant fed1ea9
Add our own iCal importer and turn on sources in the UI.
cwant 1d7b2ee
Turn off failing test (shrug).
cwant 33fb212
Seed a bunch of ingestion sources.
cwant 9e13296
Some work on scheduling ingestion.
cwant c1172f3
More creative URL parsing for events.
cwant 201455e
Oops, forgot to seed the UVic source.
cwant 9810874
Merge remote-tracking branch 'upstream/master'
cwant e3cff13
French translations related to 'Language of instruction' feature.
cwant dda357e
Revert locale settings for test suite to upstream values.
cwant 27d1dce
Ensure the docker volumes are named according to the prefix, not the …
cwant 87b5f45
Highlight translations in the dev view.
cwant a5534c2
Merge remote-tracking branch 'upstream'
cwant 024db26
Merge remote-tracking branch 'upstream/master'
cwant 2ef4884
Merge remote-tracking branch 'upstream/master'
cwant b6bd6db
I18n for some of the devise related pages.
cwant File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
class LocalizationController < ApplicationController | ||
|
||
skip_before_action :authenticate_user!, :authenticate_user_from_token! | ||
|
||
def change_locale | ||
# Get locale from params into session | ||
# See also ApplicationController#locale_from_params_or_session | ||
if params[:locale] | ||
session[:locale] = params[:locale] | ||
else | ||
if session[:locale].to_s == 'en' | ||
session[:locale] = 'fr' | ||
else | ||
session[:locale] = 'en' | ||
end | ||
end | ||
|
||
if params[:back_to] | ||
redirect_to params[:back_to] | ||
else | ||
render body: '' | ||
end | ||
end | ||
|
||
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
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,21 +1,26 @@ | ||
<ul class="shared-links"> | ||
<%- if controller_name != 'sessions' %> | ||
<li>Already on <%= TeSS::Config.site['title_short'] %>? <%= link_to 'Log in', new_session_path(resource_name) %></li> | ||
<li><%= t('devise.links.already_on', title: TeSS::Config.site['title_short']) %> | ||
<%= link_to t('devise.links.log_in'), new_session_path(resource_name) %></li> | ||
<% end -%> | ||
|
||
<%- if devise_mapping.registerable? && controller_name != 'registrations' %> | ||
<li>New to <%= TeSS::Config.site['title_short'] %>? <%= link_to 'Register', new_registration_path(resource_name) %></li> | ||
<li><%= t('devise.links.new_to', title: TeSS::Config.site['title_short']) %> | ||
<%= link_to t('devise.links.register'), new_registration_path(resource_name) %></li> | ||
<% end -%> | ||
|
||
<%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %> | ||
<li>Forgot your password? <%= link_to 'Request a reset', new_password_path(resource_name) %></li> | ||
<li><%= t('devise.links.forgot_your_password') %> | ||
<%= link_to t('devise.links.request_a_reset'), new_password_path(resource_name) %></li> | ||
<% end -%> | ||
|
||
<%- if devise_mapping.confirmable? && controller_name != 'confirmations' %> | ||
<li>Didn’t receive confirmation instructions? <%= link_to 'Resend', new_confirmation_path(resource_name) %></li> | ||
<li><%= t('devise.links.didnt_receive_confirmation_instructions') %> | ||
<%= link_to t('devise.links.resend'), new_confirmation_path(resource_name) %></li> | ||
<% end -%> | ||
|
||
<%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %> | ||
<li>Didn't receive unlock instructions? <%= link_to 'Resend', new_unlock_path(resource_name) %></li> | ||
<li><%= t('devise.links.didnt_receive_unlock_instructions') %> | ||
<%= link_to t('devise.links.resend'), new_unlock_path(resource_name) %></li> | ||
<% end -%> | ||
</ul> |
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / CodeQL
URL redirection from remote source Medium