From 18a68728d07e2e8da14d84a923eb21b0f8f58cfa Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Wed, 22 Sep 2010 01:49:17 +0000 Subject: =?UTF-8?q?#882164=20by=20aschiwi,=20G=C3=A1bor=20Hojtsy,=20David?= =?UTF-8?q?=5FRothstein,=20reglogge,=20et=20al:=20Fix=20the=20'install=20f?= =?UTF-8?q?rom=20another=20language'=20instructions=20so=20that=20they=20a?= =?UTF-8?q?ctually=20work.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/install.core.inc | 39 +++++++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 16 deletions(-) (limited to 'includes/install.core.inc') diff --git a/includes/install.core.inc b/includes/install.core.inc index 906a48e43..dedd09deb 100644 --- a/includes/install.core.inc +++ b/includes/install.core.inc @@ -1198,21 +1198,28 @@ function install_select_locale(&$install_state) { } if (empty($install_state['parameters']['locale'])) { - // If only the built-in (English) language is available, and we are using - // the default profile and performing an interactive installation, inform - // the user that the installer can be localized. Otherwise we assume the - // user knows what he is doing. + // If only the built-in (English) language is available, and we are + // performing an interactive installation, inform the user that the + // installer can be localized. Otherwise we assume the user knows what he + // is doing. if (count($locales) == 1) { - if ($profilename == 'standard' && $install_state['interactive']) { + if ($install_state['interactive']) { drupal_set_title(st('Choose language')); if (!empty($install_state['parameters']['localize'])) { - $output = '

' . st('With the addition of an appropriate translation package, this installer is capable of proceeding in another language of your choice. To install and use Drupal in a language other than English:') . '

'; - $output .= '

' . st('Alternatively, to install and use Drupal in English, or to defer the selection of an alternative language until after installation, select the first link below.') . '

'; - $output .= '

' . st('How should the installation continue?') . '

'; - $output .= ''; + $output = '

Follow these steps to translate Drupal into your language:

'; + $output .= '
    '; + $output .= '
  1. Download a translation from the translation server.
  2. '; + $output .= '
  3. Rename the downloaded file to your language\'s ISO code (e.g., de.po or fr.po) and place it into the following directory: +
    +/profiles/' . $profilename . '/translations/
    +
  4. '; + $output .= '
'; + $output .= '

For more information on installing Drupal in different languages, visit the drupal.org handbook page.

'; + $output .= '

How should the installation continue?

'; + $output .= ''; } else { include_once DRUPAL_ROOT . '/includes/form.inc'; @@ -1221,8 +1228,8 @@ function install_select_locale(&$install_state) { } return $output; } - // One language, but not the default profile or not an interactive - // installation. Assume the user knows what he is doing. + // One language, but not an interactive installation. Assume the user + // knows what he is doing. $locale = current($locales); $install_state['parameters']['locale'] = $locale->name; return; @@ -1263,7 +1270,7 @@ function install_select_locale(&$install_state) { /** * Form API array definition for language selection. */ -function install_select_locale_form($form, &$form_state, $locales, $profilename = 'standard') { +function install_select_locale_form($form, &$form_state, $locales, $profilename) { include_once DRUPAL_ROOT . '/includes/iso.inc'; $languages = _locale_get_predefined_list(); foreach ($locales as $locale) { @@ -1280,7 +1287,7 @@ function install_select_locale_form($form, &$form_state, $locales, $profilename '#parents' => array('locale') ); } - if ($profilename == 'standard') { + if (count($locales) == 1) { $form['help'] = array( '#markup' => '

' . st('Learn how to install Drupal in other languages') . '

', ); -- cgit v1.2.3