Remove leftover t() from watchdog messages

6.x
Gábor Hojtsy 2007-06-18 09:41:30 +00:00
parent d209601f54
commit 25b01f6c2e
1 changed files with 4 additions and 4 deletions

View File

@ -2091,14 +2091,14 @@ function _locale_rebuild_js($langcode = NULL) {
if ($filepath) {
// There has already been a translation file before.
if (!empty($language->javascript)) {
watchdog('locale', t('Updated JavaScript translation file for the language %language.', array('%language' => t($language->name))));
watchdog('locale', 'Updated JavaScript translation file for the language %language.', array('%language' => t($language->name)));
}
else {
watchdog('locale', t('Created JavaScript translation file for the language %language.', array('%language' => t($language->name))));
watchdog('locale', 'Created JavaScript translation file for the language %language.', array('%language' => t($language->name)));
}
}
else {
watchdog('locale', t('An error occured during creation of the JavaScript translation file for the language %language.', array('%language' => t($language->name))));
watchdog('locale', 'An error occured during creation of the JavaScript translation file for the language %language.', array('%language' => t($language->name)));
}
}
}
@ -2109,7 +2109,7 @@ function _locale_rebuild_js($langcode = NULL) {
// Delete the old JavaScript file
file_delete(file_create_path(variable_get('locale_js_directory', 'languages') .'/'. $language->language .'_'. $language->javascript .'.js'));
db_query("UPDATE {languages} SET javascript = '' WHERE language = '%s'", $language->language);
watchdog('locale', t('Deleted JavaScript translation file for the locale %language.', array('%language' => t($language->name))));
watchdog('locale', 'Deleted JavaScript translation file for the locale %language.', array('%language' => t($language->name)));
}
}