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