Skip to content

Commit

Permalink
Change categories new view
Browse files Browse the repository at this point in the history
Move lang to locales (more standard way for rails)
  • Loading branch information
Yannick Francois committed Oct 7, 2013
1 parent 19d6ebb commit f68ff41
Show file tree
Hide file tree
Showing 35 changed files with 177 additions and 235 deletions.
20 changes: 10 additions & 10 deletions app/views/admin/categories/new.html.erb
@@ -1,19 +1,19 @@
<%- content_for :page_heading do %>
<i class="icon-large icon-categories"></i><h2 class="page-title"><%= _("Categories") %></h2>
<i class="icon-large icon-categories"></i><h2 class="page-title"><%= t(".categories") %></h2>
<% end %>

<div>
<div class='span4'>
<%= form_tag :action=>"edit", :id => @category.id do %>
<%= error_messages_for 'category' %>
<label for='category_name'><%= _("Name") %></label>
<label for='category_name'><%= t(".name") %></label>
<%= text_field :category, :name, :class => 'span12' %>
<label for='category_keywords' class='control-label'><%= _("Keywords") %></label>
<label for='category_keywords' class='control-label'><%= t(".keywords") %></label>
<%= text_field :category, :keywords, :class => 'span12' %>
<label for="category_permalink"><%= _("Permalink") %></label>
<label for="category_permalink"><%= t(".permalink") %></label>
<%= text_field :category, :permalink, :class => 'span12' %>
<p class='help-block'><%= _("Your category slug. Leave empty if you don't know what to put here") %></p>
<label for="category_description"><%= _("Description") %></label>
<p class='help-block'><%= t(".explaination") %></p>
<label for="category_description"><%= t(".description") %></label>
<%= text_area :category, :description, :rows => 5, :class => 'span12' %>
<div class='form-actions'>
<%= cancel_or_save %>
Expand All @@ -25,10 +25,10 @@
<table id='category_container' class="table table-striped">
<thead>
<tr class='noborder'>
<th style='width:40%'><%= _("Title") %></th>
<th><%= _("Description") %></th>
<th><%= _("Permalink") %></th>
<th><%= _("Keywords") %></th>
<th style='width:40%'><%= t(".title") %></th>
<th><%= t(".description") %></th>
<th><%= t(".permalink") %></th>
<th><%= t(".keywords") %></th>
</tr>
</thead>
<%= render_void_table(@categories.size, 4) %>
Expand Down
49 changes: 0 additions & 49 deletions app/views/admin/categories/new.js.erb

This file was deleted.

9 changes: 9 additions & 0 deletions config/locales/da.yml
@@ -1,5 +1,14 @@
da:
admin:
categories:
new:
categories: "Kategorier"
name: "Navn"
keywords: "Keywords"
permalink: "Permanent link"
explaination: "Your category slug. Leave empty if you don't know what to put here"
description: "Beskrivelse"
title: "Titel"
menu:
help: "Help"
documentation: "Documentation"
Expand Down
9 changes: 9 additions & 0 deletions config/locales/de.yml
@@ -1,5 +1,14 @@
de:
admin:
categories:
new:
categories: "Categories"
name: "Name"
keywords: "Keywords"
permalink: "Permanenter Link"
explaination: "Your category slug. Leave empty if you don't know what to put here"
description: "Beschreibung"
title: "Titel"
menu:
help: "Helfen"
documentation: "Documentation"
Expand Down
9 changes: 9 additions & 0 deletions config/locales/en.yml
@@ -1,5 +1,14 @@
en:
admin:
categories:
new:
categories: "Categories"
name: "Name"
keywords: "Keywords"
permalink: "Permalink"
explaination: "Your category slug. Leave empty if you don't know what to put here"
description: "Description"
title: "Title"
menu:
help: "Help"
documentation: "Documentation"
Expand Down
9 changes: 9 additions & 0 deletions config/locales/es-MX.yml
@@ -1,5 +1,14 @@
es-MX:
admin:
categories:
new:
categories: "Categories"
name: "Nombre"
keywords: "Keywords"
permalink: "Link permanente"
explaination: "Your category slug. Leave empty if you don't know what to put here"
description: "Descripci&oacute;n"
title: "T&iacute;tulo"
menu:
help: "Ayuda"
documentation: "Documentación"
Expand Down
9 changes: 9 additions & 0 deletions config/locales/fr.yml
@@ -1,5 +1,14 @@
fr:
admin:
categories:
new:
categories: "Catégories"
name: "Nom"
keywords: "Mots clés"
permalink: "Lien permanent"
explaination: "Le lien permanent de votre catégorie. Laissez le vide si vous ne savez pas quoi mettre"
description: "Description"
title: "Titre"
menu:
help: "Aide"
documentation: "Documentation"
Expand Down
9 changes: 9 additions & 0 deletions config/locales/he-IL.yml
@@ -1,5 +1,14 @@
he-IL:
admin:
categories:
new:
categories: "קטגוריות"
name: "שם"
keywords: "Keywords"
permalink: "קישור קבוע"
explaination: "Your category slug. Leave empty if you don't know what to put here"
description: "תיאור"
title: "כותרת"
menu:
help: "עזרה"
documentation: "Documentation"
Expand Down
9 changes: 9 additions & 0 deletions config/locales/it.yml
@@ -1,5 +1,14 @@
it:
admin:
categories:
new:
categories: "Categories"
name: "Nome"
keywords: "Keywords"
permalink: "Permalink"
explaination: "Your category slug. Leave empty if you don't know what to put here"
description: "Descrizione"
title: "Titolo"
menu:
help: "Aiuto"
documentation: "Documentazione"
Expand Down
9 changes: 9 additions & 0 deletions config/locales/ja.yml
@@ -1,5 +1,14 @@
ja:
admin:
categories:
new:
categories: "カテゴリ"
name: "名前"
keywords: "Keywords"
permalink: "パーマリンク"
explaination: "Your category slug. Leave empty if you don't know what to put here"
description: "説明"
title: "タイトル"
menu:
help: "Help"
documentation: "Documentation"
Expand Down
9 changes: 9 additions & 0 deletions config/locales/lt.yml
@@ -1,5 +1,14 @@
lt:
admin:
categories:
new:
categories: "Categories"
name: "Vardas"
keywords: "Keywords"
permalink: "Nuoroda"
explaination: "Your category slug. Leave empty if you don't know what to put here"
description: "Beschreibung"
title: "Pavadinimas"
menu:
help: "Padėti"
documentation: "Vadovėlis"
Expand Down
9 changes: 9 additions & 0 deletions config/locales/nb-NO.yml
@@ -1,5 +1,14 @@
nb-NO:
admin:
categories:
new:
categories: "Kategorier"
name: "Navn"
keywords: "Nøkkelord"
permalink: "Permanent link"
explaination: "Your category slug. Leave empty if you don't know what to put here"
description: "Beskrivelse"
title: "Tittel"
menu:
help: "Help"
documentation: "Documentation"
Expand Down
9 changes: 9 additions & 0 deletions config/locales/nl.yml
@@ -1,5 +1,14 @@
nl:
admin:
categories:
new:
categories: "Categoriën"
name: "Naam"
keywords: "Trefwoorden"
permalink: "Permalink"
explaination: "Your category slug. Leave empty if you don't know what to put here"
description: "Omschrijving"
title: "Titel"
menu:
help: "Help"
documentation: "Documentation"
Expand Down
9 changes: 9 additions & 0 deletions config/locales/pl.yml
@@ -1,5 +1,14 @@
pl:
admin:
categories:
new:
categories: "Categories"
name: "Nazwa"
keywords: "Keywords"
permalink: "Permalink"
explaination: "Your category slug. Leave empty if you don't know what to put here"
description: "Opis"
title: "Tytuł"
menu:
help: "Pomocy"
documentation: "Documentation"
Expand Down
37 changes: 23 additions & 14 deletions config/locales/pt-BR.yml
@@ -1,19 +1,14 @@
pt-BR:
accounts:
back_to: "&larr; Voltar para %{place}"
back_to_login: "Voltar para o login"
create_account: "Crie uma conta"
lost_my_password: "Eu perdi minha senha"
login:
login: "Login"
password: "Senha"
remember_me: "Lembrar-me"
sign_in: "Entrar"
confirm:
proceed_to: "Proceed to %{link}"
admin: "admin"

