diff --git a/app/models/site.rb b/app/models/site.rb index cfe8242..fbd8b3f 100644 --- a/app/models/site.rb +++ b/app/models/site.rb @@ -21,7 +21,7 @@ class Site field :desktop_closed, :type => Boolean, :default => false field :enable_language_detection, :type => Boolean, :default => false field :enable_zh_cn, :type => Boolean, :default => true - field :default_locale, :default => "en" + field :default_locale, :default => "zh_tw" field :mobile_on, :type => Boolean, :default => false field :announcement_category, :type => Array, :default=>[] field :mobile_bar_color, :type => Array, :default=>[] diff --git a/app/views/orbit_bar/index.html.erb b/app/views/orbit_bar/index.html.erb index dbefefb..99e0a85 100644 --- a/app/views/orbit_bar/index.html.erb +++ b/app/views/orbit_bar/index.html.erb @@ -106,7 +106,7 @@ <% end %>
  • - <% if @site_in_use_locales.count > 1 %> + <% if @site_in_use_locales.count > 1 || current_site.enable_zh_cn %> <% locale = session[:zh_cn] ? :zh_cn : I18n.locale %> <%= t((locale==:zh_tw ? :zh_tw_ : locale.to_s)) %>