Hi all,
Is there a different way to do page titles when using multiple
languages?
I have done in the controller:
CODE
//read the language and redirect as needed
$lang = Configure::read('Config.langCode');
//en or jp
if ($lang == 'en')
{
$this->pageTitle = "Welcome";
}
else
{
$this->pageTitle = "ようこそ";
}
English is fine but when I try to do Japanese characters the only
things that come up is �悤����
Anyone know why this is happening?
Is there a better way to do this?
As the pages changes with each page and further down the line I want
to add the database output to the title as well, what would be the
best way to achieve this?
Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---