Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Textcollector task and MySite problem (designed bug?)


Go to End


881 Views

Avatar
martimiz

Forum Moderator, 1391 Posts

6 May 2010 at 5:22am

When performing TextCollection on mysite, Silverstripe creates a mysite/lang/en_US.php file, as it should, but it also wants to overwrite the sapphire languagefile with only two entries, as it shouldn't!...

In SiteTree.php there lives a Providei18nEntities() that directs silverStripe to write the Page.SINGULAR_NAME and Page.PLURAL_NAME to the sapphire language file. I can't find any reason why they can't live in the mysite/lang/ file, but technically this isn't a bug, since it is 'by design'.

Is this a remnant of old times? Or is there a reason for this behaviour that I haven't found? :-( For now I override in my Page class but...