I try to translate the message that is used in the following JavaScript code.

Drupal.t('Changes made in this table will not be saved until the form is submitted.')

I use the String Overrides module; I tried also translation using settings.php. None of the methods work.

Does anybody have an idea on how to translate the sentence? I do not want to use big modules like localize.


Drupal loaded only the needed strings on every page which we are included. Those strings are added in javascript itself.

I think this is fixed by across the script files before they are actually added to the page.

So, you should be able to translate that string into the translate interface.

For more help, You can see this link,


Hope it will be helpful.

  • Hi, I am not able to translate the string without localize module. Is there any workaround? – loparr May 18 '15 at 9:31
  • 1
    I think you need to use localize module without this you can not do translation. – latikas May 19 '15 at 6:54
  • Unless you use localize or internationalization modules you can not translate any string, though it is included in the t() function. – Akshay Jun 25 '15 at 8:22

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.