mirror of
https://github.com/silverstripe/silverstripe-translatable
synced 2024-10-22 11:05:59 +02:00
Consistently add Locale to test fixtures (fixes #223)
Technically this should be fixed by changing the logic in Translatable::get_extra_config(), which modifies the 'defaults' configuration on the objects it applies to. Since this is called very early during the configuration bootstrap, it sets whatever the current value of Translatable::get_default_locale() is there. Any changes at a later time don't affect newly created objects, even Translatable::reset() doesn't alter the initially configured 'defaults'.
This commit is contained in:
parent
29713e9d81
commit
d9cf71b91b
@ -16,26 +16,32 @@ Page:
|
|||||||
parent:
|
parent:
|
||||||
Title: Parent
|
Title: Parent
|
||||||
URLSegment: parent
|
URLSegment: parent
|
||||||
|
Locale: en_US
|
||||||
child1:
|
child1:
|
||||||
Title: Child 1
|
Title: Child 1
|
||||||
URLSegment: child1
|
URLSegment: child1
|
||||||
Parent: =>Page.parent
|
Parent: =>Page.parent
|
||||||
|
Locale: en_US
|
||||||
child2:
|
child2:
|
||||||
Title: Child 2
|
Title: Child 2
|
||||||
URLSegment: child2
|
URLSegment: child2
|
||||||
Parent: =>Page.parent
|
Parent: =>Page.parent
|
||||||
|
Locale: en_US
|
||||||
child3:
|
child3:
|
||||||
Title: Child 3
|
Title: Child 3
|
||||||
URLSegment: child3
|
URLSegment: child3
|
||||||
Parent: =>Page.parent
|
Parent: =>Page.parent
|
||||||
|
Locale: en_US
|
||||||
grandchild1:
|
grandchild1:
|
||||||
Title: Grandchild
|
Title: Grandchild
|
||||||
URLSegment: grandchild1
|
URLSegment: grandchild1
|
||||||
Parent: =>Page.child1
|
Parent: =>Page.child1
|
||||||
|
Locale: en_US
|
||||||
grandchild2:
|
grandchild2:
|
||||||
Title: Grandchild
|
Title: Grandchild
|
||||||
URLSegment: grandchild2
|
URLSegment: grandchild2
|
||||||
Parent: =>Page.child1
|
Parent: =>Page.child1
|
||||||
|
Locale: en_US
|
||||||
TranslatableTest_DataObject:
|
TranslatableTest_DataObject:
|
||||||
testobject_en:
|
testobject_en:
|
||||||
TranslatableProperty: en_US
|
TranslatableProperty: en_US
|
||||||
|
Loading…
Reference in New Issue
Block a user