Skip to content

Commit

Permalink
Move lang to locale for article feedback part
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannick Francois committed Oct 14, 2013
1 parent 38c4982 commit 8810556
Show file tree
Hide file tree
Showing 34 changed files with 234 additions and 910 deletions.
26 changes: 12 additions & 14 deletions app/views/admin/feedback/article.html.erb
@@ -1,10 +1,8 @@
<%- content_for :page_heading do %>
<i class="icon-large icon-comment"></i><h2 class="page-title"><%= _("Comments for %s", @article.title) %></h2>
<% end %>
<% @link_to_new = link_to(_("Add a comment"), '#comment', {:id => 'dialog-link', :class => 'button'}) %>
<i class="icon-large icon-comment"></i><h2 class="page-title"><%= t(".comments_for", title: @article.title) %></h2>
<%- end %>
<%= form_tag({:action => 'bulkops'}) do %>
<%= form_tag({action: 'bulkops'}) do %>
<%= hidden_field 'article_id', @article.id %>
<%= render 'button', { :position => 'top' } %>
Expand All @@ -14,9 +12,9 @@
<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><%= t(".status")%></th>
<th><%= t(".comment_author")%></th>
<th><%= t(".comment")%></th>
</tr>
</thead>
<%= render_void_table(@feedback.size, 5) %>
Expand All @@ -30,34 +28,34 @@
<%= form_tag :action => "create" do %>
<%= hidden_field_tag('article_id', @article.id) %>
<fieldset class='form-horizontal'>
<legend><%= _("Add a comment")%></legend>
<legend><%= t(".add_a_comment")%></legend>
<div class='control-group'>
<label for="comment_author" class='control-label'><%= _("Author")%></label>
<label for="comment_author" class='control-label'><%= t(".author")%></label>
<div class='controls'>
<%= text_field 'comment', 'author', :class => 'medium' %>
</div>
</div>
<div class='control-group'>
<label for="comment_email" class='control-label'><%= _("Email")%></label>
<label for="comment_email" class='control-label'><%= t(".email")%></label>
<div class='controls'>
<%= text_field 'comment', 'email', :class => 'medium' %>
</div>
</div>
<div class='control-group'>
<label for="comment_url" class='control-label'><%= _("Url") %></label>
<label for="comment_url" class='control-label'><%= t(".url") %></label>
<div class='controls'>
<%= text_field 'comment', 'url', :class => 'medium' %>
</div>
</div>
<div class='control-group'>
<label for='comment_body' class='control-label'><%= _("Your comment") %></label>
<label for='comment_body' class='control-label'><%= t(".your_comment") %></label>
<div class='controls'>
<script type="text/javascript">edToolbar('comment_body', '<%= current_user.default_text_filter.name %>');</script>
<%= text_area 'comment', 'body', { :rows => '10', :class => 'span6'} %>
</div>
</div>
<div class='form-actions'>
<%= cancel_or_save %>
<%= t(".action_or_other", first_action: link_to(t(".cancel"), {action: 'index'}, class: 'btn'), second_action: submit_tag(t(".save"), class: 'btn btn-primary')) %>
</div>
</fieldset>

Expand Down
13 changes: 13 additions & 0 deletions config/locales/da.yml
Expand Up @@ -6,6 +6,19 @@ da:
last: "Last"
admin:
feedback:
article:
comments_for: "Kommentarer for %{title}"
status: "Status"
comment_author: "Comment Author"
comment: "Comment"
add_a_comment: "Add a comment"
author: "Forfatter"
email: "Email"
url: "Url"
your_comment: "Your comment"
action_or_other: "%{first_action} eller %{second_action}"
cancel: "Anuller"
save: "Gem"
button:
select_action: "Select action"
delete_checked_items: "Delete Checked Items"
Expand Down
13 changes: 13 additions & 0 deletions config/locales/de.yml
Expand Up @@ -6,6 +6,19 @@ de:
last: "Last"
admin:
feedback:
article:
comments_for: "Kommentare für %{title}"
status: "Status"
comment_author: "Comment Author"
comment: "Comment"
add_a_comment: "Add a comment"
author: "Autor"
email: "Email"
url: "Url"
your_comment: "Your comment"
action_or_other: "%{first_action} oder %{second_action}"
cancel: "Abbrechen"
save: "Speichern"
button:
select_action: "Select action"
delete_checked_items: "Delete Checked Items"
Expand Down
13 changes: 13 additions & 0 deletions config/locales/en.yml
Expand Up @@ -6,6 +6,19 @@ en:
last: "Last"
admin:
feedback:
article:
comments_for: "Comments for %{title}"
status: "Status"
comment_author: "Comment Author"
comment: "Comment"
add_a_comment: "Add a comment"
author: "Author"
email: "Email"
url: "Url"
your_comment: "Your comment"
action_or_other: "%{first_action} or %{second_action}"
cancel: "Cancel"
save: "Save"
button:
select_action: "Select action"
delete_checked_items: "Delete Checked Items"
Expand Down
13 changes: 13 additions & 0 deletions config/locales/es-MX.yml
Expand Up @@ -6,6 +6,19 @@ es-MX:
last: "Last"
admin:
feedback:
article:
comments_for: "Comentarios para %{title}"
status: "Estado"
comment_author: "Comment Author"
comment: "Comment"
add_a_comment: "Add a comment"
author: "Autor"
email: "Email"
url: "Url"
your_comment: "Your comment"
action_or_other: "%{first_action} o %{second_action}"
cancel: "Cancelar"
save: "Guardar"
button:
select_action: "Select action"
delete_checked_items: "Delete Checked Items"
Expand Down
13 changes: 13 additions & 0 deletions config/locales/fr.yml
Expand Up @@ -6,6 +6,19 @@ fr:
last: "Last"
admin:
feedback:
article:
comments_for: "Commentaire sur %{title}"
status: "État"
comment_author: "Auteur du commentaire"
comment: "Commentaire"
author: "Auteur"
add_a_comment: "Ajouter un commentaire"
email: "Email"
url: "Site"
your_comment: "Your comment"
action_or_other: "%{first_action} ou %{second_action}"
cancel: "Annuler"
save: "Sauver"
button:
select_action: "Choisir de..."
delete_checked_items: "Supprimer les commentaires sélectionnés"
Expand Down
13 changes: 13 additions & 0 deletions config/locales/he-IL.yml
Expand Up @@ -6,6 +6,19 @@ he-IL:
last: "Last"
admin:
feedback:
article:
comments_for: "תגובות עבור %{title}"
status: "מצב"
comment_author: "Comment Author"
comment: "תגובה"
add_a_comment: "Add a comment"
author: "כותב"
email: "דואל"
url: "כתובת"
your_comment: "Your comment"
action_or_other: "%{first_action} או %{second_action}"
cancel: "בטל"
save: "שמור"
button:
select_action: "Select action"
delete_checked_items: "מחק פריטים שסומנו"
Expand Down
13 changes: 13 additions & 0 deletions config/locales/it.yml
Expand Up @@ -6,6 +6,19 @@ it:
last: "Last"
admin:
feedback:
article:
comments_for: "Commenti per %{title}"
status: "Stato"
comment_author: "Comment Author"
comment: "Comment"
add_a_comment: "Add a comment"
author: "Autore"
email: "Email"
url: "Sito"
your_comment: "Your comment"
action_or_other: "%{first_action} o %{second_action}"
cancel: "Annulla"
save: "Salva"
button:
select_action: "Select action"
delete_checked_items: "Elimina gli elementi selezionati"
Expand Down
13 changes: 13 additions & 0 deletions config/locales/ja.yml
Expand Up @@ -6,6 +6,19 @@ ja:
last: "Last"
admin:
feedback:
article:
comments_for: "〜へコメント%{title}"
status: "ステータス"
comment_author: "Comment Author"
comment: "Comment"
add_a_comment: "Add a comment"
author: "投稿者"
email: "メールアドレス"
url: "Url"
your_comment: "Your comment"
action_or_other: "%{first_action} または %{second_action}"
cancel: "キャンセル"
save: "保存"
button:
select_action: "Select action"
delete_checked_items: "チェックした行を削除"
Expand Down
13 changes: 13 additions & 0 deletions config/locales/lt.yml
Expand Up @@ -6,6 +6,19 @@ lt:
last: "Last"
admin:
feedback:
article:
comments_for: "Komentarai %{title}"
status: "Statusas"
comment_author: "Comment Author"
comment: "Comment"
add_a_comment: "Add a comment"
author: "Autorius"
email: "El. pašto adresas"
url: "Url adresas"
your_comment: "Your comment"
action_or_other: "%{first_action} arba %{second_action}"
cancel: "Baigti"
save: "Saugoti"
button:
select_action: "Select action"
delete_checked_items: "Delete Checked Items"
Expand Down
13 changes: 13 additions & 0 deletions config/locales/nb-NO.yml
Expand Up @@ -6,6 +6,19 @@ nb-NO:
last: "Last"
admin:
feedback:
article:
comments_for: "Kommentarer for %{title}"
status: "Status"
comment_author: "Kommentarforfatter"
comment: "Kommentar"
add_a_comment: "Legg til kommentar"
author: "Forfatter"
email: "Epost"
url: "URL"
your_comment: "Your comment"
action_or_other: "%{first_action} eller %{second_action}"
cancel: "Annuller"
save: "Lagre"
button:
select_action: "Velg handling"
delete_checked_items: "Slett markerte enheter"
Expand Down
13 changes: 13 additions & 0 deletions config/locales/nl.yml
Expand Up @@ -6,6 +6,19 @@ nl:
last: "Last"
admin:
feedback:
article:
comments_for: "Commentaren voor %{title}"
status: "Status"
comment_author: "Auteur commentaar"
comment: "Reactie"
add_a_comment: "Voeg een commentaar toe"
author: "Auteur"
email: "e-mail"
url: "Url"
your_comment: "Your comment"
action_or_other: "%{first_action} of %{second_action}"
cancel: "Terug"
save: "Bewaar"
button:
select_action: "Kies actie"
delete_checked_items: "Verwijder aangevinkte reacties"
Expand Down
13 changes: 13 additions & 0 deletions config/locales/pl.yml
Expand Up @@ -6,6 +6,19 @@ pl:
last: "Last"
admin:
feedback:
article:
comments_for: "Komentarze do %{title}"
status: "Stan"
comment_author: "Comment Author"
comment: "Comment"
add_a_comment: "Add a comment"
author: "Autor"
email: "Email"
url: "Url"
your_comment: "Your comment"
action_or_other: "%{first_action} lub %{second_action}"
cancel: "Anuluj"
save: "Zapisz"
button:
select_action: "Select action"
delete_checked_items: "Delete Checked Items"
Expand Down
13 changes: 13 additions & 0 deletions config/locales/pt-BR.yml
Expand Up @@ -6,6 +6,19 @@ pt-BR:
last: "Anterior"
admin:
feedback:
article:
comments_for: "Comentarios para %{title}"
status: "Estado"
comment_author: "Comment Author"
comment: "Commentario"
add_a_comment: "Add a comment"
author: "Autor"
email: "Email"
url: "Url"
your_comment: "Your comment"
action_or_other: "%{first_action} ou %{second_action}"
cancel: "Cancelar"
save: "Salvar"
button:
select_action: "Select action"
delete_checked_items: "Delete Checked Items"
Expand Down
13 changes: 13 additions & 0 deletions config/locales/ro.yml
Expand Up @@ -6,6 +6,19 @@ ro:
last: "Last"
admin:
feedback:
article:
comments_for: "Comentariile la %{title}"
status: "Status"
comment_author: "Comment Author"
comment: "Comment"
add_a_comment: "Add a comment"
author: "Autor"
email: "Email"
url: "Adresa"
your_comment: "Your comment"
action_or_other: "%{first_action} sau %{second_action}"
cancel: "Anulare"
save: "Salvează"
button:
select_action: "Select action"
delete_checked_items: "Delete Checked Items"
Expand Down
15 changes: 14 additions & 1 deletion config/locales/ru.yml
Expand Up @@ -6,6 +6,19 @@ ru:
last: "Last"
admin:
feedback:
article:
comments_for: "Comments for %{title}"
status: "Status"
comment_author: "Comment Author"
comment: "Отправить комментарий"
add_a_comment: "Add a comment"
author: "Автор"
email: "Email"
url: "Url"
your_comment: "Your comment"
action_or_other: "%{first_action} или %{second_action}"
cancel: "Отменить"
save: "Сохранить"
button:
select_action: "Select action"
delete_checked_items: "Delete Checked Items"
Expand Down Expand Up @@ -102,7 +115,7 @@ ru:
excerpt: "Выдержка"
excerpt_explaination: "Выдержка — это анонс поста, который будет отображаться только на главной странице, и не будет присутствовать при просмотре полного поста"
publish_settings: "Настройки публикации"
status: "Status:"
status: "Status"
published: "Опубликован"
allowed_comments_and_trackbacks: "Comments are %{allow_comment} and trackbacks are %{allow_trackback}"
change: "Change"
Expand Down
13 changes: 13 additions & 0 deletions config/locales/zh-CN.yml
Expand Up @@ -6,6 +6,19 @@ zh-CN:
last: "Last"
admin:
feedback:
article:
comments_for: "做出评论 %{title}"
status: "状态"
comment_author: "Comment Author"
comment: "Comment"
add_a_comment: "Add a comment"
author: "作者"
email: "Email"
url: "Url"
your_comment: "Your comment"
action_or_other: "%{first_action} 或 %{second_action}"
cancel: "取消"
save: "保存"
button:
select_action: "Select action"
delete_checked_items: "Delete Checked Items"
Expand Down

0 comments on commit 8810556

Please sign in to comment.