Page by page changes for i18n yml

This commit is contained in:
Christophe Vilayphiou committed 2012-09-24 09:06:44 +08:00
1 parent 4fb35b00f2
commit c846a102ff
22 files changed
+38 -34

No files matched your search

@@ -2,10 +2,10 @@
<%= form_for(@web_link_category, :remote => true, :url => @url) do |f| %>
<h2><%= (@web_link_category.new_record? ? 'Add' : 'Edit') %></h2>
<h2><%= (@web_link_category.new_record? ? t(:add) : t(:edit)) %></h2>
<div id="widget-title">
<%= f.label :key %>
<%= f.label :key, t(:key) %>
<%= f.text_field :key %>
</div>
@@ -13,7 +13,7 @@
<%= f.fields_for :title_translations do |f| %>
<% @site_valid_locales.each do |locale| %>
<div class="control-group">
<%= label_tag "name-#{locale}", "Name-#{I18nVariable.from_locale(locale)}", :class => 'control-label' %>
<%= label_tag "name-#{locale}", "#{t(:name)}-#{I18nVariable.from_locale(locale)}", :class => 'control-label' %>
<div class="controls">
<%= f.text_field locale, :class => 'input-xxlarge', :value => (@web_link_category.title_translations[locale] rescue nil) %>
</div>
@@ -23,7 +23,7 @@
</div>
<div class="form-actions">
<%= f.submit 'Submit/送出', :class=>'btn btn-primary' %>
<%= f.submit t(:submit), :class=>'btn btn-primary' %>
</div>
<% end %>
@@ -77,7 +77,7 @@
</div>
<div class="title">
<%= f.label :describe,t("web_resource.describe") %>
<%= f.label :describe, t(:description) %>
<%= f.fields_for :context_translations do |f| %>
<%= I18nVariable.from_locale(locale) %>
<%= f.text_area locale, :style=>"width:100%", :value => (@web_link.context_translations[locale] rescue nil) %>