diff --git a/app/views/admin/education/programs/show/_metadata.html.erb b/app/views/admin/education/programs/show/_metadata.html.erb index c5930814e4de83332627243b08b38e88c5dab9e8..9fc7e0623f7d00391ce659c416f327d7b58a3ae0 100644 --- a/app/views/admin/education/programs/show/_metadata.html.erb +++ b/app/views/admin/education/programs/show/_metadata.html.erb @@ -1,6 +1,5 @@ <%= osuny_label t('metadata') %> -<p> - <%= @program.published ? 'Publiée' : 'Brouillon' %> -</p> +<p><%= @program.published ? Education::Program.human_attribute_name('is_published') + : Education::Program.human_attribute_name('is_draft') %></p> <%= render 'admin/application/property/text', object: @program, property: :meta_description %> diff --git a/config/locales/education/en.yml b/config/locales/education/en.yml index 73051d2483cdc4bf52dcc5371c58f3c88ae590cb..8905d7aadb4aecf8cdbdf658152de405fb44e49a 100644 --- a/config/locales/education/en.yml +++ b/config/locales/education/en.yml @@ -51,6 +51,8 @@ en: featured_image: Featured image featured_image_alt: Alt text initial: Initial training + is_published: Published + is_draft: Draft main_information: Main information name: Name objectives: Objectifs diff --git a/config/locales/education/fr.yml b/config/locales/education/fr.yml index 0b92fa951f7cfdd071ec508f36722dd99c96572a..23b429fab95a181fd78c1d240bdfa38d8253a6d4 100644 --- a/config/locales/education/fr.yml +++ b/config/locales/education/fr.yml @@ -51,6 +51,8 @@ fr: featured_image: Image à la une featured_image_alt: Texte alternatif initial: Formation initiale + is_published: Publiée + is_draft: Brouillon main_information: Informations essentielles name: Nom objectives: Objectifs