0

I'm having trouble with changing drupal default messages.

Like for example when you register you get an email with a one time login link (I know how to change this email text) and when you click on the link you get the message

This is a one-time login for username and will expire on ... .

Click on this button to log in to the site and change your password.

This login can be used only once.

But how can I change this text? Another example is:

You have just used your one-time login link. It is no longer necessary to use this link to log in. Please change your password.

How can I change these texts?

1
  • 4
    Please don't use code blocks for non-code content – Mołot Aug 13 '14 at 10:26
4

Try the String Overrides module. If you have more strings to change.

Provides a quick and easy way to replace any text on the site.

Features

  • Easily replace anything that's passed through t()
  • Locale support, allowing you to override strings in any language
  • Ability to import/export *.po files, for easy migration from the Locale module
  • Note that this is not a replacement to Locale as having thousands of overrides can cause more pain then benefit. Use this only if you need a few easy text changes.
2
  • Thanks for the answer! Just a little question, what means the Context? You have the original string, replacement string and then context, but what is context? – nielsv Aug 13 '14 at 10:41
  • 1
    @nielsv Sorry I didn't get you what you mean? Can you elaborate? If it is different question please ask that as a new question instead of in comment!. – Krishna Mohan Aug 13 '14 at 10:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.