Merge pull request #8074 from pstaender/patch-2

SINGULARNAME and PLURALNAME are without underscore
This commit is contained in:
Robbie Averill 2018-05-18 09:35:18 +12:00 committed by GitHub
commit fa9c95fc5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -222,8 +222,8 @@ class MyObject extends DataObject implements i18nEntityProvider
public function provideI18nEntities()
{
return [
'MyObject.SINGULAR_NAME' => 'object',
'MyObject.PLURAL_NAME' => 'objects',
'MyObject.SINGULARNAME' => 'object',
'MyObject.PLURALNAME' => 'objects',
'MyObject.PLURALS' => [
'one' => 'An object',
'other' => '{count} objects',
@ -239,8 +239,8 @@ In YML format this will be expressed as the below. This follows the
```yaml
en:
MyObject:
SINGULAR_NAME: 'object'
PLURAL_NAME: 'objects'
SINGULARNAME: 'object'
PLURALNAME: 'objects'
PLURALS:
one: 'An object',
other: '{count} objects'