1 October 2008 at 9:44pm
I have two questions here:
1) I have created a module and am pretty sure i have the correct directory structure. The module is pretty much empty right now since i am only trying to fix this issue for now. Basically my en_US.php file contains a load of translations, but non of them are being used. I have tried putting an echo and exit into the php file but nothing happens so i assume it is not being loaded at all. How do i fix this?
2) How do i get the current username? I have tried using Member::getName() and Member::getTitle() but both are returning blank. Although i can get the userID from Member::currentUserID().
7 October 2008 at 12:41am
1) Can you provide a sample of your en_US.php through pastie.org? Did you i18n::enable() in your _config.php? Are you using _t() to echo the translated strings in your PHP file? Is the echo code in a valid Silverstripe model or controller?