Changeset 2265 for trunk/include


Ignore:
Timestamp:
Mar 8, 2008, 2:38:37 AM (16 years ago)
Author:
rvelices
Message:
  • upload.tpl goes smarty
  • start some language cleanup and a small attempt to standardize a bit ...
  • debug_language now calls trigger_error instead of echo when missing language key
Location:
trunk/include
Files:
4 edited

Legend:

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

    r2231 r2265  
    481481            )
    482482          );
    483         $alt = $wday_labels[$dow] . ' ' . $day.
    484                ' ('.sprintf("%d ".l10n('pictures'), $items[$day]['nb_images']).')';
    485483
    486484        $tpl_crt_week[]   =
    487485          array(
    488               'DAY' => $day,
    489               'IMAGE'     => $items[$day]['tn_url'],
    490               'U_IMG_LINK'=> $url,
    491               'IMAGE_STYLE'     => $css_style,
    492               'IMAGE_ALT' => $alt,
     486              'DAY'         => $day,
     487              'DOW'         => $dow,
     488              'NB_ELEMENTS' => $items[$day]['nb_images'],
     489              'IMAGE'       => $items[$day]['tn_url'],
     490              'U_IMG_LINK'  => $url,
     491              'IMAGE_STYLE' => $css_style,
     492              'IMAGE_ALT'   => $items[$day]['file'],
    493493            );
    494494      }
  • trunk/include/functions.inc.php

    r2252 r2265  
    10851085  if ($conf['debug_l10n'] and !isset($lang[$key]) and !empty($key))
    10861086  {
    1087     echo '[l10n] language key "'.$key.'" is not defined<br />';
     1087    trigger_error('[l10n] language key "'.$key.'" is not defined', E_USER_NOTICE);
    10881088  }
    10891089
  • trunk/include/functions_category.inc.php

    r2223 r2265  
    467467
    468468    //at least one image direct or indirect
    469     $display_text.= l10n_dec('image_available', 'images_available', $cat_count_images);
     469    $display_text.= l10n_dec('%d element', '%d elements', $cat_count_images);
    470470
    471471    if ($cat_count_categories == 0 or $cat_nb_images == $cat_count_images)
  • trunk/include/functions_html.inc.php

    r2201 r2265  
    2727function get_icon($date, $is_child_date = false)
    2828{
    29   global $page, $user, $lang;
     29  global $page, $user;
    3030
    3131  if (empty($date))
     
    5555    {
    5656      $icons = array(false => 'recent', true => 'recent_by_child' );
    57       $title = l10n('recent_image').'&nbsp;'.$user['recent_period']
    58           .'&nbsp;'.l10n('days');
     57      $title = sprintf(
     58        l10n('elements posted during the last %d days'),
     59        $user['recent_period']
     60        );
    5961      foreach ($icons as $key => $icon)
    6062      {
     
    7981  )
    8082{
    81   global $lang, $conf;
     83  global $conf;
    8284
    8385  $pages_around = $conf['paginate_pages_around'];
     
    375377function get_html_menu_category($categories, $selected_category)
    376378{
    377   global $lang;
    378 
    379379  $ref_level = 0;
    380380  $level = 0;
     
    559559function access_denied()
    560560{
    561   global $user, $lang;
     561  global $user;
    562562
    563563  $login_url =
     
    650650        )
    651651      .'" title="'
    652       .l10n('See pictures linked to this tag only')
     652      .l10n('See elements linked to this tag only')
    653653      .'">'
    654654      .$page['tags'][$i]['name']
Note: See TracChangeset for help on using the changeset viewer.