From 2762c2459326155280b613667d1f1ecdfd8d7e26 Mon Sep 17 00:00:00 2001 From: Christophe Vilayphiou Date: Thu, 26 Apr 2012 19:38:16 +0800 Subject: [PATCH] Fix wrong variable names in translations --- app/views/admin/translations/edit.html.erb | 8 ++++---- app/views/admin/translations/index.html.erb | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/views/admin/translations/edit.html.erb b/app/views/admin/translations/edit.html.erb index 4dd56a01..231c70f5 100644 --- a/app/views/admin/translations/edit.html.erb +++ b/app/views/admin/translations/edit.html.erb @@ -10,23 +10,23 @@ <% end %> - <% if @user_info_model_i18n_variables.size > 0 %> + <% if @info_i18n_variables.size > 0 %>
<%= t('admin.user_info') %> <%#= render :partial => 'action_bar' %> -
<%= render :partial => 'edit_user_attribute_model', :collection => @user_info_model_i18n_variables %>
+
<%= render :partial => 'edit_user_attribute_model', :collection => @info_i18n_variables %>
<% end %> - <% if @user_role_model_i18n_variables.size > 0 %> + <% if @role_i18n_variables.size > 0 %>
<%= t('admin.user_role') %> <%#= render :partial => 'action_bar' %> -
<%= render :partial => 'edit_user_attribute_model', :collection => @user_role_model_i18n_variables %>
+
<%= render :partial => 'edit_user_attribute_model', :collection => @role_i18n_variables %>
<% end %> diff --git a/app/views/admin/translations/index.html.erb b/app/views/admin/translations/index.html.erb index a47aa52b..255484d4 100644 --- a/app/views/admin/translations/index.html.erb +++ b/app/views/admin/translations/index.html.erb @@ -46,7 +46,7 @@ <% end %> -<% if @user_info_model_i18n_variables.size > 0 %> +<% if @info_i18n_variables.size > 0 %>
<%= t('admin.user_info') %> @@ -56,7 +56,7 @@
<% end %> -<% if @user_role_model_i18n_variables.size > 0 %> +<% if @role_i18n_variables.size > 0 %>
<%= t('admin.user_role') %>