{* * $Revision: 1.29 $ * If you want to customize this file, do not edit it directly since future upgrades * may overwrite it. Instead, copy it into a new directory called "local" and edit that * version. Gallery will look for that file first and use it if it exists. *}

{g->text text="Import from Gallery 1"}

{g->text text="Copy all or part of an existing Gallery 1 installation into your Gallery 2. It won't modify your Gallery 1 data in any way."}

{if (!$SelectGallery.hasToolkit)}

{capture name="url"} {g->url arg1="view=core.SiteAdmin" arg2="subView=core.AdminModules"} {/capture} {g->text text="You don't have any Graphics Toolkit activated to handle JPEG images. If you import now, you will not have any thumbnails. Visit the Modules page to activate a Graphics Toolkit." arg1=$smarty.capture.url}

{/if}

{g->text text="Path to Gallery 1 albums directory"}

{g->text text="Example: /var/www/albums"}

{g->autoComplete element="giFormPath"} {g->url arg1="view=core.SimpleCallback" arg2="command=lookupDirectories" arg3="prefix=__VALUE__" htmlEntities=false} {/g->autoComplete} {if isset($form.error.albumsPath.missing)}
{g->text text="You did not enter a path."}
{/if} {if isset($form.error.albumsPath.invalid)}
{g->text text="The path that you entered is invalid."}
{/if}
{g->text text="Note: Before you import any data you should make sure your Gallery 1 is installed correctly by adding a photo through the Gallery 1 web interface. Make sure you resolve any errors you see there first."} {if !empty($SelectGallery.recentPaths)}

{g->text text="Recently Used Paths"}

{foreach from=$SelectGallery.recentPaths key=path item=count} {capture name="escapedPath"}{$path|replace:"\\":"\\\\"}{/capture} {$path}
{/foreach}

{/if}
{if $SelectGallery.mapCount>0 || isset($status.mapDeleted)}

{g->text text="URL Redirection"}

{g->text text="Gallery can redirect old Gallery1 URLs to the new Gallery2 pages."}

{if $SelectGallery.mapCount>0} {g->text one="There is one G1->G2 map entry" many="There are %d G1->G2 map entries" count=$SelectGallery.mapCount arg1=$SelectGallery.mapCount}   {g->text text="Delete All"} {/if} {if isset($status.mapDeleted)}

{g->text text="Map entries deleted successfully"}

{/if} {include file="gallery:modules/migrate/templates/Redirect.tpl"}
{/if}