Skip to content
Snippets Groups Projects
Commit 7242ec24 authored by megachriz's avatar megachriz Committed by MegaChriz
Browse files

Issue #1810442 by David_Rothstein, MegaChriz: Corrected wording on importer...

Issue #1810442 by David_Rothstein, MegaChriz: Corrected wording on importer page when there are no unique fields and when using the CSV parser.
parent fafade6a
No related branches found
No related tags found
No related merge requests found
...@@ -149,7 +149,18 @@ class FeedsCSVParser extends FeedsParser { ...@@ -149,7 +149,18 @@ class FeedsCSVParser extends FeedsParser {
$output = t('Import !csv_files with one or more of these columns: @columns.', array('!csv_files' => l(t('CSV files'), 'http://en.wikipedia.org/wiki/Comma-separated_values'), '@columns' => implode(', ', $sources))); $output = t('Import !csv_files with one or more of these columns: @columns.', array('!csv_files' => l(t('CSV files'), 'http://en.wikipedia.org/wiki/Comma-separated_values'), '@columns' => implode(', ', $sources)));
$items = array(); $items = array();
$items[] = format_plural(count($uniques), 'Column <strong>@columns</strong> is mandatory and considered unique: only one item per @columns value will be created.', 'Columns <strong>@columns</strong> are mandatory and values in these columns are considered unique: only one entry per value in one of these column will be created.', array('@columns' => implode(', ', $uniques))); if ($uniques) {
$items[] = format_plural(count($uniques),
'Column <strong>@columns</strong> is mandatory and considered unique: only one item per @columns value will be created.',
'Columns <strong>@columns</strong> are mandatory and values in these columns are considered unique: only one entry per value in one of these column will be created.',
array(
'@columns' => implode(', ', $uniques),
)
);
}
else {
$items[] = t('No columns are unique. The import will only create new items, no items will be updated.');
}
$items[] = l(t('Download a template'), 'import/' . $this->id . '/template'); $items[] = l(t('Download a template'), 'import/' . $this->id . '/template');
$form['help'] = array( $form['help'] = array(
'#prefix' => '<div class="help">', '#prefix' => '<div class="help">',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment