Project

General

Profile

Feature #9329 » tabs.patch

add an asterisk to allow translations with args - Lluís Gili, 2011-09-27 10:21

View differences:

app/views/common/_tabs.rhtml
<div class="tabs">
<ul>
<% tabs.each do |tab| -%>
<li><%= link_to l(tab[:label]), { :tab => tab[:name] },
<li><%= link_to l(*tab[:label]), { :tab => tab[:name] },
:id => "tab-#{tab[:name]}",
:class => (tab[:name] != selected_tab ? nil : 'selected'),
:onclick => "showTab('#{tab[:name]}'); this.blur(); return false;" %></li>
    (1-1/1)