21 lines
392 B
PHP
Raw Normal View History

<?php
class i18nTestModule extends DataObject implements TestOnly {
2014-08-15 18:53:05 +12:00
static $db = array(
2014-08-15 18:53:05 +12:00
'MyField' => 'Varchar',
);
2014-08-15 18:53:05 +12:00
public function myMethod() {
_t(
2014-08-15 18:53:05 +12:00
'i18nTestModule.ENTITY',
'Entity with "Double Quotes"',
'Comment for entity'
);
}
}
2017-11-30 17:49:46 +00:00
class i18nTestModule_Addition extends SS_Object {
public function myAdditionalMethod() {
_t('i18nTestModule.ADDITION','Addition');
}
}