mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #8074 from pstaender/patch-2
SINGULARNAME and PLURALNAME are without underscore
This commit is contained in:
commit
fa9c95fc5d
@ -222,8 +222,8 @@ class MyObject extends DataObject implements i18nEntityProvider
|
|||||||
public function provideI18nEntities()
|
public function provideI18nEntities()
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'MyObject.SINGULAR_NAME' => 'object',
|
'MyObject.SINGULARNAME' => 'object',
|
||||||
'MyObject.PLURAL_NAME' => 'objects',
|
'MyObject.PLURALNAME' => 'objects',
|
||||||
'MyObject.PLURALS' => [
|
'MyObject.PLURALS' => [
|
||||||
'one' => 'An object',
|
'one' => 'An object',
|
||||||
'other' => '{count} objects',
|
'other' => '{count} objects',
|
||||||
@ -239,8 +239,8 @@ In YML format this will be expressed as the below. This follows the
|
|||||||
```yaml
|
```yaml
|
||||||
en:
|
en:
|
||||||
MyObject:
|
MyObject:
|
||||||
SINGULAR_NAME: 'object'
|
SINGULARNAME: 'object'
|
||||||
PLURAL_NAME: 'objects'
|
PLURALNAME: 'objects'
|
||||||
PLURALS:
|
PLURALS:
|
||||||
one: 'An object',
|
one: 'An object',
|
||||||
other: '{count} objects'
|
other: '{count} objects'
|
||||||
|
Loading…
Reference in New Issue
Block a user