mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-01 12:49:13 -04:00
i18n: Localize /admin
pages (#4380)
Not every string was localized: * `/admin/plugins` has some CSS magic to draw the tables of plugins differently on narrow (mobile) screens, and the l10n library we use does not support that particular magic. The strings that were not localized are "Name", "Description", "Version", and "Time". These strings are only stuck in English when the page is viewed on a narrow screen; normal desktop users will see translated strings. The CSS magic ought to be replaced with something more robust (lots of nested `div`s); those remaining strings can be localized whenever that happens. * Strings from external sources such as plugin descriptions, error messages, and `settings.json` comments are not localized.
This commit is contained in:
parent
554eef7770
commit
dbef630f44
5 changed files with 91 additions and 46 deletions
|
@ -4,9 +4,12 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Plugin information - Etherpad</title>
|
||||
<title data-l10n-id="admin_plugins_info.page-title">Plugin information - Etherpad</title>
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link rel="stylesheet" href="../../static/css/admin.css">
|
||||
<link rel="localizations" type="application/l10n+json" href="../../locales.json" />
|
||||
<script src="../../static/js/html10n.js"></script>
|
||||
<script src="../../static/js/l10n.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="wrapper">
|
||||
|
@ -14,30 +17,30 @@
|
|||
<h1><a href="../../">Etherpad</a></h1>
|
||||
<ul>
|
||||
<% e.begin_block("adminMenu"); %>
|
||||
<li><a href="../plugins">Plugin manager</a> </li>
|
||||
<li><a href="../settings">Settings</a> </li>
|
||||
<li><a href="../plugins/info">Troubleshooting information</a> </li>
|
||||
<li><a href="../plugins" data-l10n-id="admin_plugins">Plugin manager</a></li>
|
||||
<li><a href="../settings" data-l10n-id="admin_settings">Settings</a></li>
|
||||
<li><a href="../plugins/info" data-l10n-id="admin_plugins_info">Troubleshooting information</a></li>
|
||||
<% e.end_block(); %>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="innerwrapper">
|
||||
<h2>Etherpad version</h2>
|
||||
<p>Version number: <%= epVersion %></p>
|
||||
<p>Latest available version: <%= latestVersion %></p>
|
||||
<h2 data-l10n-id="admin_plugins_info.version">Etherpad version</h2>
|
||||
<p><span data-l10n-id="admin_plugins_info.version_number">Version number</span>: <%= epVersion %></p>
|
||||
<p><span data-l10n-id="admin_plugins_info.version_latest">Latest available version</span>: <%= latestVersion %></p>
|
||||
<p>Git sha: <a href='https://github.com/ether/etherpad-lite/commit/<%= gitCommit %>'><%= gitCommit %></a></p>
|
||||
|
||||
<h2>Installed plugins</h2>
|
||||
<h2 data-l10n-id="admin_plugins_info.plugins">Installed plugins</h2>
|
||||
<pre><%- plugins.formatPlugins().replace(/, /g,"\n") %></pre>
|
||||
|
||||
<h2>Installed parts</h2>
|
||||
<h2 data-l10n-id="admin_plugins_info.parts">Installed parts</h2>
|
||||
<pre><%= plugins.formatParts() %></pre>
|
||||
|
||||
<h2>Installed hooks</h2>
|
||||
<h3>Server side hooks</h3>
|
||||
<h2 data-l10n-id="admin_plugins_info.hooks">Installed hooks</h2>
|
||||
<h3 data-l10n-id="admin_plugins_info.hooks_server">Server-side hooks</h3>
|
||||
<div><%- plugins.formatHooks() %></div>
|
||||
|
||||
<h3>Client side hooks</h3>
|
||||
<h3 data-l10n-id="admin_plugins_info.hooks_client">Client-side hooks</h3>
|
||||
<div><%- plugins.formatHooks("client_hooks") %></div>
|
||||
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue