aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorJérémy FRERE <frere.jeremy@gmail.com>2013-10-24 12:41:20 +0200
committerPhilip Arndt <git@p.arndt.io>2015-05-14 09:52:29 +1200
commita9288cc3bd998d7c179b080f56eccd6a56f59133 (patch)
treeb4658ea330aab2f713151058b40cbbd1f2ac127a /config
parentbb0d3b0da633053c0236bdbe5a9452ae9655fda7 (diff)
downloadrefinerycms-blog-a9288cc3bd998d7c179b080f56eccd6a56f59133.tar.gz
refinerycms-blog-a9288cc3bd998d7c179b080f56eccd6a56f59133.tar.bz2
refinerycms-blog-a9288cc3bd998d7c179b080f56eccd6a56f59133.zip
Adds a button to delete the displayed translation of a blog post
Diffstat (limited to 'config')
-rw-r--r--config/locales/en.yml3
-rw-r--r--config/locales/fr.yml3
-rw-r--r--config/routes.rb3
3 files changed, 9 insertions, 0 deletions
diff --git a/config/locales/en.yml b/config/locales/en.yml
index cc6751f..1ad71b1 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -55,6 +55,9 @@ en:
view_live_html: 'View this blog post live <br/><em>(opens in a new window)</em>'
edit: Edit this blog post
delete: Remove this blog post forever
+ delete_translation: Remove this translation
+ delete_translation_confirmation: Are you sure you want to remove this translation forever ?
+ delete_translation_success: The translation was successfully removed.
draft: Draft
settings:
notification_recipients:
diff --git a/config/locales/fr.yml b/config/locales/fr.yml
index fe62db2..867aacc 100644
--- a/config/locales/fr.yml
+++ b/config/locales/fr.yml
@@ -55,6 +55,9 @@ fr:
view_live_html: 'Voir cet article sur le site<br/><em>(Ouvre une nouvelle fenêtre)</em>'
edit: Modifier cet article
delete: Supprimer cet article
+ delete_translation: Supprimer cette traduction
+ delete_translation_confirmation: Êtes-vous sûr de vouloir supprimer cette traduction ?
+ delete_translation_success: La traduction a été correctement supprimée.
draft: Brouillon
settings:
notification_recipients:
diff --git a/config/routes.rb b/config/routes.rb
index 8a7ae27..f36bc11 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -20,6 +20,9 @@ Refinery::Core::Engine.routes.draw do
get :uncategorized
get :tags
end
+ member do
+ post :delete_translation
+ end
end
resources :categories