-
Notifications
You must be signed in to change notification settings - Fork 467
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 #1866 from zz9pzza/issue_4099
Issue 4099 add a preference for the preferred locale for a user.
- Loading branch information
Showing
111 changed files
with
137 additions
and
1,396 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
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.