-
Notifications
You must be signed in to change notification settings - Fork 480
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
Issue 4099 add a preference for the preferred locale for a user. #1866
Conversation
…ace to be used in different locales ( adds the admin preferences )
@@ -119,7 +119,11 @@ def set_locale | |||
if params[:language_id] && session[:language_id] != params[:language_id] | |||
session[:language_id] = params[:language_id] | |||
end | |||
@i18n_locale = session[:language_id] || I18n.default_locale | |||
if current_user.present? && $rollout.active?(:set_locale_preference, current_user) then |
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.
Is then
something special required for rollout? If not, it should probably come out -- it's not standard syntax for us.
There were quite a few interface, code, and accessibility issues with the locale views, so rather than go through and leave a million comments, I made the changes myself. You might want to pull them in: https://github.com/sarken/otwarchive/tree/issue_4099 But if you don't, we can make a separate issue and pull request for them. |
</dl> | ||
</fieldset> | ||
</fieldset> | ||
</ul> |
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.
This </ul>
shouldn't be here.
Just two little things that got overlooked! (I commented on them.) Then someone else can give this a once-over from a backend POV. (The test failure is for importing and seems to be unrelated.) |
<dl id="help"> | ||
<dt>Set preferred locale</dt> | ||
<dd> | ||
This preference allows you to select your prefered language for email messages that the Archive sends to you. The templates for these messages are currently being updated and translated by our volunteers. This is a work in progress; not all messages will be available in languages other than English at this time. If the template for that email has not yet been translated to your language, it will be sent in English. |
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.
One last "prefered" snuck in here.
I think the test failures we're seeing might actually be related to this: Mysql2::Error: Unknown column 'locales.email_enabled' in 'where clause': SELECT |
…for testing so we can automate the generation on deploying to test
1 similar comment
2 similar comments
<td><%= locale.interface_enabled %></td> | ||
<td><%= locale.updated_at %></td> | ||
<td class="actions"> | ||
<%= link_to ts('Edit'), {controller: :locales, action: :edit, id: locale.iso} %> |
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.
This is a remaining ts() in a file that seems to otherwise use t()
Issue 4099 add a preference for the preferred locale for a user.
This adds the preferred locale user preference, currently the ability to edit this preference is controlled by roll out.
https://code.google.com/p/otwarchive/issues/detail?id=4099