From 26273bf3719dbcf7c1f57f893acddee76c551d25 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Wed, 7 Feb 2024 10:16:25 +1300 Subject: [PATCH] TLN Update translations (#11125) --- lang/en.yml | 23 +++++++++++++++++++---- src/Dev/DevelopmentAdmin.php | 2 +- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/lang/en.yml b/lang/en.yml index 0b8844c32..adb6d3eb3 100644 --- a/lang/en.yml +++ b/lang/en.yml @@ -25,9 +25,22 @@ en: SilverStripe\Control\RequestProcessor: INVALID_REQUEST: 'Invalid request' REQUEST_ABORTED: 'Request aborted' + SilverStripe\Dev\DevBuildController: + CAN_DEV_BUILD_DESCRIPTION: 'Can execute /dev/build' + CAN_DEV_BUILD_HELP: 'Can execute the build command (/dev/build).' + SilverStripe\Dev\DevConfigController: + CAN_DEV_CONFIG_DESCRIPTION: 'Can view /dev/config' + CAN_DEV_CONFIG_HELP: 'Can view all application configuration (/dev/config).' SilverStripe\Dev\DevConfirmationController: INFO_DESCRIPTION: 'Confirm potentially dangerous operation' INFO_TITLE: 'Security Confirmation' + SilverStripe\Dev\DevelopmentAdmin: + ALL_DEV_ADMIN_DESCRIPTION: 'Can view and execute all /dev endpoints' + ALL_DEV_ADMIN_HELP: 'Can view and execute all /dev endpoints' + PERMISSIONS_CATEGORY: 'Dev permissions' + SilverStripe\Dev\TaskRunner: + BUILDTASK_CAN_RUN_DESCRIPTION: 'Can view and execute all /dev/tasks' + BUILDTASK_CAN_RUN_HELP: 'Can view and execute all Build Tasks (/dev/tasks). This may still be overriden by individual task view permissions' SilverStripe\Forms\CheckboxField: NOANSWER: 'No' YESANSWER: 'Yes' @@ -111,9 +124,9 @@ en: NEW: 'Add new record' NEXT: 'Go to next record' PREVIOUS: 'Go to previous record' - ViewPermissionsFailure: 'It seems you don''t have the necessary permissions to view "{ObjectTitle}"' - SAVETOASTMESSAGE: 'Saved {type} "{title}" successfully.' SAVEDUP: 'Saved successfully.' + SAVETOASTMESSAGE: 'Saved {type} "{title}" successfully.' + ViewPermissionsFailure: 'It seems you don''t have the necessary permissions to view "{ObjectTitle}"' SilverStripe\Forms\GridField\GridFieldEditButton: EDIT: Edit SilverStripe\Forms\GridField\GridFieldFilterHeader: @@ -142,13 +155,15 @@ en: SilverStripe\Forms\NumericField: VALIDATION: "'{value}' is not a number, only numbers can be accepted for this field" SilverStripe\Forms\SearchableDropdownTrait: - SELECT: 'Select...' - TYPE_TO_SEARCH: 'Type to search...' + SELECT: Select... SELECT_OR_TYPE_TO_SEARCH: 'Select or type to search...' + TYPE_TO_SEARCH: 'Type to search...' SilverStripe\Forms\TextField: VALIDATEMAXLENGTH: 'The value for {name} must not exceed {maxLength} characters in length' SilverStripe\Forms\TimeField: VALIDATEFORMAT: 'Please enter a valid time format ({format})' + SilverStripe\Forms\UrlField: + INVALID: 'Please enter a valid URL' SilverStripe\ORM\DataObject: GENERALSEARCH: 'General Search' PLURALNAME: 'Data Objects' diff --git a/src/Dev/DevelopmentAdmin.php b/src/Dev/DevelopmentAdmin.php index fd56bf810..752ae82dd 100644 --- a/src/Dev/DevelopmentAdmin.php +++ b/src/Dev/DevelopmentAdmin.php @@ -282,7 +282,7 @@ TXT; public static function permissionsCategory(): string { - return _t(__CLASS__ . 'PERMISSIONS_CATEGORY', 'Dev permissions'); + return _t(__CLASS__ . '.PERMISSIONS_CATEGORY', 'Dev permissions'); } protected function canViewAll(): bool