]> wagnertech.de Git - kivitendo-erp.git/blobdiff - templates/webpages/admin/restore_dataset_master.html
Automatisches Ersetzen von <translate>...</translate> durch $T8
[kivitendo-erp.git] / templates / webpages / admin / restore_dataset_master.html
index c521fc925940a2779e8efe91a5385e56d1cbcfb7..c37f89828dfba977e621107a05d3cf46d7a031e8 100644 (file)
@@ -1,55 +1,56 @@
-<body class="admin" onload="document.getElementsByName('dbname')[0].focus(); ">
+[%- USE T8 %]
+[% USE HTML %]<body class="admin" onload="document.getElementsByName('dbname')[0].focus(); ">
 
- <h2><TMPL_VAR title></h2>
+ <h2>[% title %]</h2>
 
  <form name="Form" method="post" action="admin.pl" enctype="multipart/form-data">
 
   <input type="hidden" name="dbdriver" value="Pg">
-  <input type="hidden" name="dbhost" value="<TMPL_VAR dbhost ESCAPE=HTML>">
-  <input type="hidden" name="dbport" value="<TMPL_VAR dbport ESCAPE=HTML>">
-  <input type="hidden" name="dbuser" value="<TMPL_VAR dbuser ESCAPE=HTML>">
+  <input type="hidden" name="dbhost" value="[% HTML.escape(dbhost) %]">
+  <input type="hidden" name="dbport" value="[% HTML.escape(dbport) %]">
+  <input type="hidden" name="dbuser" value="[% HTML.escape(dbuser) %]">
+  <input type="hidden" name="dbpasswd" value="[% HTML.escape(dbpasswd) %]">
 
   <p>
-   <translate>Please enter the name of the dataset you want to restore the backup in.</translate>
-   <translate>The dataset has to exist before a restoration can be started.</translate>
-   <translate>You can create a missing dataset by going back and chosing &quot;Create Dataset&quot;.</translate>
+   [% 'Please enter the name of the dataset you want to restore the backup in.' | $T8 %]
+   [% 'The dataset has to exist before a restoration can be started.' | $T8 %]
+   [% 'You can create a missing dataset by going back and chosing &quot;Create Dataset&quot;.' | $T8 %]
   </p>
 
   <p>
-   <translate>The backup you upload here has to be a file created with &quot;pg_dump -o -Ft&quot;.</translate>
-   <translate>It may optionally be compressed with &quot;gzip&quot;.</translate>
-   <translate>Files created by Lx-Office's &quot;Backup Dataset&quot; function are such files.</translate>
+   [% 'The backup you upload here has to be a file created with &quot;pg_dump -o -Ft&quot;.' | $T8 %]
+   [% 'It may optionally be compressed with &quot;gzip&quot;.' | $T8 %]
+   [% 'Files created by Lx-Office's &quot;Backup Dataset&quot; function are such files.' | $T8 %]
   </p>
 
   <table>
    <tr>
-    <td valign="top"><translate>Dataset name</translate></td>
+    <td valign="top">[% 'Dataset name' | $T8 %]</td>
     <td valign="top"><input name="new_dbname"></td>
    </tr>
 
    <tr>
-    <th valign="top"><translate>Multibyte Encoding</translate></th>
+    <th valign="top">[% 'Multibyte Encoding' | $T8 %]</th>
     <td>
      <select name="dbencoding">
-      <TMPL_LOOP DBENCODINGS><option value="<TMPL_VAR dbencoding ESCAPE=HTML>" <TMPL_IF selected>selected</TMPL_IF>><TMPL_VAR label ESCAPE=HTML></option></TMPL_LOOP>
+      [% FOREACH row = DBENCODINGS %]<option value="[% HTML.escape(row.dbencoding) %]" [% IF row.selected %]selected[% END %]>[% HTML.escape(row.label) %]</option>[% END %]
      </select>
     </td>
    </tr>
 
    <tr>
-    <td valign="top"><translate>Backup file</translate></td>
+    <td valign="top">[% 'Backup file' | $T8 %]</td>
     <td valign="top"><input type="file" accept="*" name="content"></td>
    </tr>
   </table>
 
-  <input type="hidden" name="rpw" value="<TMPL_VAR rpw ESCAPE=HTML>">
   <input type="hidden" name="nextsub" value="restore_dataset_start">
 
   <hr size="3" noshade>
 
   <br>
 
-  <input type="submit" class="submit" name="action" value="<translate>Continue</translate>">
+  <input type="submit" class="submit" name="action" value="[% 'Continue' | $T8 %]">
 
  </form>