From a828d6d8e07d3a56c80a383f5bd112e539d5a37c Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Fri, 20 Dec 2013 15:32:37 +0800 Subject: [PATCH] language tab fixed for survey on language change --- .../back_end/surveys/_questions.html.erb | 44 +++++++++++++------ 1 file changed, 31 insertions(+), 13 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 bd61bc2f..5b44ac47 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 @@ -7,7 +7,7 @@ {{if _id}} {{/if}} -

Q${_length} ${_title_translations[3].en}

+

Q${_length} ${_title_translations[3].<%= I18n.locale.to_s %>}

@@ -15,12 +15,21 @@
-
- -
-
- -
+ <% if I18n.locale == :en %> +
+ +
+
+ +
+ <% else %> +
+ +
+
+ +
+ <% end %>
<% if I18n.locale == :zh_tw %> @@ -47,12 +56,21 @@ <%= I18nVariable.from_locale('zh_tw') %> <% end %>
-
- -
-
- -
+ <% if I18n.locale == :en %> +
+ +
+
+ +
+ <% else %> +
+ +
+
+ +
+ <% end %>