From a9288cc3bd998d7c179b080f56eccd6a56f59133 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20FRERE?= Date: Thu, 24 Oct 2013 12:41:20 +0200 Subject: Adds a button to delete the displayed translation of a blog post --- config/locales/en.yml | 3 +++ config/locales/fr.yml | 3 +++ config/routes.rb | 3 +++ 3 files changed, 9 insertions(+) (limited to 'config') 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
(opens in a new window)' 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
(Ouvre une nouvelle fenêtre)' 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 -- cgit v1.2.3