From 84de1a7117742463138c188a4d2c9e2b2e814fef Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sun, 2 Mar 2014 22:08:30 +0100 Subject: Translate admin category form. --- app/views/refinery/blog/admin/categories/_form.html.erb | 6 +++--- config/locales/en.yml | 4 +++- config/locales/nb.yml | 4 +++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/app/views/refinery/blog/admin/categories/_form.html.erb b/app/views/refinery/blog/admin/categories/_form.html.erb index 4538aef..69ac0e7 100644 --- a/app/views/refinery/blog/admin/categories/_form.html.erb +++ b/app/views/refinery/blog/admin/categories/_form.html.erb @@ -6,17 +6,17 @@ } %>
- <%= f.label :title -%> + <%= f.label t(".title") -%> <%= f.text_field :title, :class => 'larger widest' -%>
- <%= f.label :sidebar_position -%> + <%= f.label t(".sidebar_position") -%> <%= f.select :sidebar_position, make_choice_from(t('.sidebar_positions')) -%>
- <%= f.label :sidebar_items -%> + <%= f.label t(".sidebar_items") -%> <%= f.select :sidebar_items, (1..25) -%>
diff --git a/config/locales/en.yml b/config/locales/en.yml index 7f70963..bc3fd29 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -5,10 +5,12 @@ en: admin: categories: form: + title: Title + sidebar_position: In which sidebar should category be shown? sidebar_positions: - None - Left - Right + sidebar_items: Number of posts to show in sidebar category: sidebar_position: Position - diff --git a/config/locales/nb.yml b/config/locales/nb.yml index 49b21d9..55d45c9 100644 --- a/config/locales/nb.yml +++ b/config/locales/nb.yml @@ -5,10 +5,12 @@ nb: admin: categories: form: + title: Tittel + sidebar_position: Hvilken marg skal kategorien vises i? sidebar_positions: - Ingen - Venstre - Høyre + sidebar_items: Antall poster å vise i margen category: sidebar_position: Posisjon - -- cgit v1.2.3