Skip to content

Commit

Permalink
Merge branch '5.0' into 5
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 13, 2025
2 parents b6710c8 + 083c9c8 commit 2976ec0
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 4 deletions.
14 changes: 14 additions & 0 deletions client/lang/it.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// This file was generated by silverstripe/tx-translator from client/lang/src/it.json.
// See https://github.com/silverstripe/silverstripe-tx-translator for details
if (typeof(ss) === 'undefined' || typeof(ss.i18n) === 'undefined') {
if (typeof(console) !== 'undefined') { // eslint-disable-line no-console
console.error('Class ss.i18n not defined'); // eslint-disable-line no-console
}
} else {
ss.i18n.addDictionary('it', {
"GridFieldExtensions.ADD_CLASS": "Aggiungi: <i>{classname}</i>",
"GridFieldExtensions.CONFIRMDEL": "Sei sicuro di volerlo eliminare?",
"GridFieldExtensions.OPEN_SEARCH_FILTER": "Apri ricerca e filtraggio",
"GridFieldExtensions.SAVE_PUBLISH": "Salva & pubblica"
});
}
6 changes: 6 additions & 0 deletions client/lang/src/it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"GridFieldExtensions.ADD_CLASS": "Aggiungi: <i>{classname}</i>",
"GridFieldExtensions.CONFIRMDEL": "Sei sicuro di volerlo eliminare?",
"GridFieldExtensions.OPEN_SEARCH_FILTER": "Apri ricerca e filtraggio",
"GridFieldExtensions.SAVE_PUBLISH": "Salva & pubblica"
}
18 changes: 18 additions & 0 deletions lang/it.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
it:
GridFieldExtensions:
ADD: Aggiungi
ADDEXISTING: 'Aggiungi Esistente'
BACK: Indietro
CURRENT: (attuale)
NOITEMS: 'Non ci sono elementi.'
Next: Prossimo
PREVIOUS: Precedente
RESULTS: Risultati
SEARCH: Ricerca
SELECTTYPETOCREATE: '(Seleziona tipo per creare)'
Symbiote\GridFieldExtensions\Extensions\GridFieldDetailFormItemRequestExtension:
NEW: 'Aggiungi nuovo record'
Symbiote\GridFieldExtensions\GridFieldConfigurablePaginator:
SHOW: Mostra
Symbiote\GridFieldExtensions\GridFieldOrderableRows:
REORDERED: 'Record riordinati.'
2 changes: 1 addition & 1 deletion src/GridFieldAddNewInlineButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ private function getRowTemplate(GridField $grid, GridFieldEditableColumns $edita
public function handleSave(GridField $grid, DataObjectInterface $record)
{
$list = $grid->getList();
$value = $grid->Value();
$value = $grid->getValue();

if (!isset($value[GridFieldAddNewInlineButton::POST_KEY])
|| !is_array($value[GridFieldAddNewInlineButton::POST_KEY])
Expand Down
2 changes: 1 addition & 1 deletion src/GridFieldEditableColumns.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function handleSave(GridField $grid, DataObjectInterface $record)
{
/** @var DataList $list */
$list = $grid->getList();
$value = $grid->Value();
$value = $grid->getValue();

if (!isset($value[GridFieldEditableColumns::POST_KEY])
|| !is_array($value[GridFieldEditableColumns::POST_KEY])
Expand Down
2 changes: 1 addition & 1 deletion src/GridFieldNestedForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ public function ToggleLink($action = null): string
public function handleSave(GridField $gridField, DataObjectInterface $record)
{
$postKey = GridFieldNestedForm::POST_KEY;
$value = $gridField->Value();
$value = $gridField->getValue();
if (isset($value['GridState']) && $value['GridState']) {
// set grid state from value, to store open/closed toggle state for nested forms
$gridField->getState(false)->setValue($value['GridState']);
Expand Down
2 changes: 1 addition & 1 deletion src/GridFieldOrderableRows.php
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ public function handleMoveToPage(GridField $grid, $request)
public function handleSave(GridField $grid, DataObjectInterface $record)
{
if (!$this->immediateUpdate) {
$value = $grid->Value();
$value = $grid->getValue();
$sortedIDs = $this->getSortedIDs($value);
if ($sortedIDs) {
$this->executeReorder($grid, $sortedIDs);
Expand Down

0 comments on commit 2976ec0

Please sign in to comment.