silverstripe-translatable/tests/unit/TranslatableTest.yml
Ingo Schommer d9cf71b91b 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'.
2016-05-19 12:50:42 +12:00

88 lines
2.0 KiB
YAML

Page:
homepage_en:
Title: Home
URLSegment: home
Locale: en_US
testpage_en:
Title: Home
MenuTitle: A Testpage
URLSegment: testpage
Locale: en_US
othertestpage_en:
Title: Other Testpage
MenuTitle: A Testpage
URLSegment: othertestpage
Locale: en_US
parent:
Title: Parent
URLSegment: parent
Locale: en_US
child1:
Title: Child 1
URLSegment: child1
Parent: =>Page.parent
Locale: en_US
child2:
Title: Child 2
URLSegment: child2
Parent: =>Page.parent
Locale: en_US
child3:
Title: Child 3
URLSegment: child3
Parent: =>Page.parent
Locale: en_US
grandchild1:
Title: Grandchild
URLSegment: grandchild1
Parent: =>Page.child1
Locale: en_US
grandchild2:
Title: Grandchild
URLSegment: grandchild2
Parent: =>Page.child1
Locale: en_US
TranslatableTest_DataObject:
testobject_en:
TranslatableProperty: en_US
TranslatableDecoratedProperty: en_US
TranslatableTest_Page:
testpage_en:
Title: En
TranslatableProperty: en_US
URLSegment: testpage-en
Group:
cmseditorgroup:
Code: cmseditorgroup
admingroup:
Code: admingroup
germantranslators:
Code: germantranslators
Member:
cmseditor:
FirstName: Editor
Groups: =>Group.cmseditorgroup
websiteuser:
FirstName: Website User
admin:
FirstName: Admin
Groups: =>Group.admingroup
germantranslator:
FirstName: German
Groups: =>Group.germantranslators
Permission:
admincode:
Code: ADMIN
Group: =>Group.admingroup
cmsmaincode:
Code: CMS_ACCESS_CMSMain
Group: =>Group.cmseditorgroup
translateAllCode:
Code: TRANSLATE_ALL
Group: =>Group.cmseditorgroup
cmsmaincode2:
Code: CMS_ACCESS_CMSMain
Group: =>Group.germantranslators
translateDeCode2:
Code: TRANSLATE_de_DE
Group: =>Group.germantranslators