[ticket/17335] Move HTML from lang to template

PHPBB-17335

Signed-off-by: Matt Friedman <maf675@gmail.com>
This commit is contained in:
Matt Friedman 2024-06-10 20:46:58 -07:00 committed by Marc Alexander
parent b6c2961568
commit 173e1ceeba
No known key found for this signature in database
GPG key ID: 50E0D2423696F995
2 changed files with 40 additions and 21 deletions

View file

@ -104,19 +104,38 @@
<th>{L_EXTENSION_INSTALLING_HEADLINE}</th>
</tr>
<tr>
<td class="row3">{L_EXTENSION_INSTALLING_EXPLAIN}</td>
<td class="row3">
<ol>
<li>{{ lang(['EXTENSION_INSTALLING_EXPLAIN', 'step_1']) }}</li>
<li>{{ lang(['EXTENSION_INSTALLING_EXPLAIN', 'step_2']) }}</li>
<li>{{ lang(['EXTENSION_INSTALLING_EXPLAIN', 'step_3']) }}</li>
</ol>
</td>
</tr>
<tr>
<th>{L_EXTENSION_UPDATING_HEADLINE}</th>
</tr>
<tr>
<td class="row3">{L_EXTENSION_UPDATING_EXPLAIN}</td>
<td class="row3">
<ol>
<li>{{ lang(['EXTENSION_UPDATING_EXPLAIN', 'step_1']) }}</li>
<li>{{ lang(['EXTENSION_UPDATING_EXPLAIN', 'step_2']) }}</li>
<li>{{ lang(['EXTENSION_UPDATING_EXPLAIN', 'step_3']) }}</li>
<li>{{ lang(['EXTENSION_UPDATING_EXPLAIN', 'step_4']) }}</li>
</ol>
</td>
</tr>
<tr>
<th>{L_EXTENSION_REMOVING_HEADLINE}</th>
</tr>
<tr>
<td class="row3">{L_EXTENSION_REMOVING_EXPLAIN}</td>
<td class="row3">
<ol>
<li>{{ lang(['EXTENSION_REMOVING_EXPLAIN', 'step_1']) }}</li>
<li>{{ lang(['EXTENSION_REMOVING_EXPLAIN', 'step_2']) }}</li>
<li>{{ lang(['EXTENSION_REMOVING_EXPLAIN', 'step_3']) }}</li>
</ol>
</td>
</tr>
</tbody>
</table>

View file

@ -89,25 +89,25 @@ $lang = array_merge($lang, array(
'EXTENSION_NAME' => 'Extension Name',
'EXTENSION_ACTIONS' => 'Actions',
'EXTENSION_OPTIONS' => 'Options',
'EXTENSION_INSTALLING_HEADLINE'=> 'Installing an extension',
'EXTENSION_INSTALLING_EXPLAIN' => '<ol>
<li>Download an extension from phpBBs extensions database</li>
<li>Unzip the extension and upload it to the <samp>ext/</samp> directory of your phpBB board</li>
<li>Enable the extension, here in the Extensions manager</li>
</ol>',
'EXTENSION_REMOVING_EXPLAIN' => '<ol>
<li>Disable the extension</li>
<li>Delete the extensions data</li>
<li>Delete the extensions files from the filesystem</li>
</ol>',
'EXTENSION_UPDATING_HEADLINE' => 'Updating an extension',
'EXTENSION_UPDATING_EXPLAIN' => '<ol>
<li>Disable the extension</li>
<li>Delete the extensions files from the filesystem</li>
<li>Upload the new files</li>
<li>Enable the extension</li>
</ol>',
'EXTENSION_INSTALLING_HEADLINE' => 'Installing an extension',
'EXTENSION_INSTALLING_EXPLAIN' => [
'step_1' => 'Download an extension from phpBBs extensions database',
'step_2' => 'Unzip the extension and upload it to the <samp>ext/</samp> directory of your phpBB board',
'step_3' => 'Enable the extension, here in the Extensions manager',
],
'EXTENSION_REMOVING_HEADLINE' => 'Deleting an extension from your board',
'EXTENSION_REMOVING_EXPLAIN' => [
'step_1' => 'Disable the extension',
'step_2' => 'Delete the extensions data',
'step_3' => 'Delete the extensions files from the filesystem',
],
'EXTENSION_UPDATING_HEADLINE' => 'Updating an extension',
'EXTENSION_UPDATING_EXPLAIN' => [
'step_1' => 'Disable the extension',
'step_2' => 'Delete the extensions files from the filesystem',
'step_3' => 'Upload the new files',
'step_4' => 'Enable the extension',
],
'EXTENSION_DELETE_DATA_CONFIRM' => 'Are you sure that you wish to delete the data associated with “%s”?<br /><br />This removes all of its data and settings and cannot be undone!',
'EXTENSION_DISABLE_CONFIRM' => 'Are you sure that you wish to disable the “%s” extension?',