Commit 6dd4ea01 authored by Dries's avatar Dries

- Patch #103784 by Gabor: fixed translation problems.

parent c1f9032c
......@@ -383,7 +383,7 @@ function node_type_delete_confirm($type) {
$num_nodes = db_num_rows(db_query("SELECT * FROM {node} WHERE type = '%s'", $type->type));
if ($num_nodes) {
$caption .= '<p>'. t('<strong>Warning:</strong> there %are currently %num_nodes %type %nodes on your site. %they may not be able to be displayed or edited correctly, once you have removed this content type.', array('%are' => format_plural($num_nodes, 'is', 'are'), '%num_nodes' => $num_nodes, '%type' => $type->name, '%nodes' => format_plural($num_nodes, 'node', 'nodes'), '%they' => format_plural($num_nodes, 'It', 'They'))) .'</p>';
$caption .= '<p>'. strtr(format_plural($num_nodes, '<strong>Warning:</strong> there is currently @count %type node on your site. It may not be able to be displayed or edited correctly, once you have removed this content type.', '<strong>Warning:</strong> there are currently @count %type nodes on your site. They may not be able to be displayed or edited correctly, once you have removed this content type.'), array('%type' => theme('placeholder', $type->name))) .'</p>';
}
$caption .= '<p>'. t('This action cannot be undone.') .'</p>';
......
......@@ -1399,9 +1399,8 @@ function system_modules_confirm_form($modules, $form_values = array()) {
$t_argument = array(
'%module' => $modules[$name]->info['name'],
'%dependencies' => implode(', ', $missing_dependencies),
'!modules' => format_plural(count($missing_dependencies), ' module', ' modules'),
);
$items[] = t('You must enable the %dependencies !modules to install %module.', $t_argument);
$items[] = strtr(format_plural(count($missing_dependencies), 'You must enable the %dependencies module to install %module.', 'You must enable the %dependencies modules to install %module.'), $t_argument);
}
$form['text'] = array('#value' => theme('item_list', $items));
}
......
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