Change translation
This commit is contained in:
parent
9584d67b23
commit
9c8bf1ffab
|
@ -149,7 +149,7 @@ protected
|
||||||
link_entry_ary = [".#{get_pairing_tab_class({})}",".#{key}"]
|
link_entry_ary = [".#{get_pairing_tab_class({})}",".#{key}"]
|
||||||
link_entry_ary << ".add_more_item_#{add_more_counter}" if can_add_more
|
link_entry_ary << ".add_more_item_#{add_more_counter}" if can_add_more
|
||||||
link_entry = link_entry_ary.join
|
link_entry = link_entry_ary.join
|
||||||
content_tag(:li,link_to(I18n.t("langs."+key),link_entry,:data=>{:toggle=>"tab"}),:class=>(key == I18n.locale.to_s ? "active" : nil),:for=>key)
|
content_tag(:li,link_to(I18nVariable.from_locale(key),link_entry,:data=>{:toggle=>"tab"}),:class=>(key == I18n.locale.to_s ? "active" : nil),:for=>key)
|
||||||
end.join.html_safe # of VALID_LOCALES.collect for tabs
|
end.join.html_safe # of VALID_LOCALES.collect for tabs
|
||||||
end # of content ul
|
end # of content ul
|
||||||
end
|
end
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<% VALID_LOCALES.each do |locale|%>
|
<% VALID_LOCALES.each do |locale|%>
|
||||||
<% active = (locale == I18n.locale.to_s ? ["active"] : [] ) %>
|
<% active = (locale == I18n.locale.to_s ? ["active"] : [] ) %>
|
||||||
<%= content_tag :li,:class=>active.push("modal_tab","address_tab").join(' '),:for=>locale do%>
|
<%= content_tag :li,:class=>active.push("modal_tab","address_tab").join(' '),:for=>locale do%>
|
||||||
<%= link_to t("langs.#{locale}"),".#{btn_class}.address_modal.#{locale}",:data=>{:toggle=>"tab"}%>
|
<%= link_to I18nVariable.from_locale(locale),".#{btn_class}.address_modal.#{locale}",:data=>{:toggle=>"tab"}%>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<% last = (locale == @site_valid_locales.last ? true : false) %>
|
<% last = (locale == @site_valid_locales.last ? true : false) %>
|
||||||
<% p_value = value[locale.to_s] rescue nil%>
|
<% p_value = value[locale.to_s] rescue nil%>
|
||||||
<%= content_tag :div,:class=>"input-append #{"unRadius" if last }" do%>
|
<%= content_tag :div,:class=>"input-append #{"unRadius" if last }" do%>
|
||||||
<%= text_field("#{field_name}[0]", locale,:placeholder=>t("langs.#{locale}")) %>
|
<%= text_field("#{field_name}[0]", locale,:placeholder=>I18nVariable.from_locale(locale)) %>
|
||||||
<% if last %>
|
<% if last %>
|
||||||
<a href="#" class="btn removeInput" type="button"><i class="icon-trash"></i></a>
|
<a href="#" class="btn removeInput" type="button"><i class="icon-trash"></i></a>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
<% last = (locale == @site_valid_locales.last ? true : false) %>
|
<% last = (locale == @site_valid_locales.last ? true : false) %>
|
||||||
<% p_value = value[locale.to_s] rescue nil%>
|
<% p_value = value[locale.to_s] rescue nil%>
|
||||||
<%= content_tag :div,:class=>"input-append #{"unRadius" if last }" do%>
|
<%= content_tag :div,:class=>"input-append #{"unRadius" if last }" do%>
|
||||||
<%= text_field("#{field_name}[#{index}]", locale,:value=>p_value,:placeholder=>t("langs.#{locale}")) %>
|
<%= text_field("#{field_name}[#{index}]", locale,:value=>p_value,:placeholder=>I18nVariable.from_locale(locale)) %>
|
||||||
<% if last %>
|
<% if last %>
|
||||||
<a href="#" class="btn removeInput" type="button"><i class="icon-trash"></i></a>
|
<a href="#" class="btn removeInput" type="button"><i class="icon-trash"></i></a>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<% active = (locale == @site_valid_locales.first ? "active in" : "'") %>
|
<% active = (locale == @site_valid_locales.first ? "active in" : "'") %>
|
||||||
<%= content_tag :div,:class=>"tab-pane fade #{active}",:id=>"#{name_to_id(field_name)}_#{locale}" do%>
|
<%= content_tag :div,:class=>"tab-pane fade #{active}",:id=>"#{name_to_id(field_name)}_#{locale}" do%>
|
||||||
<% locale_value = values[locale.to_s] rescue nil%>
|
<% locale_value = values[locale.to_s] rescue nil%>
|
||||||
<%= text_field(field_name, locale,:value=>locale_value,:placeholder=>t("langs.#{locale}")) %>
|
<%= text_field(field_name, locale,:value=>locale_value,:placeholder=>I18nVariable.from_locale(locale)) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
<% @site_valid_locales.each do |locale| %>
|
<% @site_valid_locales.each do |locale| %>
|
||||||
<% active = (locale == @site_valid_locales.first ? "active" : "'") %>
|
<% active = (locale == @site_valid_locales.first ? "active" : "'") %>
|
||||||
<%=content_tag :li,:class=>active do %>
|
<%=content_tag :li,:class=>active do %>
|
||||||
<%= link_to t("langs.#{locale}"),"##{name_to_id(field_name)}_#{locale}",:data=>{:toggle=>"tab"}%>
|
<%= link_to I18nVariable.from_locale(locale),"##{name_to_id(field_name)}_#{locale}",:data=>{:toggle=>"tab"}%>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Reference in New Issue