Byron Morley

if you are looking to just access a variable in php just use $this->Lattitude

Byron Morley

I think there is somethign overriding the function on init, ive tested a few solutions using this method whether its from the cookie or not its still reverting when i swicth to the login page, iits as custom login page with a custom extension, but still i have no controller functions that interfere

Byron Morley
  1. <?php
  2. class ControllerDecorator extends Extension {
  3. function onBeforeInit() {
  4. // If we're on a page, use its Locale information
  5. if($this->getOwner() instanceof ContentController) {
  6. $locale = $this->getOwner()->Locale;
  7. i18n::set_locale($locale);
  8. Cookie::set('Locale', $locale);
  9. }
  10. // Otherwise, use the stored Locale
  11. else if(Cookie::get('Locale')) {
  12. i18n::set_locale(Cookie::get('Locale'));
  13. }
  14. }
  15. }
Byron Morley

Can anyone tell me how to properly translate login pages in SS3, I have no problem adding the translations its the locale it keeps reverting back to the original language. I have tried using this decorator with no luck

Byron Morley

ive copied over the same setup from a previous site that works but its failing to pick up the translations on the second language file

Byron Morley

would someone be able to help me with language files

Byron Morley

It wasnt showing any errors, but i found it in the end it was to do with the Translation module looking for pages that were no longer there because of the name change

Byron Morley

ive made some changes to other pages urlsegments in the sitetree table and my home page is now showing a 500 error, but only the home home page isnt working , any ideas?