Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add more strings

  • Loading branch information...
commit 92023e17462ad7bb452f17b531ec1f2bcc446d01 1 parent 80b8508
@zr2d2 zr2d2 authored
View
10 app/views/subscriptions/manage.html.erb
@@ -1,7 +1,7 @@
<div class="row-fluid">
<div class="span2 collapse-right">
<ul class="nav nav-tabs nav-stacked nav-drawer-left">
- <li class="nav-header"><%= t(:switch_to_screen_position) %>:</li>
+ <li class="nav-header"><%= t(:switch_position) %>:</li>
<% @fields.each do |field| %>
<li<% if field.id == @this_field.id %> class="active"<% end %>>
<%= link_to manage_screen_field_subscriptions_path(@screen, field) do %>
@@ -32,15 +32,15 @@
<tr>
<td>
<h2><%= subscription.feed.name %></h2>
- <h4 class="color-gray"><%= subscription.feed.approved_contents.size %> approved content<%= subscription.feed.approved_contents.size == 1 ? '' : 's' %></h4>
+ <h4 class="color-gray"><%= pluralize subscription.feed.approved_contents.size, t(:approved_content) %></h4>
<%= hidden_field_tag "subscription_id[#{i}]", subscription.id %>
<%= hidden_field_tag "subscription_feed[#{i}]", subscription.feed.id, :class => "marker-sub-feed" %>
</td>
<td>
<div class="clearfix frequency" data-sub-index="<%= i %>">
- <div class="leftseconds" style="width: 50px;">Rarely shown</div>
+ <div class="leftseconds" style="width: 50px;"><%= t(:rare) %></div>
<%= range_field :subscription_weight, i, { :value => subscription.weight, :min => 1, :max => Subscription::WEIGHTS.size, :step => 1, :class => "frequency_range thin" } %>
- <div class="rightseconds" style="width: 50px;">Frequently shown</div>
+ <div class="rightseconds" style="width: 50px;"><%= t(:frequent) %></div>
</div>
</td>
<td>
@@ -64,7 +64,7 @@
<div id="save-subscriptions-alert" class="alert alert-block alert-removeborder alert-zero" style="display: table; text-align: right;">
<span class="save-msg" style="display:table-cell; vertical-align:middle; width: 100%;">
- Please make some changes above in order to save new subscriptions.
+ <%= t(:make_changes) %>
</span>
<%= f.submit "Save changes to subscriptions", :class => "btn large pull-right", :style => "margin-left: 12px;" %>
</div>
View
9 config/locales/views/subscriptions/en.yml
@@ -1,5 +1,12 @@
en:
subscriptions_created: 'Subscriptions created'
subscriptions_updated: 'Subscriptions have been saved for this field on your screen.'
+
+ #_manage
add_a_new_feed: 'add a new feed'
- manage_subscriptions: 'Manage Subscriptions for %{name} Field'
+ manage_subscriptions: 'Manage Subscriptions for %{name} Field'
+ switch_position: 'switch to screen position'
+ approved_content: 'approved content'
+ rare: 'Rarely shown'
+ frequent: 'Frequently shown'
+ make_changes: 'Please make some changes above in order to save new subscriptions.'
Please sign in to comment.
Something went wrong with that request. Please try again.