Monday, December 28, 2009

i18n and anonymous surfers - bug?

i would have never found that out if i hadnt built myself a bot-
tracking component
it basically logs all non-js-browsing and tries to detect if it was a
known search bot

anyway
this way i found out that my website has been visited by users using
http://anonymouse.org/

i tried it out myself and was really shocked that i18n doesnt work
anymore
from my understanding it uses (at least in cakephp1.2 it did and
should do it in 1.3)
a) define('MY_DEFAULT_LANGUAGE','de');
b) Configure::write('Config.language', 'de-de')

right now it does not translate at all if you visit it via services
like anonymouse.org
neither english nor german nor any other language

Configure::read('Config.language') returns NULL (and was definitely
set before)
which could lead to the false assumption that my website is not german
(although its the main language - and the only present language in the
po files!), or even worse: buggy and defect. i mean, the untranslated
strings are appearing...

after some research i found out that this service scambles the cookies
before passing them to the cake app
so this might have something to do with it - it is probably like
cookies beeing deactivated

right now i intercept any call from this service via 406 error code
and the message "With such services the page cannot be displayed
properly"
but it should probably get fixed somehow
the "primary" language should always be active - even with cookies off
etc
any ideas?

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: