I have a rails app which is localized in multiple languages. Some time for the localization to complete it takes more time after the some enhancements are done in english language. So it was decided to release the latest version of the website in engli开发者_Go百科sh language. and retain the older version for other non-english languages. So that the release dates need not be pushed till localization were complete. I am not sure how to implemented. Any idea about how should i go about doing it will be very helpful.
Thanks
seeing your comments to Chubas's answer You can bind to http://website.com
simple application which will check user's locale (or whatever else) and redirect him to http://website.com/en
or http://website.com/int
, each running a separate application.
It may seem not very pretty, but it's simple and many enterprise websites actually use it. With a bit more setupping you can even have configurable names like fr
, de
, etc. instead of int
(all pointing to the same application).
There is a whole Internationalization (abbrev. i18n) module available in Rails. You can easily switch languages this way, or serve them separately based on some parameter (say, the URL).
精彩评论