Skip to content

Commit

Permalink
Move lang to locale
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannick Francois committed Oct 13, 2013
1 parent 3538949 commit e5558ee
Show file tree
Hide file tree
Showing 20 changed files with 67 additions and 20 deletions.
29 changes: 16 additions & 13 deletions app/views/admin/dashboard/_drafts.html.erb
@@ -1,18 +1,21 @@
<h3><%= _("Your drafts") %></h3>
<h3><%= t(".your_drafts") %></h3>
<div class='well'>
<ul class='unstyled'>
<% if @drafts.size == 0 %>
<li class='alert'>
<%= link_to _("No drafts yet, why don't you start and write one"), :controller => 'content', :action => 'new' %> ?
</li>
<% else %>
<% for post in @drafts -%>
<li>
<h5><%= link_to(post.title, :controller => "admin/content", :action => "edit", :id => post.id) %> <%= display_date_and_time(post.created_at) %></h5>
<p><%= post.body.strip_html.slice(0,300) if post.body %></p>
<hr />
</li>
<% if @drafts.empty? %>
<li class='alert'>
<%= link_to t("no_drafts_yet"), controller: 'content', action: 'new' %> ?
</li>
<% else %>
<% for post in @drafts -%>
<li>
<h5>
<%= link_to(post.title, controller: "admin/content", action: "edit", id: post.id) %>
<%= display_date_and_time(post.created_at) %>
</h5>
<p><%= post.body.strip_html.slice(0,300) if post.body %></p>
<hr />
</li>
<% end %>
<% end %>
<% end %>
</ul>
</div>
3 changes: 3 additions & 0 deletions config/locales/da.yml
Expand Up @@ -6,6 +6,9 @@ da:
last: "Last"
admin:
dashboard:
drafts:
your_drafts: "Your drafts"
no_drafts_yet: "No drafts yet, why don't you start and write one"
welcome:
today: "Today"
articles_and_comments_count_since: "%{articles_count} articles and %{comments_count} comments were posted since your last connexion"
Expand Down
3 changes: 3 additions & 0 deletions config/locales/de.yml
Expand Up @@ -6,6 +6,9 @@ de:
last: "Last"
admin:
dashboard:
drafts:
your_drafts: "Your drafts"
no_drafts_yet: "No drafts yet, why don't you start and write one"
welcome:
today: "Today"
articles_and_comments_count_since: "%{articles_count} articles and %{comments_count} comments were posted since your last connexion"
Expand Down
3 changes: 3 additions & 0 deletions config/locales/en.yml
Expand Up @@ -6,6 +6,9 @@ en:
last: "Last"
admin:
dashboard:
drafts:
your_drafts: "Your drafts"
no_drafts_yet: "No drafts yet, why don't you start and write one"
welcome:
today: "Today"
articles_and_comments_count_since: "%{articles_count} articles and %{comments_count} comments were posted since your last connexion"
Expand Down
3 changes: 3 additions & 0 deletions config/locales/es-MX.yml
Expand Up @@ -6,6 +6,9 @@ es-MX:
last: "Last"
admin:
dashboard:
drafts:
your_drafts: "Your drafts"
no_drafts_yet: "No drafts yet, why don't you start and write one"
welcome:
today: "Today"
articles_and_comments_count_since: "%{articles_count} articles and %{comments_count} comments were posted since your last connexion"
Expand Down
3 changes: 3 additions & 0 deletions config/locales/fr.yml
Expand Up @@ -6,6 +6,9 @@ fr:
last: "Last"
admin:
dashboard:
drafts:
your_drafts: "Vos brouillons"
no_drafts_yet: "Pas de brouillons, pourquoi ne pas en écrire un"
welcome:
today: "Aujourd'hui"
articles_and_comments_count_since: "Depuis votre dernière connexion, %{articles_count} articles et %{comments_count} commentaires ont été publiés"
Expand Down
3 changes: 3 additions & 0 deletions config/locales/he-IL.yml
Expand Up @@ -6,6 +6,9 @@ he-IL:
last: "Last"
admin:
dashboard:
drafts:
your_drafts: "Your drafts"
no_drafts_yet: "No drafts yet, why don't you start and write one"
welcome:
today: "Today"
articles_and_comments_count_since: "%{articles_count} articles and %{comments_count} comments were posted since your last connexion"
Expand Down
3 changes: 3 additions & 0 deletions config/locales/it.yml
Expand Up @@ -6,6 +6,9 @@ it:
last: "Last"
admin:
dashboard:
drafts:
your_drafts: "Your drafts"
no_drafts_yet: "No drafts yet, why don't you start and write one"
welcome:
today: "Today"
articles_and_comments_count_since: "%{articles_count} articles and %{comments_count} comments were posted since your last connexion"
Expand Down
3 changes: 3 additions & 0 deletions config/locales/ja.yml
Expand Up @@ -6,6 +6,9 @@ ja:
last: "Last"
admin:
dashboard:
drafts:
your_drafts: "Your drafts"
no_drafts_yet: "No drafts yet, why don't you start and write one"
welcome:
today: "Today"
articles_and_comments_count_since: "%{articles_count} articles and %{comments_count} comments were posted since your last connexion"
Expand Down
3 changes: 3 additions & 0 deletions config/locales/lt.yml
Expand Up @@ -6,6 +6,9 @@ lt:
last: "Last"
admin:
dashboard:
drafts:
your_drafts: "Your drafts"
no_drafts_yet: "No drafts yet, why don't you start and write one"
welcome:
today: "Today"
articles_and_comments_count_since: "%{articles_count} articles and %{comments_count} comments were posted since your last connexion"
Expand Down
3 changes: 3 additions & 0 deletions config/locales/nb-NO.yml
Expand Up @@ -6,6 +6,9 @@ nb-NO:
last: "Last"
admin:
dashboard:
drafts:
your_drafts: "Your drafts"
no_drafts_yet: "No drafts yet, why don't you start and write one"
welcome:
today: "Today"
articles_and_comments_count_since: "%{articles_count} artikler og %{comments_count} kommentarer siden forrige besøk"
Expand Down
3 changes: 3 additions & 0 deletions config/locales/nl.yml
Expand Up @@ -6,6 +6,9 @@ nl:
last: "Last"
admin:
dashboard:
drafts:
your_drafts: "Your drafts"
no_drafts_yet: "No drafts yet, why don't you start and write one"
welcome:
today: "Today"
articles_and_comments_count_since: "%{articles_count} artikels en %{comments_count} commentaren zijn geplaatst sinds je laatste bezoek"
Expand Down
3 changes: 3 additions & 0 deletions config/locales/pl.yml
Expand Up @@ -6,6 +6,9 @@ pl:
last: "Last"
admin:
dashboard:
drafts:
your_drafts: "Your drafts"
no_drafts_yet: "No drafts yet, why don't you start and write one"
welcome:
today: "Today"
articles_and_comments_count_since: "%{articles_count} artykułów i %{comments_count} komentarzy zostało opublikowanych od twojego ostaniego połączenia"
Expand Down
3 changes: 3 additions & 0 deletions config/locales/pt-BR.yml
Expand Up @@ -6,6 +6,9 @@ pt-BR:
last: "Anterior"
admin:
dashboard:
drafts:
your_drafts: "Your drafts"
no_drafts_yet: "No drafts yet, why don't you start and write one"
welcome:
today: "Hoje"
articles_and_comments_count_since: "%{articles_count} artigos e %{comments_count} comentários foram postados desde a sua última conexão"
Expand Down
3 changes: 3 additions & 0 deletions config/locales/ro.yml
Expand Up @@ -6,6 +6,9 @@ ro:
last: "Last"
admin:
dashboard:
drafts:
your_drafts: "Your drafts"
no_drafts_yet: "No drafts yet, why don't you start and write one"
welcome:
today: "Today"
articles_and_comments_count_since: "%{articles_count} articles and %{comments_count} comments were posted since your last connexion"
Expand Down
3 changes: 3 additions & 0 deletions config/locales/ru.yml
Expand Up @@ -6,6 +6,9 @@ ru:
last: "Last"
admin:
dashboard:
drafts:
your_drafts: "Your drafts"
no_drafts_yet: "No drafts yet, why don't you start and write one"
welcome:
today: "Today"
articles_and_comments_count_since: "%{articles_count} постов и %{comments_count} комментариев получено с вашего последнего посещения"
Expand Down
3 changes: 3 additions & 0 deletions config/locales/zh-CN.yml
Expand Up @@ -6,6 +6,9 @@ zh-CN:
last: "Last"
admin:
dashboard:
drafts:
your_drafts: "Your drafts"
no_drafts_yet: "No drafts yet, why don't you start and write one"
welcome:
today: "Today"
articles_and_comments_count_since: "在你上次离开后,新增%{articles_count}篇文章和%{comments_count}个评价"
Expand Down
3 changes: 3 additions & 0 deletions config/locales/zh-TW.yml
Expand Up @@ -6,6 +6,9 @@ zh-TW:
last: "Last"
admin:
dashboard:
drafts:
your_drafts: "Your drafts"
no_drafts_yet: "No drafts yet, why don't you start and write one"
welcome:
today: "Today"
articles_and_comments_count_since: "%{articles_count} articles and %{comments_count} comments were posted since your last connexion"
Expand Down
6 changes: 0 additions & 6 deletions lang/fr_FR.rb
Expand Up @@ -174,12 +174,6 @@
l.store "In your spam queue:", "En attente de modération :"
l.store "unconfirmed", "non validés"

# app/views/admin/dashboard/_dafts.html.erb
l.store "Your drafts", "Vos brouillons"
l.store "No drafts yet, why don't you start and write one", "Pas de brouillons, pourquoi ne pas en écrire un"

# app/views/admin/dashboard/_dafts.html.erb

# app/views/admin/feedback/_button.html.erb
l.store "Select action", "Choisir de..."
l.store "Delete Checked Items", "Supprimer les commentaires sélectionnés"
Expand Down
1 change: 0 additions & 1 deletion lang/zh_CN.rb
Expand Up @@ -156,7 +156,6 @@
l.store "Really delete attachment", "确定删除附件?"
l.store "Add another attachment", "新增其他附件"

# app/views/admin/content/_drafts.html.erb
l.store "Drafts", "草稿"

# app/views/admin/content/_form.html.erb
Expand Down

0 comments on commit e5558ee

Please sign in to comment.