Skip to content

Commit

Permalink
Move lang to locale for comment part of dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannick Francois committed Oct 9, 2013
1 parent 1a6c6da commit 4fe0acb
Show file tree
Hide file tree
Showing 34 changed files with 76 additions and 102 deletions.
16 changes: 8 additions & 8 deletions app/views/admin/dashboard/_comment.html.erb
@@ -1,18 +1,18 @@
<% if @comments.size == 0 %>
<li class='alert'><%= _("No comments yet") %></li>
<% else %>
<% for comment in @comments -%>
<li id='feedback_<%= comment.id %>'>
<%- if @comments.size == 0 %>
<li class='alert'><%= t(".no_comments_yet") %></li>
<%- else %>
<%- for comment in @comments %>
<li id='feedback_<%= comment.id %>'>
<%= avatar_tag(:email => comment.email, :url => comment.url) %>
<h5>
<%= _("By") %> <%= (comment.url.blank?) ? h(comment.author) : link_to(h(comment.author), comment.url).nofollowify %>
<%= t(".by") %> <%= (comment.url.blank?) ? h(comment.author) : link_to(h(comment.author), comment.url).nofollowify %>
<%= display_date_and_time comment.created_at %>
</h5>
<p>
<%= comment.html.strip_html.slice(0..300) %>
<%= comment.html.strip_html.slice(0..300) %>
</p>
<%= show_feedback_actions(comment, 'dashboard') %>
<hr />
</li>
</li>
<% end %>
<% end %>
4 changes: 4 additions & 0 deletions config/locales/da.yml
Expand Up @@ -5,6 +5,10 @@ da:
next: "Next"
last: "Last"
admin:
dashboard:
comment:
no_comments_yet: "Der er ingen kommentarer endnu"
by: "By"
content:
index:
published: "Offentliggjort"
Expand Down
4 changes: 4 additions & 0 deletions config/locales/de.yml
Expand Up @@ -5,6 +5,10 @@ de:
next: "Next"
last: "Last"
admin:
dashboard:
comment:
no_comments_yet: "No comments yet"
by: "By"
content:
index:
published: "Veröffentlicht"
Expand Down
4 changes: 4 additions & 0 deletions config/locales/en.yml
Expand Up @@ -5,6 +5,10 @@ en:
next: "Next"
last: "Last"
admin:
dashboard:
comment:
no_comments_yet: "No comments yet"
by: "By"
content:
index:
published: "Published"
Expand Down
4 changes: 4 additions & 0 deletions config/locales/es-MX.yml
Expand Up @@ -5,6 +5,10 @@ es-MX:
next: "Next"
last: "Last"
admin:
dashboard:
comment:
no_comments_yet: "No comments yet"
by: "By"
content:
index:
published: "Publicado"
Expand Down
4 changes: 4 additions & 0 deletions config/locales/fr.yml
Expand Up @@ -5,6 +5,10 @@ fr:
next: "Suivant"
last: "Last"
admin:
dashboard:
comment:
no_comments_yet: "Aucun commentaire pour l'instant"
by: "Par"
content:
index:
published: "Publié"
Expand Down
4 changes: 4 additions & 0 deletions config/locales/he-IL.yml
Expand Up @@ -5,6 +5,10 @@ he-IL:
next: "Next"
last: "Last"
admin:
dashboard:
comment:
no_comments_yet: "עדיין ללא תגובות"
by: "על ידי"
content:
index:
published: "פורסם"
Expand Down
4 changes: 4 additions & 0 deletions config/locales/it.yml
Expand Up @@ -5,6 +5,10 @@ it:
next: "Next"
last: "Last"
admin:
dashboard:
comment:
no_comments_yet: "Nessun commento"
by: "By"
content:
index:
published: "Pubblicato"
Expand Down
4 changes: 4 additions & 0 deletions config/locales/ja.yml
Expand Up @@ -5,6 +5,10 @@ ja:
next: "Next"
last: "Last"
admin:
dashboard:
comment:
no_comments_yet: "まだコメントはありません"
by: "By"
content:
index:
published: "公開済み"
Expand Down
4 changes: 4 additions & 0 deletions config/locales/lt.yml
Expand Up @@ -5,6 +5,10 @@ lt:
next: "Next"
last: "Last"
admin:
dashboard:
comment:
no_comments_yet: "No comments yet"
by: "By"
content:
index:
published: "Publikuotas"
Expand Down
4 changes: 4 additions & 0 deletions config/locales/nb-NO.yml
Expand Up @@ -5,6 +5,10 @@ nb-NO:
next: "Neste"
last: "Last"
admin:
dashboard:
comment:
no_comments_yet: "Ingen kommentarer"
by: "Av"
content:
index:
published: "Publisert"
Expand Down
4 changes: 4 additions & 0 deletions config/locales/nl.yml
Expand Up @@ -5,6 +5,10 @@ nl:
next: "Volgende"
last: "Last"
admin:
dashboard:
comment:
no_comments_yet: "Nog geen reacties"
by: "Door"
content:
index:
published: "Gepubliceerd"
Expand Down
4 changes: 4 additions & 0 deletions config/locales/pl.yml
Expand Up @@ -5,6 +5,10 @@ pl:
next: "Następne"
last: "Last"
admin:
dashboard:
comment:
no_comments_yet: "Brak komentarzy"
by: "By"
content:
index:
published: "Opublikowane"
Expand Down
4 changes: 4 additions & 0 deletions config/locales/pt-BR.yml
Expand Up @@ -5,6 +5,10 @@ pt-BR:
next: "Próximo"
last: "Anterior"
admin:
dashboard:
comment:
no_comments_yet: "No comments yet"
by: "By"
content:
index:
published: "Publicado"
Expand Down
4 changes: 4 additions & 0 deletions config/locales/ro.yml
Expand Up @@ -5,6 +5,10 @@ ro:
next: "Next"
last: "Last"
admin:
dashboard:
comment:
no_comments_yet: "No comments yet"
by: "By"
content:
index:
published: "Publicat"
Expand Down
4 changes: 4 additions & 0 deletions config/locales/ru.yml
Expand Up @@ -5,6 +5,10 @@ ru:
next: "Next"
last: "Last"
admin:
dashboard:
comment:
no_comments_yet: "Пока нет комментариев"
by: "By"
content:
index:
published: "Опубликован"
Expand Down
4 changes: 4 additions & 0 deletions config/locales/zh-CN.yml
Expand Up @@ -5,6 +5,10 @@ zh-CN:
next: "Next"
last: "Last"
admin:
dashboard:
comment:
no_comments_yet: "没有任何评论"
by: "By"
content:
index:
published: "已发表"
Expand Down
4 changes: 4 additions & 0 deletions config/locales/zh-TW.yml
Expand Up @@ -5,6 +5,10 @@ zh-TW:
next: "Next"
last: "Last"
admin:
dashboard:
comment:
no_comments_yet: "沒有任何評論"
by: "By"
content:
index:
published: "已公開的"
Expand Down
5 changes: 0 additions & 5 deletions lang/da_DK.rb
Expand Up @@ -180,7 +180,6 @@

# app/views/admin/dashboard/_comments.html.erb
l.store "Latest Comments", "Seneste kommentarer"
l.store "No comments yet", "Der er ingen kommentarer endnu"
l.store "By %s on %s", "Fra %s på %s"

# app/views/admin/dashboard/_inbound.html.erb
Expand Down Expand Up @@ -638,10 +637,6 @@
# themes/true-blue-3/views/articles/_article.html.erb
l.store "%%a, %%d %%b %%Y %%H:%%M", ""

# themes/true-blue-3/views/articles/_comment.html.erb
l.store "By", ""
l.store "later:", ""

# themes/true-blue-3/views/articles/_comment_form.html.erb
l.store "Email address", ""
l.store "Your website", ""
Expand Down
10 changes: 0 additions & 10 deletions lang/de_DE.rb
Expand Up @@ -172,12 +172,6 @@
l.store "Author", "Autor"
l.store "Feedback", "Diskussion"

# app/views/admin/dashboard/_comments.html.erb
l.store "For security reasons, you should restart your Publify application. Enjoy your blogging experience.", ""
l.store "Latest Comments", ""
l.store "No comments yet", ""
l.store "By %s on %s", ""

# app/views/admin/dashboard/_inbound.html.erb
l.store "Inbound links", ""
l.store "No one made a link to you yet", ""
Expand Down Expand Up @@ -616,10 +610,6 @@
# themes/true-blue-3/views/articles/_article.html.erb
l.store "%%a, %%d %%b %%Y %%H:%%M", ""

