Changeset 20292


Ignore:
Timestamp:
Jan 20, 2013, 6:02:23 PM (8 years ago)
Author:
julien1311
Message:

[piwecard] change in translation strings

Location:
extensions/Piwecard
Files:
4 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);
  • extensions/Piwecard/language/en_UK/plugin.lang.php

    r20284 r20292  
    6969//admin_management.tpl
    7070$lang['piwecard_list']                                                  = 'List of e-cards';
    71 $lang['piwecard_nb_ecard_valid_total']                  = '%nb_valid% valid e-cards out of %nb_total% e-cards';
    72 $lang['piwecard_nb_sender_recipient_total']     = '%nb_senders% unique senders and %nb_recipients% unique recipients';
     71$lang['piwecard_nb_ecard_valid_total']                  = '%d valid e-cards out of %d e-cards';
     72$lang['piwecard_nb_sender_recipient_total']     = '%d unique senders and %d unique recipients';
    7373$lang['piwecard_valid']                                                 = 'Valid';
    7474$lang['piwecard_invalid']                                               = 'Expired';
  • extensions/Piwecard/language/fr_FR/plugin.lang.php

    r20284 r20292  
    6969//admin_management.tpl
    7070$lang['piwecard_list'] = 'Liste des cartes virtuelles';
    71 $lang['piwecard_nb_ecard_valid_total'] = '%nb_valid% cartes virtuelles valides sur %nb_total% cartes virtuelles';
    72 $lang['piwecard_nb_sender_recipient_total'] = '%nb_senders% expéditeurs uniques et %nb_recipients% destinataires uniques';
     71$lang['piwecard_nb_ecard_valid_total'] = '%d cartes virtuelles valides sur %d cartes virtuelles';
     72$lang['piwecard_nb_sender_recipient_total'] = '%d expéditeurs uniques et %d destinataires uniques';
    7373$lang['piwecard_valid'] = 'Valides';
    7474$lang['piwecard_invalid'] = 'Périmées';
  • extensions/Piwecard/template/ecard.tpl

    r20254 r20292  
    1212                onComplete:function(){
    1313                        {/literal}var nbMaxRecipients = {$ecard.nb_max_recipients};{literal}   
    14                         $("#cboxLoadedContent").css('background-color', $("#the_page #content").css('background-color'));
     14                        $("#cboxLoadedContent").css('background-color', $("#thePicturePage").css('background-color'));
    1515                        $(".ecard_defaultText").each(function(){
    1616                                defaultTextFocusOut($(this));
Note: See TracChangeset for help on using the changeset viewer.