aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2010-08-09 19:31:22 +1200
committerPhilip Arndt <parndt@gmail.com>2010-08-09 19:31:22 +1200
commita5fe9225fac33f15e972599132c7f569cc5cf397 (patch)
treef58e7405a03546a37e26f2f1c2694ee12e93fc7d /config
parent30df46503cf3176a37ad08ff50da7fa25b43e662 (diff)
downloadrefinerycms-blog-a5fe9225fac33f15e972599132c7f569cc5cf397.tar.gz
refinerycms-blog-a5fe9225fac33f15e972599132c7f569cc5cf397.tar.bz2
refinerycms-blog-a5fe9225fac33f15e972599132c7f569cc5cf397.zip
Namespaced blog posts under blog/posts to allow for blog/comments and blog/categories
Diffstat (limited to 'config')
-rw-r--r--config/locales/en.yml23
-rw-r--r--config/locales/nb.yml23
-rw-r--r--config/locales/nl.yml23
-rw-r--r--config/routes.rb4
4 files changed, 39 insertions, 34 deletions
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 0b1e15d..4489389 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -3,17 +3,18 @@ en:
refinerycms_blog:
title: Blog
admin:
- blog_posts:
- index:
- create_new: Create new post
- reorder: Reorder Blog Posts
- reorder_done: Done Reordering Blog Posts
- sorry_no_results: Sorry! There are no results found.
- no_items_yet: There are no Blog Posts yet. Click "Create a new Blog Posts" to add your first blog posts.
- blog_post:
- view_live: View this blog post live <br/><em>(opens in a new window)</em>
- edit: Edit this blog post
- delete: Remove this blog post forever
+ blog:
+ posts:
+ index:
+ create_new: Create new post
+ reorder: Reorder Blog Posts
+ reorder_done: Done Reordering Blog Posts
+ sorry_no_results: Sorry! There are no results found.
+ no_items_yet: There are no Blog Posts yet. Click "Create a new Blog Posts" to add your first blog posts.
+ post:
+ view_live: View this blog post live <br/><em>(opens in a new window)</em>
+ edit: Edit this blog post
+ delete: Remove this blog post forever
blog_posts:
show:
other: Other Blog Posts \ No newline at end of file
diff --git a/config/locales/nb.yml b/config/locales/nb.yml
index 8ff239f..0c7f237 100644
--- a/config/locales/nb.yml
+++ b/config/locales/nb.yml
@@ -3,17 +3,18 @@ nb:
refinerycms_blog:
title: Blog
admin:
- blog_posts:
- index:
- create_new: Lag en ny post
- reorder: Endre rekkefølgen på Blog Posts
- reorder_done: Ferdig å endre rekkefølgen Blog Posts
- sorry_no_results: Beklager! Vi fant ikke noen resultater.
- no_items_yet: Det er ingen Blog Posts enda. Klikk på "Lag en ny Blog Posts" for å legge til din første blog posts.
- blog_post:
- view_live: Vis hvordan denne blog post ser ut offentlig <br/><em>(åpner i et nytt vindu)</em>
- edit: Rediger denne blog post
- delete: Fjern denne blog post permanent
+ blog:
+ posts:
+ index:
+ create_new: Lag en ny post
+ reorder: Endre rekkefølgen på Blog Posts
+ reorder_done: Ferdig å endre rekkefølgen Blog Posts
+ sorry_no_results: Beklager! Vi fant ikke noen resultater.
+ no_items_yet: Det er ingen Blog Posts enda. Klikk på "Lag en ny Blog Posts" for å legge til din første blog posts.
+ post:
+ view_live: Vis hvordan denne blog post ser ut offentlig <br/><em>(åpner i et nytt vindu)</em>
+ edit: Rediger denne blog post
+ delete: Fjern denne blog post permanent
blog_posts:
show:
other: Andre Blog Posts \ No newline at end of file
diff --git a/config/locales/nl.yml b/config/locales/nl.yml
index c5daaf8..e1f7eca 100644
--- a/config/locales/nl.yml
+++ b/config/locales/nl.yml
@@ -3,17 +3,18 @@ nl:
refinerycms_blog:
title: Blog
admin:
- blog_posts:
- index:
- create_new: Maak een nieuwe post
- reorder: Wijzig de volgorde van de Blog Post
- reorder_done: Klaar met het wijzingen van de volgorde van de Blog Post
- sorry_no_results: Helaas! Er zijn geen resultaten gevonden.
- no_items_yet: Er zijn nog geen Blog Post. Druk op 'Maak een nieuwe Blog Post' om de eerste aan te maken.
- blog_post:
- view_live: Bekijk deze blog posts op de website <br/><em>(opent een nieuw venster)</em>
- edit: Bewerk deze blog post
- delete: Verwijder deze blog post voor eeuwig
+ blog:
+ posts:
+ index:
+ create_new: Maak een nieuwe post
+ reorder: Wijzig de volgorde van de Blog Post
+ reorder_done: Klaar met het wijzingen van de volgorde van de Blog Post
+ sorry_no_results: Helaas! Er zijn geen resultaten gevonden.
+ no_items_yet: Er zijn nog geen Blog Post. Druk op 'Maak een nieuwe Blog Post' om de eerste aan te maken.
+ post:
+ view_live: Bekijk deze blog posts op de website <br/><em>(opent een nieuw venster)</em>
+ edit: Bewerk deze blog post
+ delete: Verwijder deze blog post voor eeuwig
blog_posts:
show:
other: Andere Blog Post \ No newline at end of file
diff --git a/config/routes.rb b/config/routes.rb
index e47fa00..4722ce3 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -2,6 +2,8 @@ ActionController::Routing::Routes.draw do |map|
map.resources :blog_posts, :as => :blog
map.namespace(:admin, :path_prefix => 'refinery') do |admin|
- admin.resources :blog_posts, :collection => {:update_positions => :post}
+ admin.namespace :blog do |blog|
+ blog.resources :posts, :collection => {:update_positions => :post}
+ end
end
end