@@ -99,19 +112,6 @@ public function countTranslations() {
return$this->dbExecute("SELECT t.language, COUNT(*) AS translated FROM {locales_source} s INNER JOIN {locales_target} t ON s.lid = t.lid GROUP BY t.language")->fetchAllKeyed();
drupal_set_message(t('The translation was successfully imported. There are %number newly created translated strings, %update strings were updated and %delete strings were removed.',array('%number'=>$additions,'%update'=>$updates,'%delete'=>$deletes)));
watchdog('locale','The translation was succesfully imported. %number new strings added, %update updated and %delete removed.',array('%number'=>$additions,'%update'=>$updates,'%delete'=>$deletes));
...
...
@@ -547,9 +555,10 @@ function locale_translate_batch_finished($success, $results) {
watchdog('locale','@count disallowed HTML string(s) in files: @files.',array('@count'=>$skips,'@files'=>implode(',',$skipped_files)),WATCHDOG_WARNING);
}
// Clear cache and force refresh of JavaScript translations.
_locale_invalidate_js();
cache()->invalidateTags(array('locale'=>TRUE));
if($strings){
// Clear cache and force refresh of JavaScript translations.