diff --git a/.github/workflows/dispatch-ci.yml b/.github/workflows/dispatch-ci.yml new file mode 100644 index 000000000..d9091c496 --- /dev/null +++ b/.github/workflows/dispatch-ci.yml @@ -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 diff --git a/lang/en.yml b/lang/en.yml index a2b7601a8..c4155571b 100644 --- a/lang/en.yml +++ b/lang/en.yml @@ -1,6 +1,4 @@ en: - DataObject: - php.SilverStripe\ORM\DataObjectGENERALSEARCH: 'General Search' SilverStripe\AssetAdmin\Forms\UploadField: Dimensions: Dimensions EDIT: Edit diff --git a/lang/eo.yml b/lang/eo.yml index f604c0fe8..0a65dc04e 100644 --- a/lang/eo.yml +++ b/lang/eo.yml @@ -369,6 +369,3 @@ eo: PASSWORDRESETSENTTEXT: 'Dankon. Reagorda ligilo sendiĝis, kondiĉe ke konto ekzistas por ĉi tiu retadreso.' SilverStripe\View\Shortcodes\EmbedShortcodeProvider: INVALID_URL: 'Okazis problemo ŝargi la aŭdvidaĵon.' - DataObject: - php: - SilverStripe\ORM\DataObjectGENERALSEARCH: 'Ĝenerala serĉo' diff --git a/lang/nl.yml b/lang/nl.yml index 2fc503fd2..d0fb5a4be 100644 --- a/lang/nl.yml +++ b/lang/nl.yml @@ -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.' SilverStripe\View\Shortcodes\EmbedShortcodeProvider: INVALID_URL: 'Het inladen van de media-bestanden is mislukt.' - DataObject: - php: - SilverStripe\ORM\DataObjectGENERALSEARCH: 'Alles doorzoeken' diff --git a/src/ORM/DataObject.php b/src/ORM/DataObject.php index 9d92c4086..cdb804206 100644 --- a/src/ORM/DataObject.php +++ b/src/ORM/DataObject.php @@ -2474,7 +2474,7 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity if ($fields->fieldByName($generalSearch) || $fields->dataFieldByName($generalSearch)) { 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;