Heine

  • home
  • drupal
  • drupal core commits
  • about
Home

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.

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

could you please explain

castawaybcn (not verified) — Tue, 02/02/2010 - 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

  • reply

Post new comment

I reserve the right to edit any comment submitted to the site. If your comment contains flaming, advertisements, or simply too many spelling errors (leet speak), it may never appear.
The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <as>, <as3>, <csharp>, <diff>, <drupal5>, <drupal6>, <html>, <js>, <mysql>, <php>, <phpbrief>, <python>, <sql>, <plain>, <xml>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.

More information about formatting options

Recent posts

  • Planet Drupal past and current
  • Help! - Cannot access a global variable.
  • Why is my module's update hook not listed on update.php's selection form?
  • How do I add a class to a link generated with l()
  • ZeroDayScan - Full path disclosure bug in Drupal 6.16 (0day)
more

Security reviews

  • Afraid custom code makes your site vulnerable?
  • You don't really trust that module you just downloaded from Drupal.org?

Sleep better after a security review.

Tags

Captcha CSRF Drupal embed Input Format modx OpenID Performance Planet Drupal rants Security Varnish
more tags
  • home
  • drupal
  • drupal core commits
  • about

Copyright © 2010 by Heine Deelstra. All rights reserved.