Skip to content

Commit

Permalink
Move from lang to locale for inbound dashboard part
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannick Francois committed Oct 9, 2013
1 parent 4fe0acb commit 05e3141
Show file tree
Hide file tree
Showing 34 changed files with 130 additions and 145 deletions.
27 changes: 11 additions & 16 deletions app/views/admin/dashboard/_inbound.html.erb
Original file line number Diff line number Diff line change
@@ -1,29 +1,24 @@
<h3><%= _("Inbound links") %></h3>
<h3><%= t(".inbound_links") %></h3>
<div class='well'>
<ul class='unstyled'>
<% if @inbound_links.nil? %>
<li class='alert alert-error'>
<%= _('You have no internet connection') %>
<%= t('.you_have_no_internet_connection') %>
</li>
<% else %>
<% if @inbound_links.empty? %>
<li class='alert'>
<%= _("No one made a link to you yet") %>
</li>
<li class='alert'>
<%= t(".no_one_made_link_to_you_yet") %>
</li>
<% else %>
<% for link in @inbound_links -%>
<%- link_date = link.date -%>
<%- link_date = link.date -%>
<li>
<h5>
<%= sprintf("%s %s %s %s %s",
link_to(link.author, link.link),
_("made a link to you on"),
link_date && link_date.strftime(this_blog.date_format) || _('at an unknown date'),
link_date && _("at") || '',
link_date && link_date.strftime(this_blog.time_format)) || '' %>
</h5>
<p><%= link.description.strip_html.slice(0, 300) %></p>
<hr />
<h5>
<%= sprintf("%s %s %s %s %s", link_to(link.author, link.link), t(".made_a_link_to_you_on"), link_date && link_date.strftime(this_blog.date_format) || t('.at_an_unknown_date'), link_date && t(".at") || '', link_date && link_date.strftime(this_blog.time_format)) || '' %>
</h5>
<p><%= link.description.strip_html.slice(0, 300) %></p>
<hr />
</li>
<% end %>
<% end %>
Expand Down
7 changes: 7 additions & 0 deletions config/locales/da.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ da:
last: "Last"
admin:
dashboard:
inbound:
inbound_links: "Indkomne links"
you_have_no_internet_connection: "Du har ingen internet forbindelse"
no_one_made_link_to_you_yet: "Der er endnu ingen der har linket til dig"
made_a_link_to_you_on: " har lavet et link til dig, og skrevet "
at_an_unknown_date: "at an unknown date"
at: "at"
comment:
no_comments_yet: "Der er ingen kommentarer endnu"
by: "By"
Expand Down
7 changes: 7 additions & 0 deletions config/locales/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ de:
last: "Last"
admin:
dashboard:
inbound:
inbound_links: "Inbound links"
you_have_no_internet_connection: "You have no internet connection"
no_one_made_link_to_you_yet: "No one made a link to you yet"
made_a_link_to_you_on: "made a link to you on"
at_an_unknown_date: "at an unknown date"
at: "at"
comment:
no_comments_yet: "No comments yet"
by: "By"
Expand Down
7 changes: 7 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ en:
last: "Last"
admin:
dashboard:
inbound:
inbound_links: "Inbound links"
you_have_no_internet_connection: "You have no internet connection"
no_one_made_link_to_you_yet: "No one made a link to you yet"
made_a_link_to_you_on: "made a link to you on"
at_an_unknown_date: "at an unknown date"
at: "at"
comment:
no_comments_yet: "No comments yet"
by: "By"
Expand Down
7 changes: 7 additions & 0 deletions config/locales/es-MX.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ es-MX:
last: "Last"
admin:
dashboard:
inbound:
inbound_links: "Inbound links"
you_have_no_internet_connection: "You have no internet connection"
no_one_made_link_to_you_yet: "No one made a link to you yet"
made_a_link_to_you_on: "made a link to you on"
at_an_unknown_date: "at an unknown date"
at: "at"
comment:
no_comments_yet: "No comments yet"
by: "By"
Expand Down
7 changes: 7 additions & 0 deletions config/locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ fr:
last: "Last"
admin:
dashboard:
inbound:
inbound_links: "Liens entrants"
you_have_no_internet_connection: "Vous n'avez pas de connexion à internet"
no_one_made_link_to_you_yet: "Personne n'a fait de lien vers votre blog"
made_a_link_to_you_on: "made a link to you on"
at_an_unknown_date: "à une date inconnue"
at: "à"
comment:
no_comments_yet: "Aucun commentaire pour l'instant"
by: "Par"
Expand Down
7 changes: 7 additions & 0 deletions config/locales/he-IL.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ he-IL:
last: "Last"
admin:
dashboard:
inbound:
inbound_links: "Inbound links"
you_have_no_internet_connection: "You have no internet connection"
no_one_made_link_to_you_yet: "No one made a link to you yet"
made_a_link_to_you_on: "made a link to you on"
at_an_unknown_date: "at an unknown date"
at: "at"
comment:
no_comments_yet: "עדיין ללא תגובות"
by: "על ידי"
Expand Down
7 changes: 7 additions & 0 deletions config/locales/it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ it:
last: "Last"
admin:
dashboard:
inbound:
inbound_links: "Inbound links"
you_have_no_internet_connection: "You have no internet connection"
no_one_made_link_to_you_yet: "No one made a link to you yet"
made_a_link_to_you_on: "made a link to you on"
at_an_unknown_date: "at an unknown date"
at: "at"
comment:
no_comments_yet: "Nessun commento"
by: "By"
Expand Down
7 changes: 7 additions & 0 deletions config/locales/ja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ ja:
last: "Last"
admin:
dashboard:
inbound:
inbound_links: "外部からのリンク"
you_have_no_internet_connection: "インターネットに接続できません"
no_one_made_link_to_you_yet: "まだどこからもリンクされていません"
made_a_link_to_you_on: " からこのようにリンクされています "
at_an_unknown_date: "at an unknown date"
at: "at"
comment:
no_comments_yet: "まだコメントはありません"
by: "By"
Expand Down
7 changes: 7 additions & 0 deletions config/locales/lt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ lt:
last: "Last"
admin:
dashboard:
inbound:
inbound_links: "Inbound links"
you_have_no_internet_connection: "You have no internet connection"
no_one_made_link_to_you_yet: "No one made a link to you yet"
made_a_link_to_you_on: "made a link to you on"
at_an_unknown_date: "at an unknown date"
at: "at"
comment:
no_comments_yet: "No comments yet"
by: "By"
Expand Down
7 changes: 7 additions & 0 deletions config/locales/nb-NO.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ nb-NO:
last: "Last"
admin:
dashboard:
inbound:
inbound_links: "Innkommende lenker"
you_have_no_internet_connection: "Du har ingen internettforbindelse"
no_one_made_link_to_you_yet: "Ingen har lenket til deg"
made_a_link_to_you_on: "opprettet en lenke til deg den"
at_an_unknown_date: "at an unknown date"
at: "klokken"
comment:
no_comments_yet: "Ingen kommentarer"
by: "Av"
Expand Down
7 changes: 7 additions & 0 deletions config/locales/nl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ nl:
last: "Last"
admin:
dashboard:
inbound:
inbound_links: "Binnenkomende links"
you_have_no_internet_connection: "Je hebt geen internetverbinding"
no_one_made_link_to_you_yet: "Niemand maakte nog een link naar je"
made_a_link_to_you_on: " maakte een link naar je met als tekst "
at_an_unknown_date: "at an unknown date"
at: "at"
comment:
no_comments_yet: "Nog geen reacties"
by: "Door"
Expand Down
7 changes: 7 additions & 0 deletions config/locales/pl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ pl:
last: "Last"
admin:
dashboard:
inbound:
inbound_links: "Linki przychodzące"
you_have_no_internet_connection: "Nie masz połączenia internetowego"
no_one_made_link_to_you_yet: "Nikt jeszcze nie stworzył do ciebie łącza"
made_a_link_to_you_on: " wykonał do ciebie łącze o treści "
at_an_unknown_date: "at an unknown date"
at: "at"
comment:
no_comments_yet: "Brak komentarzy"
by: "By"
Expand Down
7 changes: 7 additions & 0 deletions config/locales/pt-BR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ pt-BR:
last: "Anterior"
admin:
dashboard:
inbound:
inbound_links: "Inbound links"
you_have_no_internet_connection: "You have no internet connection"
no_one_made_link_to_you_yet: "No one made a link to you yet"
made_a_link_to_you_on: "made a link to you on"
at_an_unknown_date: "at an unknown date"
at: "at"
comment:
no_comments_yet: "No comments yet"
by: "By"
Expand Down
7 changes: 7 additions & 0 deletions config/locales/ro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ ro:
last: "Last"
admin:
dashboard:
inbound:
inbound_links: "Inbound links"
you_have_no_internet_connection: "You have no internet connection"
no_one_made_link_to_you_yet: "No one made a link to you yet"
made_a_link_to_you_on: "made a link to you on"
at_an_unknown_date: "at an unknown date"
at: "at"
comment:
no_comments_yet: "No comments yet"
by: "By"
Expand Down
7 changes: 7 additions & 0 deletions config/locales/ru.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ ru:
last: "Last"
admin:
dashboard:
inbound:
inbound_links: "Inbound links"
you_have_no_internet_connection: "You have no internet connection"
no_one_made_link_to_you_yet: "No one made a link to you yet"
made_a_link_to_you_on: "made a link to you on"
at_an_unknown_date: "at an unknown date"
at: "в"
comment:
no_comments_yet: "Пока нет комментариев"
by: "By"
Expand Down
7 changes: 7 additions & 0 deletions config/locales/zh-CN.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ zh-CN:
last: "Last"
admin:
dashboard:
inbound:
inbound_links: "导入链接"
you_have_no_internet_connection: "你没有连接到网络"
no_one_made_link_to_you_yet: "目前没有人链接到你"
made_a_link_to_you_on: "连接到你,并且说"
at_an_unknown_date: "at an unknown date"
at: "at"
comment:
no_comments_yet: "没有任何评论"
by: "By"
Expand Down
7 changes: 7 additions & 0 deletions config/locales/zh-TW.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ zh-TW:
last: "Last"
admin:
dashboard:
inbound:
inbound_links: "導入連結"
you_have_no_internet_connection: "你沒有連結到網路"
no_one_made_link_to_you_yet: "目前沒有人連結到你"
made_a_link_to_you_on: "連結到你,並且說"
at_an_unknown_date: "at an unknown date"
at: "at"
comment:
no_comments_yet: "沒有任何評論"
by: "By"
Expand Down
6 changes: 0 additions & 6 deletions lang/da_DK.rb
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,6 @@
l.store "Latest Comments", "Seneste kommentarer"
l.store "By %s on %s", "Fra %s på %s"

# app/views/admin/dashboard/_inbound.html.erb
l.store "Inbound links", "Indkomne links"
l.store "No one made a link to you yet", "Der er endnu ingen der har linket til dig"
l.store " made a link to you saying ", " har lavet et link til dig, og skrevet "
l.store "You have no internet connection", "Du har ingen internet forbindelse"

# app/views/admin/dashboard/_overview.html.erb
l.store "Getting started", ""
l.store "This place gives you a quick overview of what happens on your Publify blog and what you can do. Maybe will you want to %s, %s or %s.", "Dette sted giver dig en hurtig oversigt over, hvad der sker på din Publify blog, og hvad du kan gøre. Måske du ønsker at %s, %s eller %s."
Expand Down
18 changes: 0 additions & 18 deletions lang/de_DE.rb
Original file line number Diff line number Diff line change
Expand Up @@ -172,24 +172,6 @@
l.store "Author", "Autor"
l.store "Feedback", "Diskussion"

# app/views/admin/dashboard/_inbound.html.erb
l.store "Inbound links", ""
l.store "No one made a link to you yet", ""
l.store " made a link to you saying ", ""
l.store "You have no internet connection", ""

# app/views/admin/dashboard/_overview.html.erb
l.store "Getting started", ""
l.store "This place gives you a quick overview of what happens on your Publify blog and what you can do. Maybe will you want to %s, %s or %s.", ""
l.store "You can also do a bit of design, %s or %s.", ""
l.store "enable plugins", ""
l.store "write a post", ""
l.store "write a page", ""

# app/views/admin/dashboard/_popular.html.erb
l.store "Most popular", ""
l.store "Nothing to show yet", ""

# app/views/admin/dashboard/_posts.html.erb
l.store "Latest Posts", ""
l.store "No posts yet, why don't you start and write one", ""
Expand Down
Loading

0 comments on commit 05e3141

Please sign in to comment.