Skip to content

Commit

Permalink
Move content index from lang to locales
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannick Francois committed Oct 8, 2013
1 parent 6755f61 commit c733eb7
Show file tree
Hide file tree
Showing 34 changed files with 337 additions and 395 deletions.
26 changes: 13 additions & 13 deletions app/views/admin/content/index.html.erb
@@ -1,7 +1,7 @@
<%- content_for :page_heading do %>
<i class="icon-large icon-articles"></i><h2 class="page-title"><%= _("Manage articles") %></h2>
<i class="icon-large icon-articles"></i><h2 class="page-title"><%= t(".manage_articles") %></h2>
<div class="pull-right">
<%= link_to(_("New Article"), {controller: 'content', action: 'new'}, id: 'dialog-link', class: 'btn btn-info')%>
<%= link_to(t(".new_article"), {controller: 'content', action: 'new'}, id: 'dialog-link', class: 'btn btn-info')%>
</div>

<% end %>
Expand All @@ -14,24 +14,24 @@

<div>
<span class='badge badge-inverse'>
<%= link_to(_("All articles"), action: 'index') %>
<%= link_to(t(".all_articles"), action: 'index') %>
</span>
<span class='badge badge-success'>
<%= link_to(_("Published"), action: 'index', search: {state: 'published'}) %>
<%= link_to(t(".published"), action: 'index', search: {state: 'published'}) %>
</span>
<span class='badge badge-important'>
<%= link_to(_("Withdrawn"), action: 'index', search: {state: 'withdrawn'}) %>
<%= link_to(t(".withdrawn"), action: 'index', search: {state: 'withdrawn'}) %>
</span>
<span class='badge badge-info'>
<%= link_to(_("Drafts"), action: 'index', search: {state: 'drafts'}) %>
<%= link_to(t(".drafts"), action: 'index', search: {state: 'drafts'}) %>
</span>
<span class='badge badge-warning'>
<%= link_to(_("Publication pending"), action: 'index', search: {state: 'pending'}) %>
<%= link_to(t(".publication_pending"), action: 'index', search: {state: 'pending'}) %>
</span>
<div class='pull-right'>
<span class="input-append">
<input id="search" type="text" name="search[searchstring]" class='large' />
<%= submit_tag(_("Search"), {:class => 'btn'}) %>
<%= submit_tag(t(".search"), {:class => 'btn'}) %>
<span id='spinner' style="display:none;"><%= image_tag('spinner.gif') %></span>
</span>
</div>
Expand All @@ -40,11 +40,11 @@
<table class="table table-striped">
<thead>
<tr class='noborder'>
<th><%= _("Title") %></th>
<th><%= select_tag('search[category]', options_from_collection_for_select(Category.all, 'id', 'name'), {prompt: _("Select a category"), :class => 'span12'}) %></th>
<th><%= select_tag('search[user_id]', options_from_collection_for_select(User.all, 'id', 'name'), {prompt: _("Select an author"), :class => 'span12'}) %></th>
<th><%= select_tag('search[published_at]', options_for_select(Article.find_by_published_at), {prompt: _("Publication date"), :class => 'span12'}) %></th>
<th><input type="submit" value='<%= _("Filter") %>' class='btn' />
<th><%= t(".title") %></th>
<th><%= select_tag('search[category]', options_from_collection_for_select(Category.all, 'id', 'name'), {prompt: t(".select_a_category"), :class => 'span12'}) %></th>
<th><%= select_tag('search[user_id]', options_from_collection_for_select(User.all, 'id', 'name'), {prompt: t(".select_an_author"), :class => 'span12'}) %></th>
<th><%= select_tag('search[published_at]', options_for_select(Article.find_by_published_at), {prompt: t(".publication_date"), :class => 'span12'}) %></th>
<th><input type="submit" value='<%= t(".filter") %>' class='btn' />
</tr>
</thead>
<tbody id="articleList">
Expand Down
19 changes: 19 additions & 0 deletions config/locales/da.yml
@@ -1,6 +1,25 @@
da:
views:
pagination:
truncate: "Truncate"
next: "Next"
last: "Last"
admin:
content:
index:
published: "Offentliggjort"
new_article: "New article"
all_articles: "All articles"
manage_articles: "Administrer artikler"
withdrawn: "Withdrawn"
drafts: "Kladder"
publication_pending: "Publication pending"
search: "Search"
title: "Titel"
select_a_category: "Select a category"
select_an_author: "Select an author"
publication_date: "Publication date"
filter: "Filtrer"
form:
public: "Public"
publish: "Udgiv"
Expand Down
19 changes: 19 additions & 0 deletions config/locales/de.yml
@@ -1,6 +1,25 @@
de:
views:
pagination:
truncate: "Truncate"
next: "Next"
last: "Last"
admin:
content:
index:
published: "Veröffentlicht"
new_article: "New article"
all_articles: "All articles"
manage_articles: "Artikel verwalten"
withdrawn: "Withdrawn"
drafts: "Drafts"
publication_pending: "Publication pending"
search: "Search"
title: "Titel"
select_a_category: "Select a category"
select_an_author: "Select an author"
publication_date: "Publication date"
filter: "Filter"
form:
public: "Public"
publish: "Veröffentlichen"
Expand Down
19 changes: 19 additions & 0 deletions config/locales/en.yml
@@ -1,6 +1,25 @@
en:
views:
pagination:
truncate: "Truncate"
next: "Next"
last: "Last"
admin:
content:
index:
published: "Published"
new_article: "New article"
all_articles: "All articles"
manage_articles: "Manage articles"
withdrawn: "Withdrawn"
drafts: "Drafts"
publication_pending: "Publication pending"
search: "Search"
title: "Title"
select_a_category: "Select a category"
select_an_author: "Select an author"
publication_date: "Publication date"
filter: "Filter"
form:
public: "Public"
publish: "Publish"
Expand Down
19 changes: 19 additions & 0 deletions config/locales/es-MX.yml
@@ -1,6 +1,25 @@
es-MX:
views:
pagination:
truncate: "Truncate"
next: "Next"
last: "Last"
admin:
content:
index:
published: "Publicado"
new_article: "New article"
all_articles: "All articles"
manage_articles: "Administrar Art&iacute;culos"
withdrawn: "Withdrawn"
drafts: "Drafts"
publication_pending: "Publication pending"
search: "Search"
title: "T&iacute;tulo"
select_a_category: "Select a category"
select_an_author: "Select an author"
publication_date: "Publication date"
filter: "Filter"
form:
public: "Public"
publish: "Publicar"
Expand Down
19 changes: 19 additions & 0 deletions config/locales/fr.yml
@@ -1,6 +1,25 @@
fr:
views:
pagination:
truncate: "Truncate"
next: "Suivant"
last: "Last"
admin:
content:
index:
published: "Publié"
new_article: "Nouvel article"
all_articles: "Tous les articles"
manage_articles: "Gestion des articles"
withdrawn: "Supprimé"
drafts: "Brouillons"
publication_pending: "À publier"
search: "Chercher"
title: "Titre"
select_a_category: "Catégorie"
select_an_author: "Auteur"
publication_date: "Publié le"
filter: "Filtrer"
form:
public: "Public"
publish: "Publier"
Expand Down
19 changes: 19 additions & 0 deletions config/locales/he-IL.yml
@@ -1,6 +1,25 @@
he-IL:
views:
pagination:
truncate: "Truncate"
next: "Next"
last: "Last"
admin:
content:
index:
published: "פורסם"
new_article: "New article"
all_articles: "All articles"
manage_articles: "ערוך כתבות"
withdrawn: "Withdrawn"
drafts: "טיוטות"
publication_pending: "Publication pending"
search: "חפש"
title: "כותרת"
select_a_category: "Select a category"
select_an_author: "Select an author"
publication_date: "Publication date"
filter: "סנן"
form:
public: "Public"
publish: "פרסם"
Expand Down
19 changes: 19 additions & 0 deletions config/locales/it.yml
@@ -1,6 +1,25 @@
it:
views:
pagination:
truncate: "Truncate"
next: "Next"
last: "Last"
admin:
content:
index:
published: "Pubblicato"
new_article: "New article"
all_articles: "All articles"
manage_articles: "Manage articles"
withdrawn: "Withdrawn"
drafts: "Drafts"
publication_pending: "Publication pending"
search: "Cerca"
title: "Titolo"
select_a_category: "Select a category"
select_an_author: "Select an author"
publication_date: "Publication date"
filter: "Filter"
form:
public: "Public"
publish: "Pubblica"
Expand Down
19 changes: 19 additions & 0 deletions config/locales/ja.yml
@@ -1,6 +1,25 @@
ja:
views:
pagination:
truncate: "Truncate"
next: "Next"
last: "Last"
admin:
content:
index:
published: "公開済み"
new_article: "New article"
all_articles: "All articles"
manage_articles: "記事の管理"
withdrawn: "Withdrawn"
drafts: "下書き:"
publication_pending: "Publication pending"
search: "検索"
title: "Title"
select_a_category: "Select a category"
select_an_author: "Select an author"
publication_date: "Publication date"
filter: "フィルター"
form:
public: "Public"
publish: "公開"
Expand Down
19 changes: 19 additions & 0 deletions config/locales/lt.yml
@@ -1,6 +1,25 @@
lt:
views:
pagination:
truncate: "Truncate"
next: "Next"
last: "Last"
admin:
content:
index:
published: "Publikuotas"
new_article: "New article"
all_articles: "All articles"
manage_articles: "Manage articles"
withdrawn: "Withdrawn"
drafts: "Drafts"
publication_pending: "Publication pending"
search: "Search"
title: "Pavadinimas"
select_a_category: "Select a category"
select_an_author: "Select an author"
publication_date: "Publication date"
filter: "Filter"
form:
public: "Public"
publish: "Publikuoti"
Expand Down
19 changes: 19 additions & 0 deletions config/locales/nb-NO.yml
@@ -1,6 +1,25 @@
nb-NO:
views:
pagination:
truncate: "Truncate"
next: "Neste"
last: "Last"
admin:
content:
index:
published: "Publisert"
new_article: "Ny artikkel"
all_articles: "All articles"
manage_articles: "Administrer artikler"
withdrawn: "Withdrawn"
drafts: "Utkast"
publication_pending: "Publication pending"
search: "Søk"
title: "Tittel"
select_a_category: "Select a category"
select_an_author: "Select an author"
publication_date: "Publication date"
filter: "Filtrer"
form:
public: "Public"
publish: "Publiser"
Expand Down
21 changes: 20 additions & 1 deletion config/locales/nl.yml
@@ -1,10 +1,29 @@
nl:
views:
pagination:
truncate: "Truncate"
next: "Volgende"
last: "Last"
admin:
content:
index:
published: "Gepubliceerd"
new_article: "Nieuw artikel"
all_articles: "All articles"
manage_articles: "Beheer artikelen"
withdrawn: "Withdrawn"
drafts: "Drafts"
publication_pending: "Publication pending"
search: "Zoek"
title: "Titel"
select_a_category: "Select a category"
select_an_author: "Select an author"
publication_date: "Publication date"
filter: "Filter"
form:
public: "Public"
publish: "Publiceer"
title: "Title"
title: "Titel"
images: "Afbeeldingen"
excerpt: "Uittreksel"
excerpt_explaination: "Uittreksels zijn een samenvatting van een post die alleen op de homepage staat, maar niet in de post zelf staan"
Expand Down
19 changes: 19 additions & 0 deletions config/locales/pl.yml
@@ -1,6 +1,25 @@
pl:
views:
pagination:
truncate: "Truncate"
next: "Następne"
last: "Last"
admin:
content:
index:
published: "Opublikowane"
new_article: "New article"
all_articles: "All articles"
manage_articles: "Zarządzaj artykułami"
withdrawn: "Withdrawn"
drafts: "Drafts"
publication_pending: "Publication pending"
search: "Szukaj"
title: "Tytuł"
select_a_category: "Select a category"
select_an_author: "Select an author"
publication_date: "Publication date"
filter: "Filter"
form:
public: "Public"
publish: "Publikuj"
Expand Down

0 comments on commit c733eb7

Please sign in to comment.