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

21 lines
389 B
PHP
Raw Normal View History

<?php
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');
}
}