Yash Ganthe wrote: > However, in case of some languages like Arabic, the entire layout of > all pages will have to be changed. The RHTMLs themselves will have to > be different. This may also be the case for some other languages for > which the static text does not align properly and we are forced to > create still more variants of the RHTMLs.
Layouts could be switched depending on the Locale.language.direction field. Usally its "ltr" and if it is "rtl" you could load a different set of stylesheets using a before_filter in your ApplicationController. > How do we make sure our application has a set of default templates > that are used if the corresponding localized templates are not > present? > Is there something we need to do in routes.rb? > How will Rails locate the template to be used for rendering? Globalize tries to find templates by the current set locale in that format: <templatename>.<lang>.rhtml If it does not find a file matching that convention, then it just uses the <templatename>.rhtml file. -- Posted via http://www.ruby-forum.com/. _______________________________________________ Railsi18n-discussion mailing list Railsi18n-discussion@rubyforge.org http://rubyforge.org/mailman/listinfo/railsi18n-discussion