silverstripe-framework/tests/i18n/_fakewebroot/i18ntestmodule/code/i18nTestModule.php

23 lines
423 B
PHP
Raw Normal View History

<?php
use SilverStripe\ORM\DataObject;
class i18nTestModule extends DataObject implements TestOnly {
2014-08-15 08:53:05 +02:00
static $db = array(
2014-08-15 08:53:05 +02:00
'MyField' => 'Varchar',
);
2014-08-15 08:53:05 +02:00
public function myMethod() {
_t(
2014-08-15 08:53:05 +02:00
'i18nTestModule.ENTITY',
'Entity with "Double Quotes"',
'Comment for entity'
);
}
}
class i18nTestModule_Addition extends Object {
public function myAdditionalMethod() {
_t('i18nTestModule.ADDITION','Addition');
}
}