# themes/true-blue-3/views/articles/_comment.html.erb
l.store "By", ""
l.store "later:", ""

# themes/true-blue-3/views/articles/_comment_form.html.erb
l.store "Email address", ""
l.store "Your website", ""
Expand Down
1 change: 0 additions & 1 deletion lang/es_MX.rb
Expand Up @@ -631,7 +631,6 @@
l.store "%%a, %%d %%b %%Y %%H:%%M", ""

# themes/true-blue-3/views/articles/_comment.html.erb
l.store "By", ""
l.store "later:", ""

# themes/true-blue-3/views/articles/_comment_form.html.erb
Expand Down
3 changes: 0 additions & 3 deletions lang/fr_FR.rb
Expand Up @@ -165,10 +165,7 @@
l.store "Date", "Date"
l.store "Feedback", "Commentaires"

# app/views/admin/dashboard/_comments.html.erb
l.store "Latest Comments", "Derniers commentaires"
l.store "No comments yet", "Aucun commentaire pour l'instant"
l.store "By", "Par"

# app/views/admin/dashboard/_inbound.html.erb
l.store "Inbound links", "Liens entrants"
Expand Down
8 changes: 0 additions & 8 deletions lang/he_IL.rb
Expand Up @@ -188,13 +188,6 @@
l.store "Date", "תאריך"
l.store "Feedback", "משוב"

# app/views/admin/dashboard/_comments.html.erb
l.store "Error: can't generate secret token. Security is at risk. Please, change %s content", ""
l.store "For security reasons, you should restart your Publify application. Enjoy your blogging experience.", ""
l.store "Latest Comments", ""
l.store "No comments yet", "עדיין ללא תגובות"
l.store "By %s on %s", ""

# app/views/admin/dashboard/_inbound.html.erb
l.store "Inbound links", ""
l.store "No one made a link to you yet", ""
Expand Down Expand Up @@ -696,7 +689,6 @@
l.store "%%a, %%d %%b %%Y %%H:%%M", ""

# themes/true-blue-3/views/articles/_comment.html.erb
l.store "By", "על ידי"
l.store "later:", ""

# themes/true-blue-3/views/articles/_comment_form.html.erb
Expand Down
13 changes: 0 additions & 13 deletions lang/it_IT.rb
Expand Up @@ -173,9 +173,6 @@
# app/views/admin/dashboard/_comments.html.erb
l.store "Error: can't generate secret token. Security is at risk. Please, change %s content", ""
l.store "For security reasons, you should restart your Publify application. Enjoy your blogging experience.", ""
l.store "Latest Comments", ""
l.store "No comments yet", "Nessun commento"
l.store "By %s on %s", ""

# app/views/admin/dashboard/_inbound.html.erb
l.store "Inbound links", ""
Expand Down Expand Up @@ -635,12 +632,6 @@
l.store "Markdown enabled", ""
l.store "required", ""

# test/mocks/themes/typographic/views/articles/_comment_list.html.erb
l.store "No comments", ""

# test/mocks/themes/typographic/views/shared/_search.html.erb
l.store "Searching", ""

# themes/dirtylicious/layouts/default.html.erb
l.store "About", ""
l.store "Designed by %s ported to publify by %s ", ""
Expand All @@ -658,10 +649,6 @@
# themes/true-blue-3/views/articles/_article.html.erb
l.store "%%a, %%d %%b %%Y %%H:%%M", ""

# themes/true-blue-3/views/articles/_comment.html.erb
l.store "By", ""
l.store "later:", ""

# themes/true-blue-3/views/articles/_comment_form.html.erb
l.store "Email address", ""
l.store "Your website", ""
Expand Down
5 changes: 0 additions & 5 deletions lang/ja_JP.rb
Expand Up @@ -182,7 +182,6 @@
l.store "Error: can't generate secret token. Security is at risk. Please, change %s content", ""
l.store "For security reasons, you should restart your Publify application. Enjoy your blogging experience.", ""
l.store "Latest Comments", ""
l.store "No comments yet", "まだコメントはありません"
l.store "By %s on %s", ""

# app/views/admin/dashboard/_inbound.html.erb
Expand Down Expand Up @@ -665,10 +664,6 @@
# themes/true-blue-3/views/articles/_article.html.erb
l.store "%%a, %%d %%b %%Y %%H:%%M", ""

# themes/true-blue-3/views/articles/_comment.html.erb
l.store "By", ""
l.store "later:", ""

# themes/true-blue-3/views/articles/_comment_form.html.erb
l.store "Email address", ""
l.store "Your website", ""
Expand Down
10 changes: 0 additions & 10 deletions lang/lt_LT.rb
Expand Up @@ -173,12 +173,6 @@
l.store "Author", "Autorius"
l.store "Feedback", "Atsiliepimas"

# app/views/admin/dashboard/_comments.html.erb
l.store "For security reasons, you should restart your Publify application. Enjoy your blogging experience.", ""
l.store "Latest Comments", ""
l.store "No comments yet", ""
l.store "By %s on %s", ""

# app/views/admin/dashboard/_inbound.html.erb
l.store "Inbound links", ""
l.store "No one made a link to you yet", ""
Expand Down Expand Up @@ -615,10 +609,6 @@
# themes/true-blue-3/views/articles/_article.html.erb
l.store "%%a, %%d %%b %%Y %%H:%%M", ""

# themes/true-blue-3/views/articles/_comment.html.erb
l.store "By", ""
l.store "later:", ""

# themes/true-blue-3/views/articles/_comment_form.html.erb
l.store "Email address", ""
l.store "Your website", ""
Expand Down
2 changes: 0 additions & 2 deletions lang/nb_NO.rb
Expand Up @@ -213,8 +213,6 @@

# app/views/admin/dashboard/_comments.html.erb
l.store "Latest Comments", "Siste kommentarer"
l.store "No comments yet", "Ingen kommentarer"
l.store "By", "Av"

# app/views/admin/dashboard/_inbound.html.erb
l.store "Inbound links", "Innkommende lenker"
Expand Down
2 changes: 0 additions & 2 deletions lang/nl_NL.rb
Expand Up @@ -193,7 +193,6 @@
l.store "Error: can't generate secret token. Security is at risk. Please, change %s content", ""
l.store "For security reasons, you should restart your Publify application. Enjoy your blogging experience.", ""
l.store "Latest Comments", "Laatste reacties"
l.store "No comments yet", "Nog geen reacties"
l.store "By %s on %s", "door %s op %s"

# app/views/admin/dashboard/_inbound.html.erb
Expand Down Expand Up @@ -673,7 +672,6 @@
l.store "%%a, %%d %%b %%Y %%H:%%M", ""

# themes/true-blue-3/views/articles/_comment.html.erb
l.store "By", "Door"
l.store "later:", "later:"

# themes/true-blue-3/views/articles/_comment_form.html.erb
Expand Down

0 comments on commit 4fe0acb

Please sign in to comment.