mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
84db28eb10
FEATURE Making DataObject attributes translatable through i18n class, e.g. $db and all relation statics. Use DataObject->fieldLabels() to access translated attributes. ENHANCEMENT Ignoring entity-names with $ signs (most likely dynamic properties) in i18nTextCollector->collectFromCode() git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64881 467b73ca-7a2a-4603-9d3b-597d59a354a9
20 lines
363 B
PHP
20 lines
363 B
PHP
<?php
|
|
/**
|
|
* @package sapphire
|
|
* @subpackage tests
|
|
*/
|
|
class i18nTextCollectorTestMySubObject extends i18nTextCollectorTestMyObject implements TestOnly {
|
|
static $db = array(
|
|
'SubProperty' => 'Varchar',
|
|
);
|
|
|
|
static $has_many = array(
|
|
'SubRelation' => 'Group'
|
|
);
|
|
|
|
static $singular_name = "My Sub Object";
|
|
|
|
static $plural_name = "My Sub Objects";
|
|
|
|
}
|
|
?>
|