Skip to content
Snippets Groups Projects
Commit decd7576 authored by catch's avatar catch
Browse files

Issue #1392348 by Gábor Hojtsy: Fixed The installer does not translate profile...

Issue #1392348 by Gábor Hojtsy: Fixed The installer does not translate profile names and descriptions.
parent fc3f9660
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -1119,12 +1119,15 @@ function install_select_profile_form($form, &$form_state, $profile_files) { ...@@ -1119,12 +1119,15 @@ function install_select_profile_form($form, &$form_state, $profile_files) {
} }
foreach ($names as $profile => $name) { foreach ($names as $profile => $name) {
// The profile name and description are extracted for translation from the
// .info file, so we can use st() on them even though they are dynamic data
// at this point.
$form['profile'][$name] = array( $form['profile'][$name] = array(
'#type' => 'radio', '#type' => 'radio',
'#value' => 'standard', '#value' => 'standard',
'#return_value' => $profile, '#return_value' => $profile,
'#title' => $name, '#title' => st($name),
'#description' => isset($profiles[$profile]['description']) ? $profiles[$profile]['description'] : '', '#description' => isset($profiles[$profile]['description']) ? st($profiles[$profile]['description']) : '',
'#parents' => array('profile'), '#parents' => array('profile'),
); );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment