From d565c29bf82802e675102f6098bb62500c6bccd2 Mon Sep 17 00:00:00 2001 From: Bernie Chiu Date: Fri, 20 Dec 2013 12:43:17 +0800 Subject: [PATCH] Fix default tab sync with current language setting --- .../back_end/surveys/_questions.html.erb | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/vendor/built_in_modules/survey/app/views/panel/survey/back_end/surveys/_questions.html.erb b/vendor/built_in_modules/survey/app/views/panel/survey/back_end/surveys/_questions.html.erb index 849260a2..bd61bc2f 100644 --- a/vendor/built_in_modules/survey/app/views/panel/survey/back_end/surveys/_questions.html.erb +++ b/vendor/built_in_modules/survey/app/views/panel/survey/back_end/surveys/_questions.html.erb @@ -23,8 +23,13 @@
- <%= I18nVariable.from_locale('en') %> - <%= I18nVariable.from_locale('zh_tw') %> + <% if I18n.locale == :zh_tw %> + <%= I18nVariable.from_locale('zh_tw') %> + <%= I18nVariable.from_locale('en') %> + <% else %> + <%= I18nVariable.from_locale('en') %> + <%= I18nVariable.from_locale('zh_tw') %> + <% end %>
@@ -34,8 +39,13 @@