|
Re: [Rails I18n] Suggested code for auto finding the client locale: msg#00011lang.ruby.rails.i18n
Another mail on the Globalize mailing list about this topic by Thiago Arrais, (Globalize flavor this time): -- begin -- Here is the code I came up with: http://www.textsnippets.com/posts/show/546 It considers not only the accept-language field, but other user options. In order of precedence they are: - Explicit locale passed on URL - Previous language selection (stored on user session) - Accept-Language field contents - Default locale You may package this snippet with Globalize in any way you'd like. Cheers, Thiago Arrais -- end -- -- Posted via http://www.ruby-forum.com/.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [Rails I18n] Locale Currency format, Roland |
|---|---|
| Next by Date: | [Rails I18n] Globalize walkthrough, Martin Bernd Schmeil |
| Previous by Thread: | [Rails I18n] Locale Currency format, Kadoudal |
| Next by Thread: | [Rails I18n] Globalize walkthrough, Martin Bernd Schmeil |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |