Skip to content

Commit

Permalink
Missing translations
Browse files Browse the repository at this point in the history
  • Loading branch information
elvinas-liut committed Jan 14, 2015
1 parent 739d183 commit c7851da
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/GridFieldCopyButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function handleAction(GridField $gridField, $actionName, $arguments, $dat
if($actionName == 'copyrecord'){
$item = $gridField->getList()->byID($arguments['RecordID']);
if(!$item) return;

if(!$item->canCreate()) {
throw new ValidationException(
_t('GridFieldAction_Copy.CreatePermissionsFailure',"No create permissions"),0);
Expand All @@ -58,7 +58,7 @@ public function handleAction(GridField $gridField, $actionName, $arguments, $dat
if (!$clone || $clone->ID < 1) {
user_error("Error Duplicating!", E_USER_ERROR);
}
}
}
}

}
3 changes: 3 additions & 0 deletions lang/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ en:
GridAction:
COPY_DESCRIPTION: 'Copy'
Copy: 'Copy'

GridFieldAction_Copy:
CreatePermissionsFailure: 'No create permissions'
3 changes: 3 additions & 0 deletions lang/lt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ lt:
GridAction:
COPY_DESCRIPTION: 'Kopijuoti'
Copy: 'Kopijuoti'

GridFieldAction_Copy:
CreatePermissionsFailure: 'Neturite teisių sukurti/kopijuoti įrašą'

0 comments on commit c7851da

Please sign in to comment.