mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUGFIX Fixed ModelAdmin import success message (too few arguments for sprintf())
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@68331 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
709e352bbc
commit
e817a013d8
@ -436,7 +436,7 @@ class ModelAdmin_CollectionController extends Controller {
|
||||
|
||||
$message = '';
|
||||
if($results->CreatedCount()) $message .= sprintf(
|
||||
_t('ModelAdmin.IMPORTEDRECORDS', "Imported %s %s."),
|
||||
_t('ModelAdmin.IMPORTEDRECORDS', "Imported %s records."),
|
||||
$results->CreatedCount()
|
||||
);
|
||||
if($results->UpdatedCount()) $message .= sprintf(
|
||||
|
@ -354,7 +354,7 @@ $lang['en_US']['ModelAdmin']['FOUNDRESULTS'] = 'Your search found %s matching it
|
||||
$lang['en_US']['ModelAdmin']['GOBACK'] = 'Back';
|
||||
$lang['en_US']['ModelAdmin']['GOFORWARD'] = 'Forward';
|
||||
$lang['en_US']['ModelAdmin']['IMPORT'] = 'Import from CSV';
|
||||
$lang['en_US']['ModelAdmin']['IMPORTEDRECORDS'] = 'Imported %s %s.';
|
||||
$lang['en_US']['ModelAdmin']['IMPORTEDRECORDS'] = 'Imported %s records.';
|
||||
$lang['en_US']['ModelAdmin']['ITEMNOTFOUND'] = 'I can\'t find that item';
|
||||
$lang['en_US']['ModelAdmin']['LOADEDFOREDITING'] = 'Loaded \'%s\' for editing.';
|
||||
$lang['en_US']['ModelAdmin']['NOCSVFILE'] = 'Please browse for a CSV file to import';
|
||||
|
Loading…
Reference in New Issue
Block a user