Default culture in symfony 1.2, 1.3 and 1.4 [EN]
Este blog também esta disponível em português, clique aqui!
A little tip, but that can save lifes!
This week I received a question about why symfony was not changing the culture after insert a new one in the settings.yml file.
usually, if you want the default culture to pt_BR, the file will look like this:
all:
.settings:
default_culture: pt_BR---
So, you refresh the browser and nothing seems to change.
The problem is that symfony store the default culture within a cookie in the very first request. So if you don`t clear you browse cookies, the new culture won't take effect until the cookie expires.
