diff --git a/cgi/user.pl b/cgi/user.pl index f9cceefce3116..fcb8aaab1edb2 100644 --- a/cgi/user.pl +++ b/cgi/user.pl @@ -205,7 +205,6 @@ field => "pro", type => "checkbox", label => lang("this_is_a_pro_account"), - warning => sprintf(lang("this_is_a_pro_account_for_org"),"" . $user_ref->{org} . ""), value => "off", }, { @@ -291,7 +290,6 @@ if ( ( defined $user_ref->{org} ) and ( $user_ref->{org} ne "" ) ) { $template_data_ref->{accepted_organization} = $user_ref->{org}; - $template_data_ref->{pro_account_org} = sprintf(lang("this_is_a_pro_account_for_org"),"" . $user_ref->{org} . ""); } elsif ((defined $options{product_type}) and ($options{product_type} eq "food")) { my $requested_org_ref = retrieve_org($user_ref->{requested_org}); diff --git a/po/common/common.pot b/po/common/common.pot index f4c8c34f5ad6d..cde0bb5b73bc6 100644 --- a/po/common/common.pot +++ b/po/common/common.pot @@ -117,9 +117,9 @@ msgctxt "enter_name_of_org" msgid "Please enter the name of your organization (company name or brand)." msgstr "Please enter the name of your organization (company name or brand)." -msgctxt "this_is_a_pro_account_for_org" -msgid "This account is a professional account associated with the producer or brand %s. You have access to the Platform for Producers." -msgstr "This account is a professional account associated with the producer or brand %s. You have access to the Platform for Producers." +msgctxt "f_this_is_a_pro_account_for_org" +msgid "This account is a professional account associated with the producer or brand {org}. You have access to the Platform for Producers." +msgstr "This account is a professional account associated with the producer or brand {org}. You have access to the Platform for Producers." msgctxt "add_user_email_body" msgid "" diff --git a/po/common/en.po b/po/common/en.po index 8bee9dc4c1bb0..20f710fc327be 100644 --- a/po/common/en.po +++ b/po/common/en.po @@ -119,11 +119,9 @@ msgctxt "enter_name_of_org" msgid "Please enter the name of your organization (company name or brand)." msgstr "Please enter the name of your organization (company name or brand)." -msgctxt "this_is_a_pro_account_for_org" -msgid "This account is a professional account associated with the producer or brand %s. You have access to the Platform for Producers." -msgstr "This account is a professional account associated with the producer or brand %s. You have access to the Platform for Producers." - - +msgctxt "f_this_is_a_pro_account_for_org" +msgid "This account is a professional account associated with the producer or brand {org}. You have access to the Platform for Producers." +msgstr "This account is a professional account associated with the producer or brand {org}. You have access to the Platform for Producers." msgctxt "add_user_email_body" msgid "Hello ,\n\n" diff --git a/templates/web/pages/user_form/user_form_page.tt.html b/templates/web/pages/user_form/user_form_page.tt.html index 42fe6adda6481..2b36cef2f0401 100644 --- a/templates/web/pages/user_form/user_form_page.tt.html +++ b/templates/web/pages/user_form/user_form_page.tt.html @@ -83,7 +83,7 @@ [% ELSIF field.type == 'checkbox' %] [% IF accepted_organization && section.id == "professional" %] -

[% field.warning %]

+

[% f_lang('f_this_is_a_pro_account_for_org', {'org' => accepted_organization}) %]

[% ELSE %]