silverstripe-framework/tests/i18n/_fakewebroot/i18ntestmodule/code/i18nTestModule.php
Damian Mooyman 8dd644d25d
API Namespace all classes
Namespace all templates
Move difflib and BBCodeParser2 to thirdparty
Remove deprecated API marked for removal in 4.0
2016-09-08 10:23:17 +12:00

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');
}
}