Skip to content

Commit

Permalink
Move lang to locales for feedback index
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannick Francois committed Oct 15, 2013
1 parent 74b9a62 commit 095c71b
Show file tree
Hide file tree
Showing 33 changed files with 255 additions and 170 deletions.
31 changes: 16 additions & 15 deletions app/views/admin/feedback/index.html.erb
@@ -1,30 +1,31 @@
<%- content_for :page_heading do %>
<i class="icon-large icon-comment"></i><h2 class="page-title"><%= _("Feedback") %></h2>
<i class="icon-large icon-comment"></i>
<h2 class="page-title"><%= t(".feedback") %></h2>
<% end %>
<%= form_tag({:action => 'index'}, :method => :get, :class => 'form-inline') do %>
<%= form_tag({action: 'index'}, method: :get, class: 'form-inline') do %>
<div>
<span class='badge badge-inverse'>
<%= link_to(_("All"), controller: 'admin/feedback', action: :index) %>
<%= link_to(t(".all"), controller: 'admin/feedback', action: :index) %>
</span>&nbsp;
<span class='badge'>
<%= link_to(_("Unapproved comments"), controller: 'admin/feedback', action: :index, confirmed: 'f') %>
<%= link_to(t(".unapproved_comments"), controller: 'admin/feedback', action: :index, confirmed: 'f') %>
</span>&nbsp;
<span class='badge badge-success'>
<%= link_to(_("Ham"), controller: 'admin/feedback', action: :index, ham: 'f') %>
<%= link_to(t(".ham"), controller: 'admin/feedback', action: :index, ham: 'f') %>
</span>&nbsp;
<span class='badge badge-important'>
<%= link_to(_("Spam"), controller: 'admin/feedback', action: :index, spam: 'f') %>
<%= link_to(t(".spam"), controller: 'admin/feedback', action: :index, spam: 'f') %>
</span>&nbsp;
<span class='badge badge-info'>
<%= link_to(_("Presumed ham"), controller: 'admin/feedback', action: :index, presumed_ham: 'f') %>
<%= link_to(t(".presumed_ham"), controller: 'admin/feedback', action: :index, presumed_ham: 'f') %>
</span>&nbsp;
<span class='badge badge-warning'>
<%= link_to(_("Presumed spam"), controller: 'admin/feedback', action: :index, published: 'f') %>
<%= link_to(t(".presumed_spam"), controller: 'admin/feedback', action: :index, published: 'f') %>
</span>&nbsp;
<div class='pull-right input-append'>
<input type="text" id="feedback_search" name="search" value="<%=h params[:search] %>" class='medium' />
<%= submit_tag(_("Search"), {:class => 'btn'}) %>
<%= submit_tag(t(".search"), {:class => 'btn'}) %>
</div>
</div>
<% end %>
Expand All @@ -39,10 +40,10 @@
<thead>
<tr class='noborder'>
<th><input type="checkbox" name="checkall" id="checkall" onclick="check_all(this);"/></th>
<th><%= _("Status")%></th>
<th><%= _("Comment Author")%></th>
<th><%= _("Comment")%></th>
<th><%= _("Article")%></th>
<th><%= t(".status")%></th>
<th><%= t(".comment_author")%></th>
<th><%= t(".comment")%></th>
<th><%= t(".article")%></th>
</tr>
</thead>
<%= render_void_table(@feedback.size, 5) %>
Expand All @@ -53,10 +54,10 @@
<%= display_pagination(@feedback, 5) %>
<tr>
<th><input type="checkbox" name="checkall" id="checkall" onclick="check_all(this);"/></th>
<th colspan='4'><%= _("Select all") %></th>
<th colspan='4'><%= t(".select_all") %></th>
</tr>
</table>
<%= render 'button', { :position => 'bottom' } %>
<%= render 'button', { position: 'bottom' } %>
<% end %>

<br class='clear' />
14 changes: 14 additions & 0 deletions config/locales/da.yml
Expand Up @@ -6,6 +6,20 @@ da:
last: "Last"
admin:
feedback:
index:
feedback: "Diskussion"
all: "All"
unapproved_comments: "Unapproved comments"
ham: "Ham"
spam: "Spam"
presumed_ham: "Presumed ham"
presumed_spam: "Presumed spam"
search: "Search"
status: "Status"
comment_author: "Comment Author"
comment: "Comment"
article: "Artikel"
select_all: "Select all"
article:
comments_for: "Kommentarer for %{title}"
status: "Status"
Expand Down
14 changes: 14 additions & 0 deletions config/locales/de.yml
Expand Up @@ -6,6 +6,20 @@ de:
last: "Last"
admin:
feedback:
index:
feedback: "Diskussion"
all: "All"
unapproved_comments: "Unapproved comments"
ham: "Ham"
spam: "Spam"
presumed_ham: "Presumed ham"
presumed_spam: "Presumed spam"
search: "Search"
status: "Status"
comment_author: "Comment Author"
comment: "Comment"
article: "Article"
select_all: "Select all"
article:
comments_for: "Kommentare für %{title}"
status: "Status"
Expand Down
16 changes: 15 additions & 1 deletion config/locales/en.yml
Expand Up @@ -6,6 +6,20 @@ en:
last: "Last"
admin:
feedback:
index:
feedback: "Feedback"
all: "All"
unapproved_comments: "Unapproved comments"
ham: "Ham"
spam: "Spam"
presumed_ham: "Presumed ham"
presumed_spam: "Presumed spam"
search: "Search"
status: "Status"
comment_author: "Comment Author"
comment: "Comment"
article: "Article"
select_all: "Select all"
article:
comments_for: "Comments for %{title}"
status: "Status"
Expand Down Expand Up @@ -115,7 +129,7 @@ en:
excerpt: "Excerpt"
excerpt_explaination: "Excerpts are post summaries that show only on your blog homepage and won’t appear on the post itself"
publish_settings: "Publish settings"
status: "Status:"
status: "Status"
published: "Published"
allowed_comments_and_trackbacks: "Comments are %{allow_comment} and trackbacks are %{allow_trackback}"
change: "Change"
Expand Down
14 changes: 14 additions & 0 deletions config/locales/es-MX.yml
Expand Up @@ -6,6 +6,20 @@ es-MX:
last: "Last"
admin:
feedback:
index:
feedback: "Feedback"
all: "All"
unapproved_comments: "Unapproved comments"
ham: "Ham"
spam: "Spam"
presumed_ham: "Presumed ham"
presumed_spam: "Presumed spam"
search: "Search"
status: "Estado"
comment_author: "Comment Author"
comment: "Comment"
article: "Article"
select_all: "Select all"
article:
comments_for: "Comentarios para %{title}"
status: "Estado"
Expand Down
14 changes: 14 additions & 0 deletions config/locales/fr.yml
Expand Up @@ -6,6 +6,20 @@ fr:
last: "Last"
admin:
feedback:
index:
feedback: "Commentaires"
all: "Tous"
unapproved_comments: "Commentaires non validés"
ham: "Valide"
spam: "Spam"
presumed_ham: "Probablement valide"
presumed_spam: "Probablement du spam"
search: "Chercher"
status: "État"
comment_author: "Auteur du commentaire"
comment: "Commentaire"
article: "Article"
select_all: "Tout sélectionner"
article:
comments_for: "Commentaire sur %{title}"
status: "État"
Expand Down
14 changes: 14 additions & 0 deletions config/locales/he-IL.yml
Expand Up @@ -6,6 +6,20 @@ he-IL:
last: "Last"
admin:
feedback:
index:
feedback: "משוב"
all: "All"
unapproved_comments: "תגובות לא מאושרות"
ham: "לא-ספאם"
spam: "ספאם"
presumed_ham: "Presumed ham"
presumed_spam: "Presumed spam"
search: "חפש"
status: "מצב"
comment_author: "Comment Author"
comment: "תגובה"
article: "כתבה"
select_all: "Select all"
article:
comments_for: "תגובות עבור %{title}"
status: "מצב"
Expand Down
14 changes: 14 additions & 0 deletions config/locales/it.yml
Expand Up @@ -6,6 +6,20 @@ it:
last: "Last"
admin:
feedback:
index:
feedback: "Feedback"
all: "All"
unapproved_comments: "Unapproved comments"
ham: "Ham"
spam: "Spam"
presumed_ham: "Presumed ham"
presumed_spam: "Presumed spam"
search: "Cerca"
status: "Stato"
comment_author: "Comment Author"
comment: "Comment"
article: "Article"
select_all: "Select all"
article:
comments_for: "Commenti per %{title}"
status: "Stato"
Expand Down
14 changes: 14 additions & 0 deletions config/locales/ja.yml
Expand Up @@ -6,6 +6,20 @@ ja:
last: "Last"
admin:
feedback:
index:
feedback: "フィードバック"
all: "All"
unapproved_comments: "未承認コメント"
ham: "承認"
spam: "スパム"
presumed_ham: "Presumed ham"
presumed_spam: "Presumed spam"
search: "検索"
status: "ステータス"
comment_author: "Comment Author"
comment: "Comment"
article: "記事"
select_all: "Select all"
article:
comments_for: "〜へコメント%{title}"
status: "ステータス"
Expand Down
14 changes: 14 additions & 0 deletions config/locales/lt.yml
Expand Up @@ -6,6 +6,20 @@ lt:
last: "Last"
admin:
feedback:
index:
feedback: "Atsiliepimas"
all: "All"
unapproved_comments: "Unapproved comments"
ham: "Ham"
spam: "Spam"
presumed_ham: "Presumed ham"
presumed_spam: "Presumed spam"
search: "Search"
status: "Statusas"
comment_author: "Comment Author"
comment: "Comment"
article: "Article"
select_all: "Select all"
article:
comments_for: "Komentarai %{title}"
status: "Statusas"
Expand Down
14 changes: 14 additions & 0 deletions config/locales/nb-NO.yml
Expand Up @@ -6,6 +6,20 @@ nb-NO:
last: "Last"
admin:
feedback:
index:
feedback: "Diskusjon"
all: "All"
unapproved_comments: "Kommentarer på vent"
ham: "Ham"
spam: "Spam"
presumed_ham: "Presumed ham"
presumed_spam: "Presumed spam"
search: "Søk"
status: "Status"
comment_author: "Kommentarforfatter"
comment: "Kommentar"
article: "Artikkel"
select_all: "Velg alle"
article:
comments_for: "Kommentarer for %{title}"
status: "Status"
Expand Down
14 changes: 14 additions & 0 deletions config/locales/nl.yml
Expand Up @@ -6,6 +6,20 @@ nl:
last: "Last"
admin:
feedback:
index:
feedback: "Feedback"
all: "All"
unapproved_comments: "Niet goedgekeurde"
ham: "Ham"
spam: "Spam"
presumed_ham: "Presumed ham"
presumed_spam: "Presumed spam"
search: "Zoek"
status: "Status"
comment_author: "Auteur commentaar"
comment: "Reactie"
article: "Artikel"
select_all: "Select all"
article:
comments_for: "Commentaren voor %{title}"
status: "Status"
Expand Down
14 changes: 14 additions & 0 deletions config/locales/pl.yml
Expand Up @@ -6,6 +6,20 @@ pl:
last: "Last"
admin:
feedback:
index:
feedback: "Komentarze"
all: "All"
unapproved_comments: "Unapproved comments"
ham: "Ham"
spam: "Spam"
presumed_ham: "Presumed ham"
presumed_spam: "Presumed spam"
search: "Szukaj"
status: "Stan"
comment_author: "Comment Author"
comment: "Comment"
article: "Article"
select_all: "Select all"
article:
comments_for: "Komentarze do %{title}"
status: "Stan"
Expand Down
14 changes: 14 additions & 0 deletions config/locales/pt-BR.yml
Expand Up @@ -6,6 +6,20 @@ pt-BR:
last: "Anterior"
admin:
feedback:
index:
feedback: "Feedback"
all: "All"
unapproved_comments: "Unapproved comments"
ham: "Ham"
spam: "Spam"
presumed_ham: "Presumed ham"
presumed_spam: "Presumed spam"
search: "Buscar"
status: "Estado"
comment_author: "Comment Author"
comment: "Commentario"
article: "Article"
select_all: "Select all"
article:
comments_for: "Comentarios para %{title}"
status: "Estado"
Expand Down
14 changes: 14 additions & 0 deletions config/locales/ro.yml
Expand Up @@ -6,6 +6,20 @@ ro:
last: "Last"
admin:
feedback:
index:
feedback: "Feedback"
all: "All"
unapproved_comments: "Unapproved comments"
ham: "Ham"
spam: "Spam"
presumed_ham: "Presumed ham"
presumed_spam: "Presumed spam"
search: "Search"
status: "Status"
comment_author: "Comment Author"
comment: "Comment"
article: "Article"
select_all: "Select all"
article:
comments_for: "Comentariile la %{title}"
status: "Status"
Expand Down
14 changes: 14 additions & 0 deletions config/locales/ru.yml
Expand Up @@ -6,6 +6,20 @@ ru:
last: "Last"
admin:
feedback:
index:
feedback: "Комментарии"
all: "All"
unapproved_comments: "Unapproved comments"
ham: "Ham"
spam: "Spam"
presumed_ham: "Presumed ham"
presumed_spam: "Presumed spam"
search: "Найти"
status: "Status"
comment_author: "Comment Author"
comment: "Отправить комментарий"
article: "Article"
select_all: "Select all"
article:
comments_for: "Comments for %{title}"
status: "Status"
Expand Down

0 comments on commit 095c71b

Please sign in to comment.