From aa180dcf7e854375e60293058a0a8311f3f0fd1c Mon Sep 17 00:00:00 2001 From: Bernie Chiu Date: Tue, 31 Dec 2013 14:08:42 +0800 Subject: [PATCH] Refactor the title locale display --- .../back_end/surveys/_questions.html.erb | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 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 ed6c8516..aaac8493 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,13 +23,8 @@
- <% 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 %> + <%= I18nVariable.from_locale(@primary_locale) %> + <%= I18nVariable.from_locale(@secondary_locale) %>
@@ -39,13 +34,8 @@