silverstripe-framework/tests/php/i18n/i18nTest/TestObject.php
Damian Mooyman 8a07c56bdf API Replace i18n message localisation with symfony/translation
API Implement enhanced pluralisation
Remove Zend_Translate and all Zend dependencies from i18n
Deprecated $context from i18n::_t()
Warn on missing default string for i18n::_t()
2017-01-25 17:08:12 +13:00

24 lines
579 B
PHP

<?php
namespace SilverStripe\i18n\Tests\i18nTest;
use SilverStripe\Dev\TestOnly;
use SilverStripe\i18n\i18nEntityProvider;
class TestObject implements TestOnly, i18nEntityProvider
{
static $my_translatable_property = "Untranslated";
public static function my_translatable_property()
{
return _t("i18nTest_Object.my_translatable_property", self::$my_translatable_property);
}
public function provideI18nEntities()
{
return [
"i18nTest_Object.my_translatable_property" => self::$my_translatable_property,
];
}
}