From e817a013d80a1453ecfaabdfc966a777a45903d1 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 11 Dec 2008 03:37:58 +0000 Subject: [PATCH] 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 --- code/ModelAdmin.php | 2 +- lang/en_US.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/ModelAdmin.php b/code/ModelAdmin.php index 7ed421ce..5af28666 100644 --- a/code/ModelAdmin.php +++ b/code/ModelAdmin.php @@ -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( diff --git a/lang/en_US.php b/lang/en_US.php index 72d79b56..5fda2b05 100755 --- a/lang/en_US.php +++ b/lang/en_US.php @@ -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';