Ignore:
Timestamp:
01/20/13 18:02:23 (7 years ago)
Author:
julien1311
Message:

[piwecard] change in translation strings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Piwecard/admin/admin_management.php

    r20284 r20292  
    134134} 
    135135 
    136 $nb_ecards_valid_total = str_replace(array('%nb_valid%', '%nb_total%'), array($piwecard->get_nb_valid_ecard(), $piwecard->get_nb_ecard()), l10n('piwecard_nb_ecard_valid_total')); 
     136$nb_ecards_valid_total = sprintf(l10n('piwecard_nb_ecard_valid_total'), $piwecard->get_nb_valid_ecard(), $piwecard->get_nb_ecard()); 
    137137 
    138138$query = 'SELECT COUNT(DISTINCT sender_email) AS nb_senders, COUNT(DISTINCT recipient_email) AS nb_recipients FROM '.PIWECARD_TABLE.' ORDER BY date_creation;'; 
     
    141141$nb_distinct_recipients_total = (empty($result['nb_recipients']) ? 0 : $result['nb_recipients']); 
    142142 
    143 $nb_distinct_senders_recipients_total = str_replace(array('%nb_senders%', '%nb_recipients%'), array($nb_distinct_senders_total, $nb_distinct_senders_total), l10n('piwecard_nb_sender_recipient_total')); 
     143$nb_distinct_senders_recipients_total = sprintf(l10n('piwecard_nb_sender_recipient_total'), $nb_distinct_senders_total, $nb_distinct_recipients_total); 
    144144 
    145145$template->assign('nb_ecards_valid_total', $nb_ecards_valid_total); 
Note: See TracChangeset for help on using the changeset viewer.