Skip to content

Commit

Permalink
Fix translation key for DataObject.GENERALSEARCH (#10805)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
TheBnl committed Jun 9, 2023
1 parent a211b5e commit 33c6203
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 9 deletions.
16 changes: 16 additions & 0 deletions .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
2 changes: 0 additions & 2 deletions lang/en.yml
@@ -1,6 +1,4 @@
en:
DataObject:
php.SilverStripe\ORM\DataObjectGENERALSEARCH: 'General Search'
SilverStripe\AssetAdmin\Forms\UploadField:
Dimensions: Dimensions
EDIT: Edit
Expand Down
3 changes: 0 additions & 3 deletions lang/eo.yml
Expand Up @@ -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'
3 changes: 0 additions & 3 deletions lang/nl.yml
Expand Up @@ -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'
2 changes: 1 addition & 1 deletion src/ORM/DataObject.php
Expand Up @@ -2474,7 +2474,7 @@ public function scaffoldSearchFields($_params = null)
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;
Expand Down

0 comments on commit 33c6203

Please sign in to comment.