sergiogonzalez/liferay-portal — pull request #294 by KocsisDaniel (2012-07-10 08:24:35+00:00)
Title: [TECH SUPPORT] LPS-28426

Hi Sergio,

this is a questionable PR for me. The solution works well, however it seems to me more of a new feature then a bug and because of that I am not sure if we really want to commit this fix or we want to develop the solution in this way.

The main change is from now we will consider not just the first but ALL language codes from the request. To do this we iterate trough all the locales from the request and to stop the iteration we have to check the same conditions we check after the loop(but it is necessary as well) so this is the other reason why I don't really like it.

Please let me know your opinion!
Daniel