diff options
author | rvelices <rv-github@modusoptimus.com> | 2006-02-11 19:36:09 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2006-02-11 19:36:09 +0000 |
commit | c2b9863da0f560f5afb2adb01ca32431f442c352 (patch) | |
tree | dde777ad6a650b6f251541996d137136cb99faf6 /admin/site_manager.php | |
parent | 512740968f7f09b3901897416ded964f46cb5faa (diff) |
remake Remote Site/Synchro - bug on commentable + use l10n instead of get_lang
git-svn-id: http://piwigo.org/svn/trunk@1033 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/site_manager.php')
-rw-r--r-- | admin/site_manager.php | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/admin/site_manager.php b/admin/site_manager.php index 478041dbf..0f8ca7d41 100644 --- a/admin/site_manager.php +++ b/admin/site_manager.php @@ -63,7 +63,7 @@ function remote_output($url) }
else
{
- array_push($page['errors'], get_lang('remote_site_file_not_found'));
+ array_push($page['errors'], l10n('remote_site_file_not_found'));
}
}
@@ -99,7 +99,7 @@ SELECT COUNT(id) AS count if ($row['count'] > 0)
{
array_push($page['errors'],
- get_lang('remote_site_already_exists').' ['.$url.']');
+ l10n('remote_site_already_exists').' ['.$url.']');
}
if (count($page['errors']) == 0)
{
@@ -114,12 +114,12 @@ SELECT COUNT(id) AS count if (!preg_match('/^PWG-INFO-2:/', $first_line))
{
array_push($page['errors'],
- get_lang('remote_site_error').' : '.$first_line);
+ l10n('remote_site_error').' : '.$first_line);
}
}
else
{
- array_push($page['errors'], get_lang('remote_site_file_not_found') );
+ array_push($page['errors'], l10n('remote_site_file_not_found') );
}
}
else
@@ -127,7 +127,7 @@ SELECT COUNT(id) AS count if ( ! file_exists($url) )
{
array_push($page['errors'],
- get_lang('Directory does not exist').' ['.$url.']');
+ l10n('Directory does not exist').' ['.$url.']');
}
}
}
@@ -142,7 +142,7 @@ INSERT INTO '.SITES_TABLE.' ;';
pwg_query($query);
array_push($page['infos'],
- $url.' '.get_lang('remote_site_created'));
+ $url.' '.l10n('remote_site_created'));
}
}
@@ -165,21 +165,21 @@ SELECT galleries_url {
case 'generate' :
{
- $title = $galleries_url.' : '.get_lang('remote_site_generate');
+ $title = $galleries_url.' : '.l10n('remote_site_generate');
$template->assign_vars(array('REMOTE_SITE_TITLE'=>$title));
remote_output($galleries_url.'create_listing_file.php?action=generate');
break;
}
case 'test' :
{
- $title = $galleries_url.' : '.get_lang('remote_site_test');
+ $title = $galleries_url.' : '.l10n('remote_site_test');
$template->assign_vars(array('REMOTE_SITE_TITLE'=>$title));
remote_output($galleries_url.'create_listing_file.php?action=test&version='.PHPWG_VERSION);
break;
}
case 'clean' :
{
- $title = $galleries_url.' : '.get_lang('remote_site_clean');
+ $title = $galleries_url.' : '.l10n('remote_site_clean');
$template->assign_vars(array('REMOTE_SITE_TITLE'=>$title));
remote_output($galleries_url.'create_listing_file.php?action=clean');
break;
@@ -188,7 +188,7 @@ SELECT galleries_url {
delete_site($page['site']);
array_push($page['infos'],
- $galleries_url.' '.get_lang('remote_site_deleted'));
+ $galleries_url.' '.l10n('remote_site_deleted'));
break;
}
}
@@ -231,7 +231,7 @@ while ($row = mysql_fetch_array($result)) 'sites.site',
array(
'NAME' => $row['galleries_url'],
- 'TYPE' => get_lang( $is_remote ? 'Remote' : 'Local' ),
+ 'TYPE' => l10n( $is_remote ? 'Remote' : 'Local' ),
'CATEGORIES' => $row['nb_categories'],
'IMAGES' => isset($row['nb_images']) ? $row['nb_images'] : 0,
'U_UPDATE' => $update_url
|