removed I18n variable
This commit is contained in:
parent
be56f7685b
commit
2cd097b39f
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue