Skip to content

Commit

Permalink
Move lang to locale for pages form
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannick Francois committed Oct 15, 2013
1 parent 095c71b commit bbe4e62
Show file tree
Hide file tree
Showing 31 changed files with 202 additions and 53 deletions.
28 changes: 14 additions & 14 deletions app/views/admin/pages/_form.html.erb
Expand Up @@ -2,23 +2,23 @@

<h2 class='page-header'>
<i class='icon-large icon-page-new'></i>
<%= _("#{controller.action_name.to_s.capitalize} Page") %>
<%= t(".page_with_action_name", action: controller.action_name.to_s.capitalize) %>
<span class='pull-right'>
<%= save( _("Publish")) %>
<%= submit_tag( t(".publish"), class: 'btn btn-primary') %>
</span>
</h2>

<%= error_messages_for 'page' %>
<div>
<div class='span9'>
<div>
<%= text_field 'page', 'title', :class => 'input-block-level', :placeholder => _('Title') %>
<%= text_field 'page', 'title', :class => 'input-block-level', :placeholder => t('.title') %>
</div>

<%= render('images', { :images => @images}) unless @images.empty? %>

<div id='editor'>
<i class='icon icon-media'></i> <span id='image-link'><%= toggle_element 'carousel-wrapper', _("Images") %></span>
<i class='icon icon-media'></i> <span id='image-link'><%= toggle_element 'carousel-wrapper', t(".images") %></span>
<div id='quicktags'>
<script type="text/javascript">edToolbar('page_body', '<%= @page.text_filter %>');</script>
</div>
Expand All @@ -30,19 +30,19 @@
<div class='separator'>
<div class='well'>
<fieldset>
<legend><%= _("Publish settings") %></legend>
<legend><%= t(".publish_settings") %></legend>
<div class='control-group'>
<%= _("Status") %>: <strong><%= _(@page.state.to_s.downcase) %></strong> <%= toggle_element 'status' %>
<%= t(".status") %>: <strong><%= _(@page.state.to_s.downcase) %></strong> <%= toggle_element 'status' %>
<div id='status' style='display: none;'>
<label for="page_published" class='checkbox'>
<%= check_box 'page', 'published' %>
<%= _("Online")%>
<%= t(".online")%>
</label>
<p><span class='btn btn-mini'><%= toggle_element 'status', "OK" %></span></p>
</div>
</div>
<div class='control-group'>
<%= _("Article filter") %>: <strong><%= _("#{@page.text_filter.description}") %></strong> <%= toggle_element 'text_filter' %>
<%= t(".article_filter") %>: <strong><%= _("#{@page.text_filter.description}") %></strong> <%= toggle_element 'text_filter' %>
<div id='text_filter' style='display: none;'>
<select name="page[text_filter]" id="text_filter">
<%= options_for_select text_filter_options, @page.text_filter %>
Expand All @@ -54,18 +54,18 @@
</div>
<div class='form-actions'>
<div class='pull-right'>
<%= save( _("Publish")) %>
<%= submit_tag(t(".publish"), class: 'btn btn-primary') %>
</div>
</div>
</div>
</div>
<div class='span3'>
<div class='well'>
<h4><%= _("Permanent link")%></h4>
<h4><%= t(".permanent_link")%></h4>
<div>
<%= text_field 'page', 'name', :class => 'input-block-level' %>
</div>

</div>
</div>
</div>
11 changes: 11 additions & 0 deletions config/locales/da.yml
Expand Up @@ -5,6 +5,17 @@ da:
next: "Next"
last: "Last"
admin:
pages:
form:
publish: "Udgiv"
title: "Titel"
images: "Images"
publish_settings: "Publish settings"
status: "Status"
online: "Online"
article_filter: "Artikelfilter"
permanent_link: "Permanent link"
page_with_action_name: "%{action} page"
feedback:
index:
feedback: "Diskussion"
Expand Down
11 changes: 11 additions & 0 deletions config/locales/de.yml
Expand Up @@ -5,6 +5,17 @@ de:
next: "Next"
last: "Last"
admin:
pages:
form:
publish: "Veröffentlichen"
title: "Titel"
images: "Images"
publish_settings: "Publish settings"
status: "Status"
online: "Online"
article_filter: "Textfilter für Artikel"
permanent_link: "Permanent link"
page_with_action_name: "%{action} page"
feedback:
index:
feedback: "Diskussion"
Expand Down
11 changes: 11 additions & 0 deletions config/locales/en.yml
Expand Up @@ -5,6 +5,17 @@ en:
next: "Next"
last: "Last"
admin:
pages:
form:
publish: "Publish"
title: "Title"
images: "Images"
publish_settings: "Publish settings"
status: "Status"
online: "Online"
article_filter: "Article filter"
permanent_link: "Permanent link"
page_with_action_name: "%{action} page"
feedback:
index:
feedback: "Feedback"
Expand Down
11 changes: 11 additions & 0 deletions config/locales/es-MX.yml
Expand Up @@ -5,6 +5,17 @@ es-MX:
next: "Next"
last: "Last"
admin:
pages:
form:
publish: "Publicar"
title: "T&iacute;tulo"
images: "Images"
publish_settings: "Publish settings"
status: "Estado"
online: "Online"
article_filter: "Filtro de art&iacute;culo"
permanent_link: "Permanent link"
page_with_action_name: "%{action} page"
feedback:
index:
feedback: "Feedback"
Expand Down
11 changes: 11 additions & 0 deletions config/locales/fr.yml
Expand Up @@ -5,6 +5,17 @@ fr:
next: "Suivant"
last: "Last"
admin:
pages:
form:
publish: "Publier"
title: "Titre"
images: "Images"
publish_settings: "Paramètres de publication"
status: "État"
online: "En ligne"
article_filter: "Mise en forme des billets"
permanent_link: "Lien permanent"
page_with_action_name: "%{action} page"
feedback:
index:
feedback: "Commentaires"
Expand Down
11 changes: 11 additions & 0 deletions config/locales/he-IL.yml
Expand Up @@ -5,6 +5,17 @@ he-IL:
next: "Next"
last: "Last"
admin:
pages:
form:
publish: "פרסם"
title: "כותרת"
images: "Images"
publish_settings: "Publish settings"
status: "מצב"
online: "מוצג"
article_filter: "מסנן הכתבה"
permanent_link: "Permanent link"
page_with_action_name: "%{action} page"
feedback:
index:
feedback: "משוב"
Expand Down
11 changes: 11 additions & 0 deletions config/locales/it.yml
Expand Up @@ -5,6 +5,17 @@ it:
next: "Next"
last: "Last"
admin:
pages:
form:
publish: "Pubblica"
title: "Titolo"
images: "Images"
publish_settings: "Publish settings"
status: "Stato"
online: "Online"
article_filter: "Filtra articolo"
permanent_link: "Permanent link"
page_with_action_name: "%{action} page"
feedback:
index:
feedback: "Feedback"
Expand Down
13 changes: 12 additions & 1 deletion config/locales/ja.yml
Expand Up @@ -5,6 +5,17 @@ ja:
next: "Next"
last: "Last"
admin:
pages:
form:
publish: "公開"
title: "タイトル"
images: "Images"
publish_settings: "Publish settings"
status: "ステータス"
online: "オンライン"
article_filter: "記事フィルター"
permanent_link: "Permanent link"
page_with_action_name: "%{action} page"
feedback:
index:
feedback: "フィードバック"
Expand Down Expand Up @@ -116,7 +127,7 @@ ja:
drafts: "下書き:"
publication_pending: "Publication pending"
search: "検索"
title: "Title"
title: "タイトル"
select_a_category: "Select a category"
select_an_author: "Select an author"
publication_date: "Publication date"
Expand Down
11 changes: 11 additions & 0 deletions config/locales/lt.yml
Expand Up @@ -5,6 +5,17 @@ lt:
next: "Next"
last: "Last"
admin:
pages:
form:
publish: "Publikuoti"
title: "Pavadinimas"
images: "Images"
publish_settings: "Publish settings"
status: "Statusas"
online: "Pasiekiamas"
article_filter: "Straipsnių filtras"
permanent_link: "Permanent link"
page_with_action_name: "%{action} page"
feedback:
index:
feedback: "Atsiliepimas"
Expand Down
11 changes: 11 additions & 0 deletions config/locales/nb-NO.yml
Expand Up @@ -5,6 +5,17 @@ nb-NO:
next: "Neste"
last: "Last"
admin:
pages:
form:
publish: "Publiser"
title: "Tittel"
images: "Bilder"
publish_settings: "Publiseringsinnstillinger"
status: "Status"
online: "Online"
article_filter: "artikkelfilter"
permanent_link: "Permanent lenke"
page_with_action_name: "%{action} page"
feedback:
index:
feedback: "Diskusjon"
Expand Down
11 changes: 11 additions & 0 deletions config/locales/nl.yml
Expand Up @@ -5,6 +5,17 @@ nl:
next: "Volgende"
last: "Last"
admin:
pages:
form:
publish: "Publiceer"
title: "Titel"
images: "Afbeeldingen"
publish_settings: "Publicatie instellingen"
status: "Status"
online: "Online"
article_filter: "Artikel filter"
permanent_link: "Permanente link"
page_with_action_name: "%{action} page"
feedback:
index:
feedback: "Feedback"
Expand Down
11 changes: 11 additions & 0 deletions config/locales/pl.yml
Expand Up @@ -5,6 +5,17 @@ pl:
next: "Następne"
last: "Last"
admin:
pages:
form:
publish: "Publikuj"
title: "Tytuł"
images: "Grafika"
publish_settings: "Publish settings"
status: "Stan"
online: "Online"
article_filter: "Filtr artykułów"
permanent_link: "Permanent link"
page_with_action_name: "%{action} page"
feedback:
index:
feedback: "Komentarze"
Expand Down
11 changes: 11 additions & 0 deletions config/locales/pt-BR.yml
Expand Up @@ -5,6 +5,17 @@ pt-BR:
next: "Próximo"
last: "Anterior"
admin:
pages:
form:
publish: "Publicar"
title: "Título"
images: "Imagens"
publish_settings: "Configurações de publicação"
status: "Estado"
online: "Online"
article_filter: "Filtro de artigo"
permanent_link: "Permanent link"
page_with_action_name: "%{action} page"
feedback:
index:
feedback: "Feedback"
Expand Down
11 changes: 11 additions & 0 deletions config/locales/ro.yml
Expand Up @@ -5,6 +5,17 @@ ro:
next: "Next"
last: "Last"
admin:
pages:
form:
publish: "Publică"
title: "Titlu"
images: "Images"
publish_settings: "Publish settings"
status: "Status"
online: "Online"
article_filter: "Filtru pentru articole"
permanent_link: "Permanent link"
page_with_action_name: "%{action} page"
feedback:
index:
feedback: "Feedback"
Expand Down
11 changes: 11 additions & 0 deletions config/locales/ru.yml
Expand Up @@ -5,6 +5,17 @@ ru:
next: "Next"
last: "Last"
admin:
pages:
form:
publish: "Опубликовать"
title: "Заголовок"
images: "Images"
publish_settings: "Настройки публикации"
status: "Status"
online: "Online"
article_filter: "Article filter"
permanent_link: "Permanent link"
page_with_action_name: "%{action} page"
feedback:
index:
feedback: "Комментарии"
Expand Down
11 changes: 11 additions & 0 deletions config/locales/zh-CN.yml
Expand Up @@ -5,6 +5,17 @@ zh-CN:
next: "Next"
last: "Last"
admin:
pages:
form:
publish: "发布"
title: "Title"
images: "Images"
publish_settings: "发布设定"
status: "状态"
online: "上線"
article_filter: "Article filter"
permanent_link: "Permanent link"
page_with_action_name: "%{action} page"
feedback:
index:
feedback: "回应"
Expand Down
11 changes: 11 additions & 0 deletions config/locales/zh-TW.yml
Expand Up @@ -5,6 +5,17 @@ zh-TW:
next: "Next"
last: "Last"
admin:
pages:
form:
publish: "公開"
title: "標題"
images: "Images"
publish_settings: "Publish settings"
status: "身分"
online: "上線"
article_filter: "篩選文章"
permanent_link: "Permanent link"
page_with_action_name: "%{action} page"
feedback:
index:
feedback: "回應"
Expand Down
1 change: 0 additions & 1 deletion lang/da_DK.rb
Expand Up @@ -97,7 +97,6 @@
l.store "Your posts : %d", "Dine artikler : %d"
l.store "Total comments : %d", "Total kommentarer : %d"
l.store "Spam comments : %d", "Spam kommentarer : %d"
l.store "Online", "Online"
l.store "Pages", "Sider"
l.store "Are you sure you want to delete the page", "Er du sikker på du vil slette denne side"
l.store "Delete this page", "Slet denne side"
Expand Down

0 comments on commit bbe4e62

Please sign in to comment.