-
Notifications
You must be signed in to change notification settings - Fork 509
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
Merged
Merged
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
c6668cc
Add fields for locales to allow emails to be sent and the user interf…
zz9pzza 756b9c7
Make test not go bang
zz9pzza 89d8037
The ability to change the prefered locale is now controlled by roll out
zz9pzza da94fdf
If the user has a locale preference then honor it in the FAQ's
zz9pzza 34fe64d
remove debugging code
zz9pzza 4367bd5
Make the preference visible in the testing enviroment
zz9pzza 8be49cf
Update text used in label
zz9pzza fdecc60
Merge branch 'master' of https://github.com/otwcode/otwarchive into i…
zz9pzza 29347a2
Merge branch 'issue_4099' of git://github.com/zz9pzza/otwarchive into…
sarken 1c09f7e
4099 Locales front end suggestions
sarken 753b43f
Following Sarken's comments
zz9pzza ad92811
Merge branch 'issue_4099' of https://github.com/sarken/otwarchive int…
zz9pzza fb64249
Merge branch 'master' of https://github.com/otwcode/otwarchive into i…
zz9pzza b68ac08
I think that is what saren wished
zz9pzza 9277259
Merge branch 'master' of https://github.com/otwcode/otwarchive into i…
zz9pzza 26bbffd
fix merge conflict
zz9pzza f7ebf13
opening in <li> removed
zz9pzza d1453a3
fix from Sarken
zz9pzza 6ffc135
Merge branch 'master' of https://github.com/otwcode/otwarchive into i…
zz9pzza d04cac4
Listen to the hound
zz9pzza c21c43b
Fix conflict
zz9pzza 3e6d0f0
Follow the hound
zz9pzza 6e8c6db
language not l
zz9pzza 2c6788f
Fix spaces
zz9pzza 9c26565
s/L/l/;
zz9pzza 4056207
locale not l
zz9pzza 07080f2
Change the text
zz9pzza 81d76a7
Clear up tests
zz9pzza 066f36d
preferred not prefered
zz9pzza ccfd466
Merge branch 'master' of https://github.com/otwcode/otwarchive into i…
zz9pzza f6cecc3
One last typo
zz9pzza e5754af
Ensure the database is correct
zz9pzza 9e4509c
Merge branch 'master' of https://github.com/otwcode/otwarchive into i…
zz9pzza d45b418
Update the sructure
zz9pzza cbc201e
Put the db files back
zz9pzza f72f979
Get travis to delete the current db state to make the files not used …
zz9pzza a38edb4
Try this travis
zz9pzza 4f9b118
Try this travis
zz9pzza 826804a
We need to do the migrations
zz9pzza 8e6c0c8
Roll up the migrations properly
zz9pzza 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
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,32 @@ | ||
<%= form_for(@locale, html: { class: 'post' }) do |f| %> | ||
<p class="required notice">* <%= t('.required_notice', :default => "Required information") %></p> | ||
|
||
<fieldset> | ||
<legend><%= t('.locale_legend', :default => "Locale") %></legend> | ||
<h3 class="landmark heading"><%= t('.locale_heading', :default => "Locale") %></h3> | ||
<dl> | ||
<dt class="required"><%= f.label :name, t('.name', :default => "Name") + '*' %></dt> | ||
<dd class="required"><%= f.text_field :name %></dd> | ||
|
||
<dt class="required"><%= f.label :iso, t('.iso', :default => "ISO code") + '*' %></dt> | ||
<dd class="required"><%= f.text_field :iso %></dd> | ||
|
||
<dt class="required"><%= f.label :language_id, t('.language', :default => "Language") + '*' %></dt> | ||
<dd class="required"><%= f.select(:language_id, @languages.collect { |language| [ language.name, language.id ] }) %></dd> | ||
|
||
<dt><%= f.check_box :email_enabled %></dt> | ||
<dd><%= f.label :email_enabled, t('.enable_email', :default => "Use this locale to send email") %></dd> | ||
|
||
<dt><%= f.check_box :interface_enabled %></dt> | ||
<dd><%= f.label :interface_enabled, t('.enable_interface', :default => "Use this locale for the interface") %></dd> | ||
|
||
</dl> | ||
</fieldset> | ||
<fieldset> | ||
<legend><%= t('.actions_legend', :default => "Actions") %></legend> | ||
<h3 class="landmark heading"><%= t('.actions_heading', :default => "Actions") %></h3> | ||
<p class="submit actions"> | ||
<%= f.submit @locale.new_record? ? t('.create_button', :default => "Create Locale") : t('.edit_button', :default => "Update Locale") %> | ||
</p> | ||
</fieldset> | ||
<% 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<ul class="navigation actions" role="navigation"> | ||
<li><%= span_if_current t('.link_to_index', :default => 'Locales'), locales_path %></li> | ||
<li><%= span_if_current t('.link_to_new', :default => 'New Locale'), new_locale_path %></li> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,13 @@ | ||
<!--Descriptive page name, messages and instructions--> | ||
<h2 class="heading"><%= t('.edit_locale', :default => 'Edit a locale:') %></h2> | ||
<h2 class="heading"><%= t('.edit_locale', :default => 'Edit Locale') %></h2> | ||
<%= error_messages_for :locale %> | ||
<!--/descriptions--> | ||
|
||
<!--subnav--> | ||
<%= render 'navigation' %> | ||
<!--/subnav--> | ||
|
||
<!--main content--> | ||
<%= form_for(@locale) do |f| %> | ||
<dl> | ||
<dt><%= f.label :language_id, t('.language', :default => "Language:") %></dt> | ||
<dd><%= f.select(:language_id, @languages.collect {|l| [ l.name, l.id ] }) %></dd> | ||
<dt><%= f.label :name, t('.name', :default => "Name:") %></dt> | ||
<dd><%= f.text_field :name %></dd> | ||
<dt><%= f.label :iso, t('.iso', :default => "Iso:") %></dt> | ||
<dd><%= f.text_field :iso %></dd> | ||
</dl> | ||
<p class="submit actions"><%= f.submit t('.forms.submit', :default => "Submit") %></p> | ||
<% end %> | ||
<%= render 'locale_form' %> | ||
<!--/content--> | ||
|
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,24 +1,13 @@ | ||
<!--Descriptive page name, messages and instructions--> | ||
<h2 class="heading"><%= t('.add_new_locale', :default => 'Add a new locale:') %></h2> | ||
<h2 class="heading"><%= t('.add_new_locale', :default => 'New Locale') %></h2> | ||
<%= error_messages_for :locale %> | ||
<!--/descriptions--> | ||
|
||
<!--subnav--> | ||
<%= render 'navigation' %> | ||
<!--/subnav--> | ||
|
||
<!--main content--> | ||
<%= form_for(@locale) do |f| %> | ||
<dl> | ||
<dt><%= f.label :language_id, t('.language', :default => "Language:") %></dt> | ||
<dd><%= f.select(:language_id, @languages.collect {|l| [ l.name, l.id ] }) %></dd> | ||
|
||
<dt><%= f.label :name, t('.name', :default => "Name:") %></dt> | ||
<dd><%= f.text_field :name %></dd> | ||
|
||
<dt><%= f.label :iso, t('.iso', :default => "Iso:") %></dt> | ||
<dd><%= f.text_field :iso %></dd> | ||
</dl> | ||
<p class="submit actions"><%= f.submit t('.forms.submit', :default => "Submit") %></p> | ||
<% end %> | ||
<%= render 'locale_form' %> | ||
<!--/content--> | ||
|
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
13 changes: 0 additions & 13 deletions
13
db/migrate/20100929044155_add_persistence_token_to_users_and_admins.rb
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
db/migrate/20101016131743_add_inherited_to_filter_taggings.rb
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
db/migrate/20101022160603_add_restrict_to_fandom_to_tag_set.rb
This file was deleted.
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.
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()