2009-04-15 07:23:22 +00:00
< ? php defined ( " SYSPATH " ) or die ( " No direct script access. " ) ?>
< div id = " gAdminG2Config " >
< h1 > < ? = t ( " Gallery 2 Import " ) ?> </h1>
< p >
< ? = t ( " Import your Gallery 2 users, photos, movies, comments and tags into your new Gallery 3 installation. " ) ?>
2009-05-27 22:57:38 -07:00
< ? = t ( " <b>Note: The importer is a work in progress and does not currently support permissions, and movie formats other than Flash video and MP4</b> " ) ?>
2009-05-09 17:45:33 +00:00
</ p >
2009-04-15 07:23:22 +00:00
< ? = $form ?>
</ div >
< ? if ( g2_import :: is_initialized ()) : ?>
< div id = " gAdminG2Import " >
< h1 > < ? = t ( " Import " ) ?> </h1>
2009-05-11 16:27:52 +00:00
< ul id = " gMessage " >
< li class = " gSuccess " >
2009-05-09 19:03:00 +00:00
< ? = t ( " Gallery version %version detected " , array ( " version " => g2_import :: version ())) ?>
2009-05-11 16:27:52 +00:00
</ li >
</ ul >
2009-04-21 04:21:34 +00:00
2009-05-09 19:03:00 +00:00
< div class = " gInfo " >
< p >
< ? = t ( " Your Gallery 2 has the following importable data in it " ) ?>
</ p >
< ul >
< li >
< ? = t2 ( " 1 user " , " %count users " , $g2_stats [ " users " ]) ?>
</ li >
< li >
< ? = t2 ( " 1 group " , " %count groups " , $g2_stats [ " groups " ]) ?>
</ li >
< li >
< ? = t2 ( " 1 album " , " %count albums " , $g2_stats [ " albums " ]) ?>
</ li >
< li >
< ? = t2 ( " 1 photo " , " %count photos " , $g2_stats [ " photos " ]) ?>
</ li >
< li >
< ? = t2 ( " 1 movie " , " %count movies " , $g2_stats [ " movies " ]) ?>
</ li >
< li >
< ? = t2 ( " 1 comment " , " %count comments " , $g2_stats [ " comments " ]) ?>
</ li >
2009-05-12 04:04:26 +00:00
< li >
< ? = t2 ( " 1 tagged photo/movie/album " ,
" %count tagged photos/movies/albums " , $g2_stats [ " tags " ]) ?>
</ li >
2009-05-09 19:03:00 +00:00
</ ul >
</ div >
2009-05-12 02:12:39 +00:00
< ? if ( $g2_sizes [ " thumb " ][ " size " ] && $thumb_size != $g2_sizes [ " thumb " ][ " size " ]) : ?>
2009-05-09 19:03:00 +00:00
< div class = " gWarning " >
< ? = t ( " Your most common thumbnail size in Gallery 2 is %g2_pixels pixels, but your Gallery 3 thumbnail size is set to %g3_pixels pixels. <a href= \" %url \" >Using the same value</a> will speed up your import. " ,
array ( " g2_pixels " => $g2_sizes [ " thumb " ][ " size " ],
" g3_pixels " => $thumb_size ,
" url " => url :: site ( " admin/theme_details " ))) ?>
</ div >
< ? endif ?>
2009-05-12 02:12:39 +00:00
< ? if ( $g2_sizes [ " resize " ][ " size " ] && $resize_size != $g2_sizes [ " resize " ][ " size " ]) : ?>
2009-05-09 19:03:00 +00:00
< div class = " gWarning " >
< ? = t ( " Your most common intermediate size in Gallery 2 is %g2_pixels pixels, but your Gallery 3 thumbnail size is set to %g3_pixels pixels. <a href= \" %url \" >Using the same value</a> will speed up your import. " ,
array ( " g2_pixels " => $g2_sizes [ " resize " ][ " size " ],
" g3_pixels " => $resize_size ,
" url " => url :: site ( " admin/theme_details " ))) ?>
</ div >
< ? endif ?>
< ? = t ( " You can begin your import on the <a href= \" %url \" >maintenance page</a> " ,
2009-04-21 04:21:34 +00:00
array ( " url " => url :: site ( " admin/maintenance " ))) ?>
2009-04-15 07:23:22 +00:00
</ div >
< ? endif ?>