{* * $Revision: 1.2 $ * 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 Picasa 2"}

{g->text text="This operation takes data (images, descriptions, orderings etc.) from Picasa 2 and brings it into Gallery 2."}

{if (!$SelectPicasaExportPath.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->hiddenFormVars}

{g->text text="Destination Album"}

{g->text text="Please select the gallery Album you want to import your picasa album into."}

{g->text text="Path or File"}

{g->text text="This process will import Data from a Picasa 2 XML-Export. You must enter the path to the directory with the Picasa 2 files. Example: /path/to/picasa2xml"}

{g->autoComplete element="giFormPath"} {g->url arg1="view=core.SimpleCallback" arg2="command=lookupDirectories" arg3="prefix=__VALUE__" forJavascript="true"} {/g->autoComplete} {if isset($form.error.picasaXmlPath.missing)}
{g->text text="You did not enter a path."}
{/if} {if isset($form.error.picasaXmlPath.invalid)}
{g->text text="The path that you entered does not contain valid Picasa export data."}
{/if} {if !empty($SelectPicasaExportPath.recentPaths)}

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

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

{/if}