Feature #9329

accept translations with arguments on tabs label (render_tabs)

Added by Lluís Gili about 10 years ago. Updated about 10 years ago.

Status:NewStart date:2011-09-27
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:I18n
Target version:-
Resolution:

Description

on render_tabs helper, label, which is translated on view, don't accept translation arguments. A simple change on view allows to do this:

  <%= render_tabs [
    {:name=>'issued',:partial=>'issued_invoices',:label=>:issued},
    {:name=>'received',:partial=>'received_invoices',:label=>[:received,{:num=>"3"}]}
  ] %>

tabs.patch Magnifier - add an asterisk to allow translations with args (642 Bytes) Lluís Gili, 2011-09-27 10:21

History

#1 Updated by Etienne Massip about 10 years ago

  • Category set to I18n

Also available in: Atom PDF