mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge branch '5.1' into 5
This commit is contained in:
commit
f22282acb2
@ -103,7 +103,7 @@ en:
|
|||||||
Create: Create
|
Create: Create
|
||||||
Delete: Delete
|
Delete: Delete
|
||||||
DeletePermissionsFailure: 'No delete permissions'
|
DeletePermissionsFailure: 'No delete permissions'
|
||||||
Deleted: 'Deleted {type} {name}'
|
Deleted: 'Deleted {type} "{name}"'
|
||||||
Save: Save
|
Save: Save
|
||||||
Saved: 'Saved {name} {link}'
|
Saved: 'Saved {name} {link}'
|
||||||
SilverStripe\Forms\GridField\GridFieldDetailForm_ItemRequest:
|
SilverStripe\Forms\GridField\GridFieldDetailForm_ItemRequest:
|
||||||
@ -112,6 +112,8 @@ en:
|
|||||||
NEXT: 'Go to next record'
|
NEXT: 'Go to next record'
|
||||||
PREVIOUS: 'Go to previous record'
|
PREVIOUS: 'Go to previous record'
|
||||||
ViewPermissionsFailure: 'It seems you don''t have the necessary permissions to view "{ObjectTitle}"'
|
ViewPermissionsFailure: 'It seems you don''t have the necessary permissions to view "{ObjectTitle}"'
|
||||||
|
SAVETOASTMESSAGE: 'Saved {type} "{title}" successfully.'
|
||||||
|
SAVEDUP: 'Saved successfully.'
|
||||||
SilverStripe\Forms\GridField\GridFieldEditButton:
|
SilverStripe\Forms\GridField\GridFieldEditButton:
|
||||||
EDIT: Edit
|
EDIT: Edit
|
||||||
SilverStripe\Forms\GridField\GridFieldFilterHeader:
|
SilverStripe\Forms\GridField\GridFieldFilterHeader:
|
||||||
|
26
lang/nl.yml
26
lang/nl.yml
@ -13,9 +13,9 @@ nl:
|
|||||||
HELLO: Hallo
|
HELLO: Hallo
|
||||||
SilverStripe\Control\Email\ForgotPasswordEmail_ss:
|
SilverStripe\Control\Email\ForgotPasswordEmail_ss:
|
||||||
HELLO: Hallo
|
HELLO: Hallo
|
||||||
TEXT1: 'Je hebt aangegeven je wachtwoord te zijn vergeten. Klik op de'
|
TEXT1: 'Je hebt aangegeven je wachtwoord te zijn vergeten. Klik op de knop '
|
||||||
TEXT2: 'onderstaande link'
|
TEXT2: 'herstel wachtwoord'
|
||||||
TEXT3: 'om je wachtwoord opnieuw in te stellen voor '
|
TEXT3: ', om je wachtwoord opnieuw in te stellen voor '
|
||||||
SilverStripe\Control\Middleware\ConfirmationMiddleware\GetParameter:
|
SilverStripe\Control\Middleware\ConfirmationMiddleware\GetParameter:
|
||||||
CONFIRMATION_NAME: '"{key}" GET parameter'
|
CONFIRMATION_NAME: '"{key}" GET parameter'
|
||||||
SilverStripe\Control\Middleware\ConfirmationMiddleware\Url:
|
SilverStripe\Control\Middleware\ConfirmationMiddleware\Url:
|
||||||
@ -151,6 +151,8 @@ nl:
|
|||||||
one: 'Data object'
|
one: 'Data object'
|
||||||
other: '{count} Data objecten'
|
other: '{count} Data objecten'
|
||||||
SINGULARNAME: 'Data object'
|
SINGULARNAME: 'Data object'
|
||||||
|
many_many_FileTracking: 'Bestanden volgen'
|
||||||
|
many_many_LinkTracking: 'Links volgen'
|
||||||
SilverStripe\ORM\FieldType\DBBoolean:
|
SilverStripe\ORM\FieldType\DBBoolean:
|
||||||
ANY: Elke
|
ANY: Elke
|
||||||
NOANSWER: Nee
|
NOANSWER: Nee
|
||||||
@ -236,11 +238,20 @@ nl:
|
|||||||
SINGULARNAME: Groep
|
SINGULARNAME: Groep
|
||||||
Sort: Sorteer-richting
|
Sort: Sorteer-richting
|
||||||
ValidationIdentifierAlreadyExists: 'Er bestaat al een groep ({group}) met eenzelfde {identifier}'
|
ValidationIdentifierAlreadyExists: 'Er bestaat al een groep ({group}) met eenzelfde {identifier}'
|
||||||
|
db_AccessAllSubsites: 'Toegang tot alle subsites'
|
||||||
|
db_Code: Code
|
||||||
|
db_DN: DN
|
||||||
db_Description: Omschrijving
|
db_Description: Omschrijving
|
||||||
|
db_GUID: GUID
|
||||||
|
db_HtmlEditorConfig: 'HTML editor config'
|
||||||
|
db_LastSynced: 'Laatst gesynchroniseerd'
|
||||||
|
db_Locked: Vergrendeld
|
||||||
db_Sort: Volgorde
|
db_Sort: Volgorde
|
||||||
db_Title: Titel
|
db_Title: Titel
|
||||||
has_many_Groups: Groepen
|
has_many_Groups: Groepen
|
||||||
|
has_many_LDAPGroupMappings: 'LDAP group mappings'
|
||||||
has_many_Permissions: Rechten
|
has_many_Permissions: Rechten
|
||||||
|
has_one_Parent: Bovenliggende
|
||||||
many_many_Members: Leden
|
many_many_Members: Leden
|
||||||
many_many_Roles: Rollen
|
many_many_Roles: Rollen
|
||||||
many_many_Subsites: Subsites
|
many_many_Subsites: Subsites
|
||||||
@ -254,6 +265,7 @@ nl:
|
|||||||
other: '{count} inlogpogingen'
|
other: '{count} inlogpogingen'
|
||||||
SINGULARNAME: Inlogpogingen
|
SINGULARNAME: Inlogpogingen
|
||||||
Status: Status
|
Status: Status
|
||||||
|
db_IP: IP
|
||||||
db_Status: Status
|
db_Status: Status
|
||||||
has_one_Member: Lid
|
has_one_Member: Lid
|
||||||
SilverStripe\Security\Member:
|
SilverStripe\Security\Member:
|
||||||
@ -286,7 +298,7 @@ nl:
|
|||||||
PLURALS:
|
PLURALS:
|
||||||
one: 'Een lid'
|
one: 'Een lid'
|
||||||
other: '{count} leden'
|
other: '{count} leden'
|
||||||
RequiresPasswordChangeOnNextLogin: 'Wachtwoord veranderen is verplicht bij volgende aanmelding'
|
RequiresPasswordChangeOnNextLogin: 'Vereist wachtwoordwijziging bij volgende aanmelding'
|
||||||
SINGULARNAME: Lid
|
SINGULARNAME: Lid
|
||||||
SUBJECTPASSWORDCHANGED: 'Je wachtwoord is aangepast'
|
SUBJECTPASSWORDCHANGED: 'Je wachtwoord is aangepast'
|
||||||
SUBJECTPASSWORDRESET: 'Je wachtwoord opnieuw instellen'
|
SUBJECTPASSWORDRESET: 'Je wachtwoord opnieuw instellen'
|
||||||
@ -297,8 +309,11 @@ nl:
|
|||||||
WELCOMEBACK: 'Welkom terug, {firstname}'
|
WELCOMEBACK: 'Welkom terug, {firstname}'
|
||||||
YOUROLDPASSWORD: 'Je oude wachtwoord'
|
YOUROLDPASSWORD: 'Je oude wachtwoord'
|
||||||
belongs_many_many_Groups: Groepen
|
belongs_many_many_Groups: Groepen
|
||||||
|
db_AccountResetExpired: 'Het opnieuw instellen van het account is verlopen'
|
||||||
db_Email: E-mail
|
db_Email: E-mail
|
||||||
db_FirstName: Voornaam
|
db_FirstName: Voornaam
|
||||||
|
db_GUID: GUID
|
||||||
|
db_LastSynced: 'Laatst gesynchroniseerd'
|
||||||
db_Locale: 'Interface taal'
|
db_Locale: 'Interface taal'
|
||||||
db_LockedOutUntil: 'Gesloten tot'
|
db_LockedOutUntil: 'Gesloten tot'
|
||||||
db_Password: Wachtwoord
|
db_Password: Wachtwoord
|
||||||
@ -340,6 +355,7 @@ nl:
|
|||||||
other: '{count} rechten'
|
other: '{count} rechten'
|
||||||
SINGULARNAME: Machtiging
|
SINGULARNAME: Machtiging
|
||||||
UserPermissionsIntro: 'Groepen aan deze gebruiker toewijzen zullen diens permissies aanpassen. Zie de sectie Groepen voor meer informatie over machtigingen voor afzonderlijke groepen.'
|
UserPermissionsIntro: 'Groepen aan deze gebruiker toewijzen zullen diens permissies aanpassen. Zie de sectie Groepen voor meer informatie over machtigingen voor afzonderlijke groepen.'
|
||||||
|
db_Code: Code
|
||||||
db_Type: 'Soort veld'
|
db_Type: 'Soort veld'
|
||||||
has_one_Group: Groep
|
has_one_Group: Groep
|
||||||
SilverStripe\Security\PermissionCheckboxSetField:
|
SilverStripe\Security\PermissionCheckboxSetField:
|
||||||
@ -365,6 +381,7 @@ nl:
|
|||||||
other: '{count} permissiecodes'
|
other: '{count} permissiecodes'
|
||||||
PermsError: 'U moet (ADMIN) rechten hebben om de code "{code}" toe te kennen'
|
PermsError: 'U moet (ADMIN) rechten hebben om de code "{code}" toe te kennen'
|
||||||
SINGULARNAME: Permissiecode
|
SINGULARNAME: Permissiecode
|
||||||
|
db_Code: Code
|
||||||
has_one_Role: Rol
|
has_one_Role: Rol
|
||||||
SilverStripe\Security\RememberLoginHash:
|
SilverStripe\Security\RememberLoginHash:
|
||||||
PLURALNAME: 'Versleutelde logins'
|
PLURALNAME: 'Versleutelde logins'
|
||||||
@ -372,6 +389,7 @@ nl:
|
|||||||
one: 'Een versleutelde login'
|
one: 'Een versleutelde login'
|
||||||
other: '{count} loginsleutels'
|
other: '{count} loginsleutels'
|
||||||
SINGULARNAME: Loginsleutel
|
SINGULARNAME: Loginsleutel
|
||||||
|
has_one_LoginSession: inlogsessie
|
||||||
has_one_Member: Lid
|
has_one_Member: Lid
|
||||||
SilverStripe\Security\Security:
|
SilverStripe\Security\Security:
|
||||||
ALREADYLOGGEDIN: 'U hebt geen toegang tot deze pagina. Als u een andere account met de nodige rechten hebt, kan u hieronder opnieuw inloggen.'
|
ALREADYLOGGEDIN: 'U hebt geen toegang tot deze pagina. Als u een andere account met de nodige rechten hebt, kan u hieronder opnieuw inloggen.'
|
||||||
|
@ -8,6 +8,7 @@ use SilverStripe\Control\Controller;
|
|||||||
use SilverStripe\Control\HTTPRequest;
|
use SilverStripe\Control\HTTPRequest;
|
||||||
use SilverStripe\Control\HTTPResponse;
|
use SilverStripe\Control\HTTPResponse;
|
||||||
use SilverStripe\Control\RequestHandler;
|
use SilverStripe\Control\RequestHandler;
|
||||||
|
use SilverStripe\Core\Convert;
|
||||||
use SilverStripe\Forms\CompositeField;
|
use SilverStripe\Forms\CompositeField;
|
||||||
use SilverStripe\Forms\FieldList;
|
use SilverStripe\Forms\FieldList;
|
||||||
use SilverStripe\Forms\Form;
|
use SilverStripe\Forms\Form;
|
||||||
@ -535,6 +536,18 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler
|
|||||||
|
|
||||||
$form->sessionMessage($message, 'good', ValidationResult::CAST_HTML);
|
$form->sessionMessage($message, 'good', ValidationResult::CAST_HTML);
|
||||||
|
|
||||||
|
$message = _t(
|
||||||
|
__CLASS__ . '.SAVETOASTMESSAGE',
|
||||||
|
'Saved {type} "{title}" successfully.',
|
||||||
|
[
|
||||||
|
'type' => $this->record->i18n_singular_name(),
|
||||||
|
'title' => Convert::raw2xml($this->record->Title)
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
|
$controller = $this->getToplevelController();
|
||||||
|
$controller->getResponse()->addHeader('X-Status', $message);
|
||||||
|
|
||||||
// Redirect after save
|
// Redirect after save
|
||||||
return $this->redirectAfterSave($isNewRecord);
|
return $this->redirectAfterSave($isNewRecord);
|
||||||
}
|
}
|
||||||
@ -698,6 +711,8 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler
|
|||||||
} elseif ($this->gridField->getList()->byID($this->record->ID)) {
|
} elseif ($this->gridField->getList()->byID($this->record->ID)) {
|
||||||
// Return new view, as we can't do a "virtual redirect" via the CMS Ajax
|
// Return new view, as we can't do a "virtual redirect" via the CMS Ajax
|
||||||
// to the same URL (it assumes that its content is already current, and doesn't reload)
|
// to the same URL (it assumes that its content is already current, and doesn't reload)
|
||||||
|
$message = $controller->getResponse()->getHeader('X-Status') ?? rawurlencode(_t(__CLASS__ . '.SAVEDUP', 'Saved successfully') ?? '');
|
||||||
|
$controller->getResponse()->addHeader('X-Status', $message);
|
||||||
return $this->edit($controller->getRequest());
|
return $this->edit($controller->getRequest());
|
||||||
} else {
|
} else {
|
||||||
// We might be able to redirect to open the record in a different view
|
// We might be able to redirect to open the record in a different view
|
||||||
@ -774,7 +789,7 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler
|
|||||||
|
|
||||||
$message = _t(
|
$message = _t(
|
||||||
'SilverStripe\\Forms\\GridField\\GridFieldDetailForm.Deleted',
|
'SilverStripe\\Forms\\GridField\\GridFieldDetailForm.Deleted',
|
||||||
'Deleted {type} {name}',
|
'Deleted {type} "{name}"',
|
||||||
[
|
[
|
||||||
'type' => $this->record->i18n_singular_name(),
|
'type' => $this->record->i18n_singular_name(),
|
||||||
'name' => htmlspecialchars($title ?? '', ENT_QUOTES)
|
'name' => htmlspecialchars($title ?? '', ENT_QUOTES)
|
||||||
@ -792,6 +807,7 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler
|
|||||||
//when an item is deleted, redirect to the parent controller
|
//when an item is deleted, redirect to the parent controller
|
||||||
$controller = $this->getToplevelController();
|
$controller = $this->getToplevelController();
|
||||||
$controller->getRequest()->addHeader('X-Pjax', 'Content'); // Force a content refresh
|
$controller->getRequest()->addHeader('X-Pjax', 'Content'); // Force a content refresh
|
||||||
|
$controller->getResponse()->addHeader('X-Status', $message);
|
||||||
|
|
||||||
return $controller->redirect($this->getBackLink(), 302); //redirect back to admin section
|
return $controller->redirect($this->getBackLink(), 302); //redirect back to admin section
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user