Changeset 2201 for trunk/include


Ignore:
Timestamp:
Jan 30, 2008, 11:07:07 PM (17 years ago)
Author:
rub
Message:

Replace old use of $lang by l10n function.

Location:
trunk/include
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/category_cats.inc.php

    r2175 r2201  
    239239          'SRC'   => $thumbnail_src_of[$category['representative_picture_id']],
    240240          'ALT'   => $category['name'],
    241           'TITLE' => $lang['hint_category'],
     241          'TITLE' => l10n('hint_category'),
    242242          'ICON'  => $icon_ts,
    243243
  • trunk/include/common.inc.php

    r2127 r2201  
    185185if (is_a_guest())
    186186{
    187   $user['username'] = $lang['guest'];
     187  $user['username'] = l10n('guest');
    188188}
    189189
     
    214214if ($conf['gallery_locked'])
    215215{
    216   $header_msgs[] = $lang['gallery_locked_message'];
     216  $header_msgs[] = l10n('gallery_locked_message');
    217217
    218218  if ( script_basename() != 'identification' and !is_admin() )
     
    220220    set_status_header(503, 'Service Unavailable');
    221221    @header('Retry-After: 900');
    222     echo $lang['gallery_locked_message']
     222    echo l10n('gallery_locked_message')
    223223      .'<a href="'.get_absolute_root_url(false).'identification.php">.</a>';
    224224    exit();
     
    251251if (is_adviser())
    252252{
    253   $header_msgs[] = $lang['adviser_mode_enabled'];
     253  $header_msgs[] = l10n('adviser_mode_enabled');
    254254}
    255255
  • trunk/include/functions_html.inc.php

    r2182 r2201  
    5555    {
    5656      $icons = array(false => 'recent', true => 'recent_by_child' );
    57       $title = $lang['recent_image'].'&nbsp;'.$user['recent_period']
    58           .'&nbsp;'.$lang['days'];
     57      $title = l10n('recent_image').'&nbsp;'.$user['recent_period']
     58          .'&nbsp;'.l10n('days');
    5959      foreach ($icons as $key => $icon)
    6060      {
     
    107107      $navbar.=
    108108        '<a href="'.$url.'" rel="start">'
    109         .$lang['first_page']
     109        .l10n('first_page')
    110110        .'</a>';
    111111    }
    112112    else
    113113    {
    114       $navbar.= $lang['first_page'];
     114      $navbar.= l10n('first_page');
    115115    }
    116116    $navbar.= ' | ';
     
    124124        .$url.($previous > 0 ? $start_str.$previous : '')
    125125        .'" rel="prev">'
    126         .$lang['previous_page']
     126        .l10n('previous_page')
    127127        .'</a>';
    128128    }
    129129    else
    130130    {
    131       $navbar.= $lang['previous_page'];
     131      $navbar.= l10n('previous_page');
    132132    }
    133133    $navbar.= ' |';
     
    195195      $navbar.=
    196196        '<a href="'.$url.$start_str.$next.'" rel="next">'
    197         .$lang['next_page']
     197        .l10n('next_page')
    198198        .'</a>';
    199199    }
    200200    else
    201201    {
    202       $navbar.= $lang['next_page'];
     202      $navbar.= l10n('next_page');
    203203    }
    204204
     
    211211      $navbar.=
    212212        '<a href="'.$url.$start_str.$temp_start.'" rel="last">'
    213         .$lang['last_page']
     213        .l10n('last_page')
    214214        .'</a>';
    215215    }
    216216    else
    217217    {
    218       $navbar.= $lang['last_page'];
     218      $navbar.= l10n('last_page');
    219219    }
    220220  }
     
    567567  if ( isset($user) and !is_a_guest() )
    568568  {
    569     echo '<div style="text-align:center;">'.$lang['access_forbiden'].'<br />';
    570     echo '<a href="'.get_root_url().'identification.php">'.$lang['identification'].'</a>&nbsp;';
    571     echo '<a href="'.make_index_url().'">'.$lang['home'].'</a></div>';
     569    echo '<div style="text-align:center;">'.l10n('access_forbiden').'<br />';
     570    echo '<a href="'.get_root_url().'identification.php">'.l10n('identification').'</a>&nbsp;';
     571    echo '<a href="'.make_index_url().'">'.l10n('home').'</a></div>';
    572572    exit();
    573573  }
  • trunk/include/menubar.inc.php

    r2110 r2201  
    172172    array(
    173173      'URL' => make_index_url(array('section' => 'favorites')),
    174       'TITLE' => $lang['favorite_cat_hint'],
    175       'NAME' => $lang['favorite_cat']
     174      'TITLE' => l10n('favorite_cat_hint'),
     175      'NAME' => l10n('favorite_cat')
    176176      ));
    177177}
     
    181181  array(
    182182    'URL' => make_index_url(array('section' => 'most_visited')),
    183     'TITLE' => $lang['most_visited_cat_hint'],
    184     'NAME' => $lang['most_visited_cat']
     183    'TITLE' => l10n('most_visited_cat_hint'),
     184    'NAME' => l10n('most_visited_cat')
    185185    ));
    186186// best rated
     
    191191    array(
    192192      'URL' => make_index_url(array('section' => 'best_rated')),
    193       'TITLE' => $lang['best_rated_cat_hint'],
    194       'NAME' => $lang['best_rated_cat']
     193      'TITLE' => l10n('best_rated_cat_hint'),
     194      'NAME' => l10n('best_rated_cat')
    195195      )
    196196    );
     
    201201  array(
    202202    'URL' => get_root_url().'random.php',
    203     'TITLE' => $lang['random_cat_hint'],
    204     'NAME' => $lang['random_cat'],
     203    'TITLE' => l10n('random_cat_hint'),
     204    'NAME' => l10n('random_cat'),
    205205    'REL'=> 'rel="nofollow"'
    206206    ));
     
    211211  array(
    212212    'URL' => make_index_url(array('section' => 'recent_pics')),
    213     'TITLE' => $lang['recent_pics_cat_hint'],
    214     'NAME' => $lang['recent_pics_cat'],
     213    'TITLE' => l10n('recent_pics_cat_hint'),
     214    'NAME' => l10n('recent_pics_cat'),
    215215    ));
    216216// recent cats
     
    219219  array(
    220220    'URL' => make_index_url(array('section' => 'recent_cats')),
    221     'TITLE' => $lang['recent_cats_cat_hint'],
    222     'NAME' => $lang['recent_cats_cat'],
     221    'TITLE' => l10n('recent_cats_cat_hint'),
     222    'NAME' => l10n('recent_cats_cat'),
    223223    ));
    224224
     
    236236        )
    237237      ),
    238     'TITLE' => $lang['calendar_hint'],
    239     'NAME' => $lang['calendar'],
     238    'TITLE' => l10n('calendar_hint'),
     239    'NAME' => l10n('calendar'),
    240240    'REL'=> 'rel="nofollow"'
    241241    )
     
    294294  'summary',
    295295  array(
    296     'TITLE'=>$lang['hint_search'],
    297     'NAME'=>$lang['search'],
     296    'TITLE'=>l10n('hint_search'),
     297    'NAME'=>l10n('search'),
    298298    'U_SUMMARY'=> get_root_url().'search.php',
    299299    'REL'=> 'rel="search"'
     
    306306  'summary',
    307307  array(
    308     'TITLE'=>$lang['hint_comments'],
    309     'NAME'=>$lang['comments'],
     308    'TITLE'=>l10n('hint_comments'),
     309    'NAME'=>l10n('comments'),
    310310    'U_SUMMARY'=> get_root_url().'comments.php',
    311311    )
     
    316316  'summary',
    317317  array(
    318     'TITLE'     => $lang['about_page_title'],
    319     'NAME'      => $lang['About'],
     318    'TITLE'     => l10n('about_page_title'),
     319    'NAME'      => l10n('About'),
    320320    'U_SUMMARY' => get_root_url().'about.php',
    321321    )
  • trunk/include/page_tail.php

    r2029 r2201  
    3333    'PHPWG_URL' => PHPWG_URL,
    3434
    35     'L_TITLE_MAIL' => urlencode($lang['title_send_mail']),
     35    'L_TITLE_MAIL' => urlencode(l10n('title_send_mail')),
    3636    ));
    3737
  • trunk/include/picture_rate.inc.php

    r1900 r2201  
    4343  if ($row['count'] == 0)
    4444  {
    45     $value = $lang['no_rate'];
     45    $value = l10n('no_rate');
    4646  }
    4747  else
  • trunk/include/section_init.inc.php

    r2175 r2201  
    217217  else
    218218  {
    219     $page['title'] = $lang['no_category'];
     219    $page['title'] = l10n('no_category');
    220220  }
    221221
     
    341341      array(
    342342        'title' => '<a href="'.duplicate_index_url(array('start'=>0)).'">'
    343                   .$lang['search_result'].'</a>',
     343                  .l10n('search_result').'</a>',
    344344        )
    345345      );
     
    371371      $page,
    372372      array(
    373         'title' => $lang['favorites'],
     373        'title' => l10n('favorites'),
    374374        'items' => array_from_query($query, 'image_id'),
    375375        )
     
    396396      array(
    397397        'title' => '<a href="'.duplicate_index_url(array('start'=>0)).'">'
    398                   .$lang['recent_pics_cat'].'</a>',
     398                  .l10n('recent_pics_cat').'</a>',
    399399        'items' => array_from_query($query, 'id'),
    400400        )
     
    409409      $page,
    410410      array(
    411         'title' => $lang['recent_cats_cat'],
     411        'title' => l10n('recent_cats_cat'),
    412412        )
    413413      );
     
    434434      array(
    435435        'title' => '<a href="'.duplicate_index_url(array('start'=>0)).'">'
    436                   .$conf['top_number'].' '.$lang['most_visited_cat'].'</a>',
     436                  .$conf['top_number'].' '.l10n('most_visited_cat').'</a>',
    437437        'items' => array_from_query($query, 'id'),
    438438        )
     
    460460      array(
    461461        'title' => '<a href="'.duplicate_index_url(array('start'=>0)).'">'
    462                   .$conf['top_number'].' '.$lang['best_rated_cat'].'</a>',
     462                  .$conf['top_number'].' '.l10n('best_rated_cat').'</a>',
    463463        'items' => array_from_query($query, 'id'),
    464464        )
     
    483483      array(
    484484        'title' => '<a href="'.duplicate_index_url(array('start'=>0)).'">'
    485                     .$lang['random_cat'].'</a>',
     485                    .l10n('random_cat').'</a>',
    486486        'items' => array_from_query($query, 'id'),
    487487        )
Note: See TracChangeset for help on using the changeset viewer.