Ignore:
Timestamp:
May 15, 2010, 2:03:52 PM (14 years ago)
Author:
patdenice
Message:

Update language keys.
Code cleaning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/autoupdate/trunk/template/autoupdate.tpl

    r6167 r6181  
     1{html_head}
     2{literal}
     3<style type="text/css">
     4form { width: 750px; }
     5fieldset { padding-bottom: 30px; }
     6p, form p { text-align: left; margin-left:20px; }
     7li { margin: 5px; }
     8</style>
     9{/literal}
     10{/html_head}
     11
    112<div class="titrePage">
    213{if $STEP < 2}
     
    1021  {if $CHECK_VERSION}
    1122    <p>{'You are running the latest version of Piwigo.'|@translate}</p>
    12   {else} 
     23  {elseif $DEV_VERSION}
     24    <p>{'You are running on development sources, no check possible.'|@translate}</p>
     25  {else}
    1326    <p>{'Check for upgrade failed for unknown reasons.'|@translate}</p>
    1427  {/if}
     
    1629
    1730{if $STEP == 1}
    18 <p>{'2 upgrades are available'|@translate}</p>
     31<h4>{'Two upgrades are available'|@translate}:</h4>
    1932<p>
    2033<ul>
    21   <li><a href="{$AU_URL}&amp;step=2&amp;to={$new_versions.1}">{'Upgrade to Piwigo %s'|@translate|@sprintf:$new_versions.1}</a>: {'This is a minor upgrade, with only bug corrections'|@translate}</li>
    22   <li><a href="{$AU_URL}&amp;step=3&amp;to={$new_versions.0}">{'Upgrade to Piwigo %s'|@translate|@sprintf:$new_versions.0}</a>: {'This is a major upgrade, with <a href="http://piwigo.org/releases/%s">new exciting features</a>. Some themes and plugins may be not available yet.'|@translate|@sprintf:$new_versions.0}</li>
     34  <li><a href="{$AU_URL}&amp;step=2&amp;to={$MINOR_VERSION}"><strong>{'Upgrade to Piwigo %s'|@translate|@sprintf:$MINOR_VERSION}</strong></a>: {'This is a minor upgrade, with only bug corrections.'|@translate}</li>
     35  <li><a href="{$AU_URL}&amp;step=3&amp;to={$MAJOR_VERSION}"><strong>{'Upgrade to Piwigo %s'|@translate|@sprintf:$MAJOR_VERSION}</strong></a>: {'This is a major upgrade, with <a href="%s">new exciting features</a>.'|@translate|@sprintf:$RELEASE_URL} {'Some themes and plugins may be not available yet.'|@translate}</li>
    2336</ul>
    2437</p>
     38<p>{'You can upgrade to Piwigo %s directly, without upgrading to Piwigo %s (recommended).'|@translate|@sprintf:$MAJOR_VERSION:$MINOR_VERSION}</p>
    2539{/if}
    2640
    2741{if $STEP == 2}
     42<p>
     43  {'A new version of Piwigo is available.'|@translate}<br>
     44  {'This is a minor upgrade, with only bug corrections.'|@translate}
     45</p>
    2846<form action="" method="post">
    29 <p style="text-align:left; margin-left:20px;">
    30   {'A new version of Piwigo is available.'}<br>
    31   {'This is a minor upgrade, with only bug corrections'|@translate}
    32 </p>
    33 <p>
    34   <input type="hidden" name="upgrade_to" value="{$UPGRADE_TO}">
    35   <input type="submit" name="submit" value="{'Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}" onClick="return confirm('{'autoupdate_alert'|@translate}');">
    36 </p>
     47<p><input type="submit" name="submit" value="{'Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}" onClick="return confirm('{'autoupdate_alert'|@translate}');"></p>
     48<p><input type="hidden" name="upgrade_to" value="{$UPGRADE_TO}"></p>
    3749</form>
    3850{/if}
    3951
    4052{if $STEP == 3}
     53<p>
     54  {'A new version of Piwigo is available.'|@translate}<br>
     55  {'This is a major upgrade, with <a href="%s">new exciting features</a>.'|@translate|@sprintf:$RELEASE_URL} {'Some themes and plugins may be not available yet.'|@translate}
     56</p>
    4157<form action="" method="post">
    42 <p style="text-align:left; margin-left:20px;">
    43   {'A new version of Piwigo is available.'}<br>
    44   {'This is a major upgrade, with <a href="http://piwigo.org/releases/%s">new exciting features</a>. Some themes and plugins may be not available yet.'|@translate|@sprintf:$UPGRADE_TO}
    45 </p>
    46 <input type="hidden" name="upgrade_to" value="{$UPGRADE_TO}">
    47 <fieldset style="text-align:left;">
    48   <legend>{'Save template directory'|@translate}</legend>
    49   <p><input type="submit" name="saveTemplate" value="{'Save template directory'|@translate}"></p>
     58<fieldset>
     59  <legend>{'First Step'|@translate}</legend>
     60  <p><input type="submit" name="saveTemplate" value="{'Save Template Directory'|@translate}"></p>
    5061</fieldset>
    5162<fieldset>
    52   <legend>{'Dump Database'|@translate}</legend>
    53   <p><input type="checkbox" name="includeHistory"> &nbsp; {'Include history table'|@translate}</p>
    54   <p><input type="submit" name="dumpDatabase" value="{'Dump Database'|@translate|@sprintf:$UPGRADE_TO}"></p>
     63  <legend>{'Second Step'|@translate}</legend>
     64  <p><input type="checkbox" name="includeHistory"> &nbsp; {'Include history data (Warning: server memory limit may be exceeded)'|@translate}</p>
     65  <p><input type="submit" name="dumpDatabase" value="{'Dump Database'|@translate}"></p>
    5566</fieldset>
    5667<fieldset>
    57   <legend>{'Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}</legend>
    58   <p><input type="submit" name="submit" value="{'Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}"></p>
     68  <legend>{'Third Step'|@translate|@sprintf:$UPGRADE_TO}</legend>
     69  <p><input type="submit" name="submit" value="{'Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}" onClick="return confirm('{'autoupdate_alert'|@translate}');"></p>
    5970</fieldset>
     71<p><input type="hidden" name="upgrade_to" value="{$UPGRADE_TO}"></p>
    6072</form>
    6173{/if}
Note: See TracChangeset for help on using the changeset viewer.