Commit 25b01f6c authored by Gábor Hojtsy's avatar Gábor Hojtsy

Remove leftover t() from watchdog messages

parent d209601f
......@@ -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)));
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment