Project

General

Profile

Actions

Feature #9329

open

accept translations with arguments on tabs label (render_tabs)

Added by Lluís Gili over 12 years ago. Updated over 12 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
I18n
Target version:
-
Start date:
2011-09-27
Due date:
% Done:

0%

Estimated time:
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"}]}
  ] %>

Files

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

Updated by Etienne Massip over 12 years ago

  • Category set to I18n
Actions

Also available in: Atom PDF