I am working on a rails 3 app which has different languages in my locales folder. The files are en.yml, pu.yml, sp.yml. All languages have to be converted to their various format and I need help in making users chose any language of their choice with a link like
<%= link_to "English language", ...%> <%= link_to "spanish", ...%>
When a user choses a language, the language is set as the user's preferred language so that the user does not have to keep selecting a language after each login.