In "Who's Online" how to change these names "Users" , "Guest" .

I want to change them to give it a new look. Please tell it to me as fast as possible.

Comments

Tistur’s picture

From the handbook:
http://drupal.org/node/66638

dublin drupaller’s picture

Hi Justicejayant...

As a tip....it's highly likely that you will want to change the word 'user' throughout the site to 'guest'...to maintain consistency.

As an alternative to the handbook page linked, I would tend to recommend you enable the locale.module, which comes with Drupal, out-of-the-box and follow these steps:

  1. Go to the Locale settings page (called LOCALIZATION) under ADMINISTER >> SITE CONFIGURATION
  2. Click on ADD NEW LANGUAGE
  3. under the CUSTOM LANGUAGE option, call it something like Custom English
    (Drupal will then make a copy of the default English and it will be called Custom English)
  4. Make your new Custom English the Default language for the site and disable the (Default Drupal) English
  5. Now you can click on MANAGE STRINGS, e.g. you can search for the String 'user' throughout the whole site and change it for specific circumstances.
  6. You can also export/import the entire Custom English language as a .po file, so you can search and replace specific text strings etc. It's also very useful for customising error messages

The only other tip I would mention is that if the SEARCH STRINGS option doesn't work first time for you..make sure your SEARCH.MODULE is enabled and run cron to update the search index.(www.example.com/cron.php)

I hope that helps. The bottom line is using the locale.module is a very useful way of customising the ENGLISH being used throughout your Drupal site.

I'll convert this to a handbook page if it's not there already.

Dub

Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate

john.kenney’s picture

i'm been trying to find a way to customize drupal error messages. remarkably little seems to be written about it, but finally came across this and it seems like a promising approach.

but i'm trying to do now in D6 and doesn't work quite the same way as it may have in '07. i'ts asking me for a 'language code' and choking on 'en'.

i don't want to do something that'll break things, so i wonder if you could update these steps. or maybe you did a handbook page on it? if so, i can't find it.

thanks for your help!