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

29 lines
518 B
PHP
Raw Normal View History

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