Heine

  • Home
  • Drupal
  • About
Home » Guides » Drupal Developer FAQ

How do I recreate a Javascript translation file?

  • Remove the file from [your_files_directory]/languages/ (if any)

Then execute the following queries on the database (see settings.php for which database is in use):

  • UPDATE languages SET javascript = '' WHERE LANGUAGE = '[yourlanguage]';
  • UPDATE variable SET VALUE = 'a:0:{}' WHERE name = 'javascript_parsed';
  • TRUNCATE cache;

If you now visit the relevant page, the translation will be regenerated.

‹ How do I add a class to a link generated with l() up Implemented hook_block, now all blocks are gone ›
  • Printer-friendly version

Comments

could you please explain

Submitted by castawaybcn (not verified) on Tue, 2010/02/02 - 14:53

could you please explain where/how to use steps 2 to 4?
I assume it must be somewhere in the database but I just have no idea where...
tx

Recent posts

  • Teampassword manager's password generator is biased
  • Other vectors for SA-CORE-2014-005?
  • Lazy loading: hook_hook_info is for hook owners only.
  • "Always offline" problem in EA's Origin due to antivirus
  • From bug to exploit - Bakery SSO
more

Security reviews

I provide security reviews of custom code, contributed modules, themes and entire sites via LimoenGroen.

Contact us for a quote.

Follow @ustima

Copyright © 2021 by Heine Deelstra. All rights reserved.

  • Home
  • Drupal
  • About