Merge pull request #741 from mateusz/rollback-messages

Update doRollback messages to work well with the new reverts.
This commit is contained in:
Sean Harvey 2013-05-15 16:11:58 -07:00
commit 38c025f8ba
2 changed files with 6 additions and 7 deletions

View File

@ -1092,15 +1092,14 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
if($version) {
$record->doRollbackTo($version);
$message = _t(
'CMSMain.ROLLEDBACKVERSION',
"Rolled back to version #%d. New version number is #%d",
array('version' => $data['Version'], 'versionnew' => $record->Version)
'CMSMain.ROLLEDBACKVERSIONv2',
"Rolled back to version #%d.",
array('version' => $data['Version'])
);
} else {
$record->doRollbackTo('Live');
$message = _t(
'CMSMain.ROLLEDBACKPUB',"Rolled back to published version. New version number is #{version}",
array('version' => $record->Version)
'CMSMain.ROLLEDBACKPUBv2',"Rolled back to published version."
);
}

View File

@ -101,8 +101,8 @@ en:
RESTORE: Restore
RESTORED: 'Restored ''{title}'' successfully'
ROLLBACK: 'Roll back to this version'
ROLLEDBACKPUB: 'Rolled back to published version. New version number is #{version}'
ROLLEDBACKVERSION: 'Rolled back to version #%d. New version number is #%d'
ROLLEDBACKPUBv2: 'Rolled back to published version.'
ROLLEDBACKVERSIONv2: 'Rolled back to version #%d.'
SAVE: Save
SAVEDRAFT: 'Save Draft'
TabContent: Content