From bb2a637d0f6bcf31b4d5bedfb46f0b65ebbdde11 Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Wed, 20 Dec 2006 08:06:20 +0000 Subject: [PATCH] #103826 by kkaefer and ChrisKennedy. Improve the welcome page translatabolity. --- modules/node/node.module | 41 ++++++++++------------------------------ 1 file changed, 10 insertions(+), 31 deletions(-) diff --git a/modules/node/node.module b/modules/node/node.module index fbc9d4357a9..b9d356f4872 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -2349,41 +2349,20 @@ function node_page_default() { // Check for existence of admin account. $admin = db_result(db_query('SELECT uid FROM {users} WHERE uid = 1')); - $default_message = ' -

Welcome to your new Drupal website!

-

Please follow these steps to set up and start using your website:

-
    '; + $default_message = t('

    Welcome to your new Drupal website!

    Please follow these steps to set up and start using your website:

    '); + $default_message .= '
      '; if (!$admin) { - $default_message .= ' -
    1. - Create your administrator account - To begin, create the first account. This account will have full administration rights and will allow you to configure your website. -
    2. '; + $default_message .= '
    3. '. t('Create your administrator account To begin, create the first account. This account will have full administration rights and will allow you to configure your website.', array('@register' => url('user/register'))) .'
    4. '; } + $default_message .= '
    5. '. t('Configure your website Once logged in, visit the administration section, where you can customize and configure all aspects of your website.', array('@admin' => url('admin'), '@config' => url('admin/settings'))) .'
    6. '; + $default_message .= '
    7. '. t('Enable additional functionality Next, visit the module list and enable features which suit your specific needs. You can find additional modules in the Drupal modules download section.', array('@modules' => url('admin/build/modules'), '@download_modules' => 'http://drupal.org/project/modules')) .'
    8. '; + $default_message .= '
    9. '. t('Customize your website design To change the "look and feel" of your website, visit the themes section. You may choose from one of the included themes or download additional themes from the Drupal themes download section.', array('@themes' => url('admin/build/themes'), '@download_themes' => 'http://drupal.org/project/themes')) .'
    10. '; + $default_message .= '
    11. '. t('Start posting content Finally, you can create content for your website. This message will disappear once you have published your first post.', array('@content' => url('node/add'))) .'
    12. '; + $default_message .= '
    '; + $default_message .= '

    '. t('For more information, please refer to the help section, or the online Drupal handbooks. You may also post at the Drupal forum, or view the wide range of other support options available.', array('@help' => url('admin/help'), '@handbook' => 'http://drupal.org/handbooks', '@forum' => 'http://drupal.org/forum', '@support' => 'http://drupal.org/support')) .'

    '; - $default_message .= ' -
  1. - Configure your website - Once logged in, visit the administration section, where you can customize and configure all aspects of your website. -
  2. -
  3. - Enable additional functionality - Next, visit the module list and enable features which suit your specific needs. You can find additional modules in the Drupal modules download section. -
  4. -
  5. - Customize your website design - To change the "look and feel" of your website, visit the themes section. You may choose from one of the included themes or download additional themes from the Drupal themes download section. -
  6. -
  7. - Start posting content - Finally, you can create content for your website. This message will disappear once you have published your first post. -
  8. -
-

For more information, please refer to the help section, or the online Drupal handbooks. You may also post at the Drupal forum, or view the wide range of other support options available.

'; - - $output = t($default_message, array('@drupal' => 'http://drupal.org/', '@register' => url('user/register'), '@admin' => url('admin'), '@config' => url('admin/settings'), '@modules' => url('admin/build/modules'), '@download_modules' => 'http://drupal.org/project/modules', '@themes' => url('admin/build/themes'), '@download_themes' => 'http://drupal.org/project/themes', '@content' => url('node/add'), '@help' => url('admin/help'), '@handbook' => 'http://drupal.org/handbooks', '@forum' => 'http://drupal.org/forum', '@support' => 'http://drupal.org/support')); - $output = '
'. $output .'
'; + $output = '
'. $default_message .'
'; } drupal_set_title('');