From 698c71f0392fe014f44030c724228550f4f9482a Mon Sep 17 00:00:00 2001 From: Usama Date: Fri, 22 Mar 2019 18:25:40 -0500 Subject: [PATCH] Fixed producer profile translation bug --- app/views/admin/enterprises/welcome.html.haml | 3 ++- config/locales/en.yml | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/admin/enterprises/welcome.html.haml b/app/views/admin/enterprises/welcome.html.haml index 8f70211e88..b386191640 100644 --- a/app/views/admin/enterprises/welcome.html.haml +++ b/app/views/admin/enterprises/welcome.html.haml @@ -4,7 +4,8 @@ %p = t('.welcome_text') %strong - = "#{"producer " if @enterprise.is_primary_producer}profile" + - profile_translation_key = @enterprise.is_primary_producer ? '.producer_profile' : '.profile' + = t(profile_translation_key) %section %h2= t('.next_step') diff --git a/config/locales/en.yml b/config/locales/en.yml index 045f561bd4..94365951ba 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -915,6 +915,8 @@ en: welcome_text: You have successfully created a next_step: Next step choose_starting_point: 'Choose your package:' + profile: 'Profile' + producer_profile: 'Producer Profile' invite_manager: user_already_exists: "User already exists" error: "Something went wrong"