Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

BUG doSave() and doDelete() should use translated singular name

  • Loading branch information...
commit e020c7be57227dc34b7a6ac9c861d68c9cf4d347 1 parent e66408b
@uniun uniun authored chillu committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 forms/gridfield/GridFieldDetailForm.php
View
4 forms/gridfield/GridFieldDetailForm.php
@@ -419,7 +419,7 @@ public function doSave($data, $form) {
'GridFieldDetailForm.Saved',
'Saved {name} {link}',
array(
- 'name' => $this->record->singular_name(),
+ 'name' => $this->record->i18n_singular_name(),
'link' => $link
)
);
@@ -457,7 +457,7 @@ public function doDelete($data, $form) {
$message = sprintf(
_t('GridFieldDetailForm.Deleted', 'Deleted %s %s'),
- $this->record->singular_name(),
+ $this->record->i18n_singular_name(),
htmlspecialchars($title, ENT_QUOTES)
);
Please sign in to comment.
Something went wrong with that request. Please try again.