Changeset 25005 for trunk/include


Ignore:
Timestamp:
Oct 19, 2013, 1:04:11 PM (10 years ago)
Author:
mistic100
Message:

feature 2978: remove useless sprintf in the core

Location:
trunk/include
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/calendar_weekly.class.php

    r19703 r25005  
    4545    for ($i=1; $i<=53; $i++)
    4646    {
    47       $week_no_labels[$i] = sprintf( l10n("Week %d"), $i);
     47      $week_no_labels[$i] = l10n('Week %d', $i);
    4848      //$week_no_labels[$i] = $i;
    4949    }
  • trunk/include/category_cats.inc.php

    r22879 r25005  
    353353          else
    354354          {
    355             $info = sprintf(
    356               l10n('from %s to %s'),
     355            $info = l10n(
     356              'from %s to %s',
    357357              format_date($from),
    358358              format_date($to)
  • trunk/include/functions.inc.php

    r24988 r25005  
    607607    if ($diff->invert)
    608608    {
    609       $print = sprintf(l10n('%s ago'), $print);
     609      $print = l10n('%s ago', $print);
    610610    }
    611611    else
    612612    {
    613       $print = sprintf(l10n('%s in the future'), $print);
     613      $print = l10n('%s in the future', $print);
    614614    }
    615615  }
     
    15791579  if (!isset($cache['get_icon']['title']))
    15801580  {
    1581     $cache['get_icon']['title'] = sprintf(
    1582       l10n('photos posted during the last %d days'),
     1581    $cache['get_icon']['title'] = l10n(
     1582      'photos posted during the last %d days',
    15831583      $user['recent_period']
    15841584      );
     
    17061706        $label .= ', ';
    17071707      }
    1708       $label .= l10n( sprintf('Level %d',$level) );
     1708      $label .= l10n( sprintf('Level %d', $level) );
    17091709    }
    17101710    $options[$level] = $label;
  • trunk/include/no_photo_yet.inc.php

    r19703 r25005  
    7777        array(
    7878          'step' => 2,
    79           'intro' => sprintf(
    80             l10n('Hello %s, your Piwigo photo gallery is empty!'),
     79          'intro' => l10n(
     80            'Hello %s, your Piwigo photo gallery is empty!',
    8181            $user['username']
    8282            ),
  • trunk/include/template.class.php

    r24988 r25005  
    7474        load_language('admin.lang');
    7575        fatal_error(
    76           sprintf(
    77             l10n('Give write access (chmod 777) to "%s" directory at the root of your Piwigo installation'),
     76          l10n(
     77            'Give write access (chmod 777) to "%s" directory at the root of your Piwigo installation',
    7878            $conf['data_location']
    7979            ),
  • trunk/include/ws_functions.inc.php

    r23060 r25005  
    33583358  {
    33593359    case 'ok':
    3360       return sprintf(l10n('%s has been successfully updated.'), $extension_name);
     3360      return l10n('%s has been successfully updated.', $extension_name);
    33613361
    33623362    case 'temp_path_error':
     
    33703370
    33713371    default:
    3372       return new PwgError(null, sprintf(l10n('An error occured during extraction (%s).'), $upgrade_status));
     3372      return new PwgError(null, l10n('An error occured during extraction (%s).', $upgrade_status));
    33733373  }
    33743374}
Note: See TracChangeset for help on using the changeset viewer.