21286 Posts in 5733 Topics by 2602 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 176 Views |
-
provideI18nEntities() hardly(!) working in 3.0?

4 July 2012 at 3:37am Last edited: 4 July 2012 3:38am
Normally I'd use the provideI18nEntities::provideI18nEntities() method to offer translations to the TextCollector that cannot otherwise be picked up from a _t() function in a class. But it looks like in 3.0 the TextCollector almost never gets there:
in i18nTextCollector line 399: class_exists($class, false) seems to almost(!) always return false on my module classes. (only a SiteConfig decorator returns true). It states:
// Not all classes can be instanciated without mandatory arguments,
// so entity collection doesn't work for all SilverStripe classes currently
// Requires PHP 5.1+But shouldn't class_exists(...) return true on existing classes anyway? Can anyone reproduce this?
| 176 Views | ||
|
Page:
1
|
Go to Top |
