Fix translation key for DataObject.GENERALSEARCH (#10805)

* MNT Use gha-dispatch-ci

* Update DataObject.php

Fix typo in GENERALSEARCH localisation

* Update en.yml

remove unnecessary localisation line

* Update nl.yml

remove unnecessary localisation line

* Update eo.yml

remove unnecessary localisation line

* Update ci.yml
This commit is contained in:
Bram de Leeuw 2023-06-09 03:44:00 +02:00 committed by GitHub
parent a211b5eeb5
commit 33c62033fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 17 additions and 9 deletions

16
.github/workflows/dispatch-ci.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: Dispatch CI
on:
# At 2:20 PM UTC, only on Tuesday and Wednesday
schedule:
- cron: '20 14 * * 2,3'
jobs:
dispatch-ci:
name: Dispatch CI
# Only run cron on the silverstripe account
if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
runs-on: ubuntu-latest
steps:
- name: Dispatch CI
uses: silverstripe/gha-dispatch-ci@v1

View File

@ -1,6 +1,4 @@
en: en:
DataObject:
php.SilverStripe\ORM\DataObjectGENERALSEARCH: 'General Search'
SilverStripe\AssetAdmin\Forms\UploadField: SilverStripe\AssetAdmin\Forms\UploadField:
Dimensions: Dimensions Dimensions: Dimensions
EDIT: Edit EDIT: Edit

View File

@ -369,6 +369,3 @@ eo:
PASSWORDRESETSENTTEXT: 'Dankon. Reagorda ligilo sendiĝis, kondiĉe ke konto ekzistas por ĉi tiu retadreso.' PASSWORDRESETSENTTEXT: 'Dankon. Reagorda ligilo sendiĝis, kondiĉe ke konto ekzistas por ĉi tiu retadreso.'
SilverStripe\View\Shortcodes\EmbedShortcodeProvider: SilverStripe\View\Shortcodes\EmbedShortcodeProvider:
INVALID_URL: 'Okazis problemo ŝargi la aŭdvidaĵon.' INVALID_URL: 'Okazis problemo ŝargi la aŭdvidaĵon.'
DataObject:
php:
SilverStripe\ORM\DataObjectGENERALSEARCH: 'Ĝenerala serĉo'

View File

@ -369,6 +369,3 @@ nl:
PASSWORDRESETSENTTEXT: 'Bedankt! Er is een e-mail verstuurd om je wachtwoord opnieuw in te stellen - mits het e-mailadres reeds bekend is bij ons.' PASSWORDRESETSENTTEXT: 'Bedankt! Er is een e-mail verstuurd om je wachtwoord opnieuw in te stellen - mits het e-mailadres reeds bekend is bij ons.'
SilverStripe\View\Shortcodes\EmbedShortcodeProvider: SilverStripe\View\Shortcodes\EmbedShortcodeProvider:
INVALID_URL: 'Het inladen van de media-bestanden is mislukt.' INVALID_URL: 'Het inladen van de media-bestanden is mislukt.'
DataObject:
php:
SilverStripe\ORM\DataObjectGENERALSEARCH: 'Alles doorzoeken'

View File

@ -2474,7 +2474,7 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
if ($fields->fieldByName($generalSearch) || $fields->dataFieldByName($generalSearch)) { if ($fields->fieldByName($generalSearch) || $fields->dataFieldByName($generalSearch)) {
throw new LogicException('General search field name must be unique.'); throw new LogicException('General search field name must be unique.');
} }
$fields->unshift(HiddenField::create($generalSearch, _t(self::class . 'GENERALSEARCH', 'General Search'))); $fields->unshift(HiddenField::create($generalSearch, _t(self::class . '.GENERALSEARCH', 'General Search')));
} }
return $fields; return $fields;