admin:
categories:
new:
categories: "Categorias"
name: "Nome"
keywords: "Keywords"
permalink: "Link permanente"
explaination: "Your category slug. Leave empty if you don't know what to put here"
description: "Descrição"
title: "Título"
menu:
help: "Ayuda"
documentation: "Documentación"
Expand All @@ -32,4 +27,18 @@ pt-BR:
explanations: "Para economizar recursos, Publify gera arquivos estáticos
            juntamente com o seu conteúdo. Esses arquivos são apagados automaticamente quando um novo
artigo é criado. Você pode, a qualquer momento, excluir esses arquivos."
accounts:
back_to: "&larr; Voltar para %{place}"
back_to_login: "Voltar para o login"
create_account: "Crie uma conta"
lost_my_password: "Eu perdi minha senha"
login:
login: "Login"
password: "Senha"
remember_me: "Lembrar-me"
sign_in: "Entrar"
confirm:
proceed_to: "Proceed to %{link}"
admin: "admin"


9 changes: 9 additions & 0 deletions config/locales/ro.yml
@@ -1,5 +1,14 @@
ro:
admin:
categories:
new:
categories: "Categories"
name: "Nume"
keywords: "Keywords"
permalink: "Legătură permanentă"
explaination: "Your category slug. Leave empty if you don't know what to put here"
description: "Descriere"
title: "Titlu"
menu:
help: "Ajutor"
documentation: "Documentație"
Expand Down
9 changes: 9 additions & 0 deletions config/locales/ru.yml
@@ -1,5 +1,14 @@
ru:
admin:
categories:
new:
categories: "Категории"
name: "Имя"
keywords: "Ключевые слова"
permalink: "Постоянная ссылка"
explaination: "Your category slug. Leave empty if you don't know what to put here"
description: "Описание"
title: "Заголовок"
menu:
help: "Помощь"
documentation: "Документация"
Expand Down
9 changes: 9 additions & 0 deletions config/locales/zh-CN.yml
@@ -1,5 +1,14 @@
zh-CN:
admin:
categories:
new:
categories: "分类"
name: "名字"
keywords: "关键词"
permalink: "固定链接"
explaination: "Your category slug. Leave empty if you don't know what to put here"
description: "说明"
title: "标题"
menu:
help: "Help"
documentation: "Documentation"
Expand Down
9 changes: 9 additions & 0 deletions config/locales/zh-TW.yml
@@ -1,5 +1,14 @@
zh-TW:
admin:
categories:
new:
categories: "分類"
name: "名字"
keywords: "Keywords"
permalink: "固定連接"
explaination: "Your category slug. Leave empty if you don't know what to put here"
description: "説明"
title: "標題"
menu:
help: "Help"
documentation: "Documentation"
Expand Down

0 comments on commit f68ff41

Please sign in to comment.