2008-10-17 17:21:33 +02:00
|
|
|
<?php
|
2016-06-15 06:03:16 +02:00
|
|
|
|
|
|
|
use SilverStripe\ORM\DataObject;
|
2016-08-19 00:51:35 +02:00
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
|
|
|
2016-12-16 05:34:21 +01:00
|
|
|
class i18nTestModule extends DataObject implements TestOnly
|
|
|
|
{
|
2016-08-19 00:51:35 +02:00
|
|
|
|
2016-12-16 05:34:21 +01:00
|
|
|
static $db = array(
|
|
|
|
'MyField' => 'Varchar',
|
|
|
|
);
|
2014-08-15 08:53:05 +02:00
|
|
|
|
2016-12-16 05:34:21 +01:00
|
|
|
public function myMethod()
|
|
|
|
{
|
|
|
|
_t(
|
|
|
|
'i18nTestModule.ENTITY',
|
|
|
|
'Entity with "Double Quotes"',
|
|
|
|
'Comment for entity'
|
|
|
|
);
|
|
|
|
}
|
2008-10-17 17:21:33 +02:00
|
|
|
}
|
2017-05-17 07:40:13 +02:00
|
|
|
class i18nTestModule_Addition
|
2016-12-16 05:34:21 +01:00
|
|
|
{
|
|
|
|
public function myAdditionalMethod()
|
|
|
|
{
|
|
|
|
_t('i18nTestModule.ADDITION', 'Addition');
|
|
|
|
}
|
2012-03-24 04:04:52 +01:00
|
|
|
}
|