silverstripe-framework/tests/i18n/_fakewebroot/i18ntestmodule/code/i18nTestModule.php
2018-01-30 16:50:32 +00:00

21 lines
392 B
PHP

<?php
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 SS_Object {
public function myAdditionalMethod() {
_t('i18nTestModule.ADDITION','Addition');
}
}