removed I18n variable

This commit is contained in:
Saurabh Bhatia 2014-06-18 15:52:17 +08:00
parent be56f7685b
commit 2cd097b39f
4 changed files with 5 additions and 5 deletions

View File

@ -43,7 +43,7 @@ class Admin::JournalPapersController < OrbitMemberController
format.html { redirect_to admin_journal_papers_path }
format.xml { render :xml => @journal_paper, :status => :created, :location => @journal_paper }
else
format.html { render :action => "new" }
format.html { render action: "new" }
format.xml { render :xml => @journal_paper.errors, :status => :unprocessable_entity }
end
end
@ -59,7 +59,7 @@ class Admin::JournalPapersController < OrbitMemberController
# format.js { render 'toggle_enable' }
format.xml { head :ok }
else
format.html { render :action => "edit" }
format.html { render action: "edit" }
format.xml { render :xml => @writing_journal.errors, :status => :unprocessable_entity }
end
end

View File

@ -17,7 +17,7 @@
<%= f.fields_for :title_translations do |f| %>
<% @site_in_use_locales.each do |locale| %>
<div class="control-group">
<%= label_tag "link-#{locale}", "Name-#{I18nVariable.from_locale(locale)}", :class => 'control-label' %>
<%= label_tag "link-#{locale}", "Name-#{t(locale).to_s}", :class => 'control-label' %>
<div class="controls">
<%= f.text_field locale, :class => 'control-label', :value => (@set_author_type.title_translations[locale] rescue nil) %>
</div>

View File

@ -212,7 +212,7 @@
<ul class="nav nav-pills language-nav">
<% @site_in_use_locales.each_with_index do |locale, i| %>
<li class="<%= 'active' if i == 0 %>">
<a data-toggle="tab" href=".<%= locale %>"><%= I18nVariable.from_locale(locale) %></a>
<a data-toggle="tab" href=".<%= locale %>"><%= t(locale).to_s %></a>
</li>
<% end %>
</ul>

View File

@ -17,7 +17,7 @@
<% @site_in_use_locales.each do |locale| %>
<div class="control-group">
<%= label_tag "link-#{locale}", "Name-#{I18nVariable.from_locale(locale)}", :class => 'control-label' %>
<%= label_tag "link-#{locale}", "Name-#{t(locale).to_s}", :class => 'control-label' %>
<div class="controls">
<%= f.text_field locale, :class => 'control-label', :value => (@set_level_type.title_translations[locale] rescue nil) %>
</div>