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

27 lines
486 B
PHP
Raw Normal View History

<?php
use SilverStripe\ORM\DataObject;
use SilverStripe\Core\Object;
use SilverStripe\Dev\TestOnly;
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');
}
}