mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
8dd644d25d
Namespace all templates Move difflib and BBCodeParser2 to thirdparty Remove deprecated API marked for removal in 4.0
27 lines
486 B
PHP
27 lines
486 B
PHP
<?php
|
|
|
|
use SilverStripe\ORM\DataObject;
|
|
use SilverStripe\Core\Object;
|
|
use SilverStripe\Dev\TestOnly;
|
|
|
|
|
|
class i18nTestModule extends DataObject implements TestOnly {
|
|
|
|
static $db = array(
|
|
'MyField' => 'Varchar',
|
|
);
|
|
|
|
public function myMethod() {
|
|
_t(
|
|
'i18nTestModule.ENTITY',
|
|
'Entity with "Double Quotes"',
|
|
'Comment for entity'
|
|
);
|
|
}
|
|
}
|
|
class i18nTestModule_Addition extends Object {
|
|
public function myAdditionalMethod() {
|
|
_t('i18nTestModule.ADDITION','Addition');
|
|
}
|
|
}
|