Fix for Code

  1. <?php
  2.   // Clear translations.
  3.   db_query('TRUNCATE {locales_source}');
  4.   db_query('TRUNCATE {locales_target}');
  5.  
  6.   // Reimport.
  7.   $batch = locale_batch_by_language($language);
  8.   batch_set($batch);

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.