How to set the default language in GetText?
The default language of GetText is en,and I want to change it to another
language,and also keep the ability to change to any other languages by
just click the according href.
Currently I use:
class ApplicationController < ActionController::Base
@headers[“Content-Type”] = “text/html; charset=utf-8”
cookies[“lang”] = ‘zh_CN’
But the language will not switch to my want until the next refresh.Could
I set the default language from en to others in some way?