Development

#9322 ([tdVisitorCounterPlugin] undefined method sfI18N::format_number_choice())

You must first sign up to be able to contribute.

Ticket #9322 (new defect)

Opened 2 years ago

[tdVisitorCounterPlugin] undefined method sfI18N::format_number_choice()

Reported by: ilbp Assigned to: fabien
Priority: minor Milestone: plugins
Component: plugins Version: 1.4.8
Keywords: tdVisitorCounterPlugin, i18n Cc:
Qualification: Unreviewed

Description

Fatal error: Call to undefined method sfI18N::format_number_choice() in /.../MyProject/plugins/tdVisitorCounterPlugin/modules/tdVisitorCounter/actions/actions.class.php on line 148

145.    //To create a bar chart we need to create a stBarOutline Object
146.    $bar = new stBarOutline( 80, '#78B9EC', '#3495FE' );
147.    $key_label_1 = $i18n->__('Number of visitors during last', array(), 'td');
148.    $key_label_2 = $i18n->format_number_choice('[1] 1 month|(1,+Inf] %1% months',
149.      array('%1%' => $month_count), $month_count, 'td');
150.    $bar->key( $key_label_1.' '.$key_label_2, 10 );