Add the locale to the products column, and adjust the index view to select only the products that match the locale. Adjust the products view so that you can view, enter, and alter this new column. Enter a few products in each locale, and test the resulting application. Discuss
Determine the current exchange rate between U.S. dollars and euros, and localize the currency display to display euros when ES_es is selected. Discuss
I’ve had issues with the language box in Safari 5, I can’t select Espanol. the code for that is in: store.html.erg
Anyone knows the answer?
<%= select_tag 'locale', options_for_select(LANGUAGES, I18n.locale), :onchange => 'this.form.submit()' %>
On mine (Rails 2.3.8) I had to add .to_s to I18n.locale as it returns a symbol, not a string.
<%= select_tag 'locale', options_for_select(LANGUAGES, I18n.locale.to_s), :onchange => 'this.form.submit()' %>