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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Template Questions /

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

[SOLVED]en_US.php file not being read in 2.4


Go to End


1476 Views

Avatar
deLisle

Community Member, 12 Posts

24 June 2010 at 1:27am

Edited: 24/06/2010 2:59am

Hi.

For some reason is one of my en_US.php files not being read by the system.

The thing is that i used to have this in the _config file for this "module": require_once( dirname( __FILE__ ) . '/lang/en_US.php' );

When having that it works. However, having it in 2.4 makes that en_US.php file the "master" file and no other "lang" files are read.

When i remove the require_once all is well except for this one en_US.php file that is not read.

Any ideas?

SOLUTION:

I had to put the lang folder and file one folder up in the tree to get it to work