Ignore:
Timestamp:
Feb 11, 2006, 8:36:09 PM (19 years ago)
Author:
rvelices
Message:

remake Remote Site/Synchro - bug on commentable + use l10n instead of get_lang

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/site_manager.php

    r1029 r1033  
    6464  else
    6565  {
    66     array_push($page['errors'], get_lang('remote_site_file_not_found'));
     66    array_push($page['errors'], l10n('remote_site_file_not_found'));
    6767  }
    6868}
     
    100100  {
    101101    array_push($page['errors'],
    102       get_lang('remote_site_already_exists').' ['.$url.']');
     102      l10n('remote_site_already_exists').' ['.$url.']');
    103103  }
    104104  if (count($page['errors']) == 0)
     
    115115        {
    116116          array_push($page['errors'],
    117                      get_lang('remote_site_error').' : '.$first_line);
     117                     l10n('remote_site_error').' : '.$first_line);
    118118        }
    119119      }
    120120      else
    121121      {
    122         array_push($page['errors'], get_lang('remote_site_file_not_found') );
     122        array_push($page['errors'], l10n('remote_site_file_not_found') );
    123123      }
    124124    }
     
    128128      {
    129129        array_push($page['errors'],
    130           get_lang('Directory does not exist').' ['.$url.']');
     130          l10n('Directory does not exist').' ['.$url.']');
    131131      }
    132132    }
     
    143143    pwg_query($query);
    144144    array_push($page['infos'],
    145                $url.' '.get_lang('remote_site_created'));
     145               $url.' '.l10n('remote_site_created'));
    146146  }
    147147}
     
    166166    case 'generate' :
    167167    {
    168       $title = $galleries_url.' : '.get_lang('remote_site_generate');
     168      $title = $galleries_url.' : '.l10n('remote_site_generate');
    169169      $template->assign_vars(array('REMOTE_SITE_TITLE'=>$title));
    170170      remote_output($galleries_url.'create_listing_file.php?action=generate');
     
    173173    case 'test' :
    174174    {
    175       $title = $galleries_url.' : '.get_lang('remote_site_test');
     175      $title = $galleries_url.' : '.l10n('remote_site_test');
    176176      $template->assign_vars(array('REMOTE_SITE_TITLE'=>$title));
    177177      remote_output($galleries_url.'create_listing_file.php?action=test&version='.PHPWG_VERSION);
     
    180180    case 'clean' :
    181181    {
    182       $title = $galleries_url.' : '.get_lang('remote_site_clean');
     182      $title = $galleries_url.' : '.l10n('remote_site_clean');
    183183      $template->assign_vars(array('REMOTE_SITE_TITLE'=>$title));
    184184      remote_output($galleries_url.'create_listing_file.php?action=clean');
     
    189189      delete_site($page['site']);
    190190      array_push($page['infos'],
    191                  $galleries_url.' '.get_lang('remote_site_deleted'));
     191                 $galleries_url.' '.l10n('remote_site_deleted'));
    192192      break;
    193193    }
     
    232232    array(
    233233      'NAME' => $row['galleries_url'],
    234       'TYPE' => get_lang( $is_remote ? 'Remote' : 'Local' ),
     234      'TYPE' => l10n( $is_remote ? 'Remote' : 'Local' ),
    235235      'CATEGORIES' => $row['nb_categories'],
    236236      'IMAGES' => isset($row['nb_images']) ? $row['nb_images'] : 0,
Note: See TracChangeset for help on using the changeset viewer.