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

@@ -25,7 +25,7 @@
<% form_tag panel_announcement_back_end_approval_setting_path do %>
<%= render :partial => "layouts/users_checkbox_ary" %>
<div class="form-actions form-fixed pagination-right">
<%= submit_tag "Update", :class => 'btn btn-primary' %>
<%= submit_tag t(:update_), :class => 'btn btn-primary' %>
</div>
<% end -%>
<% end -%>
@@ -2,10 +2,10 @@
<%= form_for(@bulletin_category, :remote => true, :url => @url) do |f| %>
<h2><%= (@bulletin_category.new_record? ? 'Add' : 'Edit') %></h2>
<h2><%= @bulletin_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 => (@bulletin_category.title_translations[locale] rescue nil) %>
</div>
@@ -57,7 +57,7 @@
<div class="widget-action clear">
<a class="action"><i title="Rejected Report" class="icon-cog icon-white tip"></i></a>
</div>
<h3 class="widget-title"><i class="icons-tag icons-white"></i>Approval Status</h3>
<h3 class="widget-title"><i class="icons-tag icons-white"></i><%= t('approval.stat') %></h3>
<div class="widget-content clear form-horizontal">
<%= @bulletin.not_checked_reason rescue t("rejected_reason_empty") %>
</div>
@@ -129,7 +129,7 @@
<div class="editor">
<%= f.label :text ,t('announcement.bulletin.text')%>
<%= f.label :text ,t(:text)%>
<%= f.fields_for :text_translations do |f| %>
<%= I18nVariable.from_locale(locale) %>
<%= f.text_area locale, :style=>"width:100%", :class => 'tinymce_textarea', :value => (@bulletin.text_translations[locale] rescue nil) %>
@@ -12,7 +12,7 @@
<%= f.fields_for :title_translations do |f| %>
<% @site_valid_locales.each do |locale| %>
<div class="control-group">
<%= label_tag "title-#{locale}", "Title-#{I18nVariable.from_locale(locale)}", :class => 'control-label' %>
<%= label_tag "title-#{locale}", "#{t(:title)}-#{I18nVariable.from_locale(locale)}", :class => 'control-label' %>
<div class="controls">
<%= f.text_field locale, :class => 'input-xxlarge', :value => (bulletin.title_translations[locale] rescue nil) %>
</div>
@@ -5,4 +5,4 @@
['start_date', 'postdate', 'span1-2', :start_date],
['end_date', 'deadline', 'span1-2', :end_date],
['tags', 'tags', 'span1-2', :tags],
['last_modified', 'update_user_id','span1-3', 'bulletin.last_modified']).html_safe %>
['last_modified', 'update_user_id','span1-3', 'last_modified']).html_safe %>
@@ -25,7 +25,7 @@
<% form_tag panel_news_back_end_approval_setting_path do %>
<%= render :partial => "layouts/users_checkbox_ary" %>
<div class="form-actions form-fixed pagination-right">
<%= submit_tag "Update", :class => 'btn btn-primary' %>
<%= submit_tag t(:update_), :class => 'btn btn-primary' %>
</div>
<% end -%>
<% end -%>
@@ -2,10 +2,10 @@
<%= form_for(@news_bulletin_category, :remote => true, :url => @url) do |f| %>
<h2><%= (@news_bulletin_category.new_record? ? 'Add' : 'Edit') %></h2>
<h2><%= (@news_bulletin_category.new_record? ? t(:edit) : t(:add)) %></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 => (@news_bulletin_category.title_translations[locale] rescue nil) %>
</div>
@@ -106,7 +106,7 @@
<div class="widget-action clear">
<a class="action"><i title="Rejected Report" class="icon-cog icon-white tip"></i></a>
</div>
<h3 class="widget-title"><i class="icons-tag icons-white"></i>Approval Status</h3>
<h3 class="widget-title"><i class="icons-tag icons-white"></i><%= t('approval.stat') %></h3>
<div class="widget-content clear form-horizontal">
<%= @news_bulletin.not_checked_reason rescue t("rejected_reason_empty") %>
</div>
@@ -131,7 +131,7 @@
<div id="post-body">
<div id="post-body-content" class="clear">
<%= alert_block_tag(t("activerecord.errors.template.body"),session[:in_validate_object].errors.messages) unless session[:in_validate_object].blank? %>
<%= f.label :unit_list_for_anc,t('news_bulletin.news_bulletin.unit_name')%>
<%= f.label :unit_list_for_anc,t(:unit_name)%>
<%= f.select :unit_list_for_anc_id,@unit_list_for_anc.collect{|t| [ t.title, t.id ]}, {:prompt => t("news_bulletin.ut_prompt")}, :class => "input-medium" %>
<%= f.label :category,t(:category) %>
@@ -12,7 +12,7 @@
<%= f.fields_for :title_translations do |f| %>
<% @site_valid_locales.each do |locale| %>
<div class="control-group">
<%= label_tag "title-#{locale}", "Title-#{I18nVariable.from_locale(locale)}", :class => 'control-label' %>
<%= label_tag "title-#{locale}", "#{t(:title)}-#{I18nVariable.from_locale(locale)}", :class => 'control-label' %>
<div class="controls">
<%= f.text_field locale, :class => 'input-xxlarge', :value => (news_bulletin.title_translations[locale] rescue nil) %>
</div>
+1 -1
View File
@@ -1,6 +1,6 @@
en:
news:
news_bulletin:
campus_news: Campus News
create_news_bulletin_category_success: News category was successfully created
create_news_bulletin_success: News was successfully created
@@ -5,7 +5,7 @@
<div id="post-body">
<div id="post-body-content">
<div class="title">
<%= f.label :name %>
<%= f.label :name, t(:name) %>
<%= @page_context.page.title %>
</div>
@@ -22,7 +22,7 @@
<div class="<%= locale %> fade tab-pane <%= ( i == 0 ) ? "in active" : '' %>">
<div class="title">
<%= f.label :context %>
<%= f.label :context, t(:content) %>
<%= f.fields_for :context_translations do |f| %>
<%= I18nVariable.from_locale(locale) %>
<%= f.text_area locale, :style=>"width:100%", :class => 'tinymce_textarea', :value => (@page_context.context_translations[locale] rescue nil) %>
@@ -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) %>