Make the info webpage french

This commit is contained in:
Maxime Augier 2022-11-11 10:04:27 +01:00
parent 3b0e9fddc0
commit 41c406d0c3
4 changed files with 42 additions and 28 deletions

View File

@ -221,6 +221,21 @@ footer {
}
}
.open {
color: blue;
font-weight: bold;
}
.moderated {
font-weight: bold;
color: green;
}
.closed {
font-weight: bold;
color: red;
}
@media(max-width: 700px) {
header .header-text {
padding: 24px;

View File

@ -19,15 +19,15 @@ templates::{info, instance, statics::index_css},
<body>
<header>
<div class="header-text">
<h1>@Config::software_name()<span class="smaller">@Config::software_version()</span></h1>
<p>on @config.hostname()</p>
<h1>@config.hostname()</h1>
<p>@Config::software_name() <span class="smaller">@Config::software_version()</span></p>
</div>
</header>
<main>
<section>
<h3>Connected Servers</h3>
<h3>Instances fédérées</h3>
@if nodes.is_empty() {
<p>There are no connected servers at this time.</p>
<p>Aucune instance fédérée en ce moment.</p>
} else {
<ul>
@for node in nodes {
@ -47,45 +47,42 @@ templates::{info, instance, statics::index_css},
}
</section>
<section>
<h3>Joining</h3>
<h3>Rejoindre</h3>
<article class="joining">
@if config.restricted_mode() {
<h4>
This relay is Restricted
Ce relais est restreint.
</h4>
<p>
This relay is currently in Restricted Mode, which means servers need to be approved ahead of time by the relay
administrator. Please contact the admin before attempting to join.
Ce relais est restreint; Les instances doivent être approuvées avant de pouvoir se connecter. Merci de
contacter l'<a href="https://mastodon.xolus.net/@@max">administrateur</a> avant de tenter d'y connecter votre instance.
</p>
} else {
<p>
If you are the admin of a server that supports activitypub relays, you can add
this relay to your server.
Ce relais est ouvert; Vous pouvez l'ajouter à la configuration de votre serveur supportant ActivityPub.
</p>
}
<h4>Mastodon</h4>
<p>
Mastodon admins can add this relay by adding
<pre>@config.generate_url(UrlKind::Inbox)</pre> in their relay settings.
Les administrateurs de Mastodon peuvent connecter ce relais en ajoutant
<pre>@config.generate_url(UrlKind::Inbox)</pre> dans la liste de leurs relais..
</p>
<h4>Pleroma</h4>
<p>
Pleroma admins can add this relay by adding
Les administrateurs de Pleroma peuvent connecter ce relais en ajoutant
<pre>@config.generate_url(UrlKind::Actor)</pre>
to their relay settings (I don't actually know how pleroma handles adding
relays, is it still a mix command?).
dans la liste de leur relais.
</p>
<h4>Others</h4>
<h4>Autres</h4>
<p>
Consult the documentation for your server. It's likely that it follows either
Mastodon or Pleroma's relay formatting.
Vérifiez la documentation de votre installation, qui suit probablement la convention de Mastodon ou de Pleroma.
</p>
</article>
</section>
</main>
<footer>
<p>
The source code for this project can be found at
Code source de l'application disponible ici:
<a href="@config.source_code()">@config.source_code()</a>
</p>
</footer>

View File

@ -8,9 +8,9 @@
<h4 class="padded"><a href="@base">@authority</a></h4>
}
<p class="padded">
Running @info.software, version @info.version.
Utilise @info.software, version @info.version.
@if info.reg {
Registration is open
Enregistrement ouvert.
}
</p>
</article>

View File

@ -7,21 +7,23 @@
<h4 class="padded"><a href="@base">@instance.title</a></h4>
<p class="padded">
@if let Some(software) = software {
Running @software, version @instance.version.
Utilise @software, version @instance.version.
}
<br>
@if instance.reg {
<br>Registration is open.
@if instance.requires_approval {
Accounts must be approved by an admin.
<span class="moderated">Inscriptions soumises à approbation.</span>
} else{
<span class="open">Inscriptions ouvertes.</span>
}
} else{
Registration is closed
<span class="closed">Inscriptions fermées.</span>
}
</p>
@if !instance.description.trim().is_empty() || contact.is_some() {
<div class="instance-info">
@if !instance.description.trim().is_empty() {
<h5 class="instance-description">@instance.title's description:</h5>
<h5 class="instance-description">Description:</h5>
<div class="description">
<div class="please-stay">
@Html(instance.description.trim())
@ -29,7 +31,7 @@
</div>
}
@if let Some(contact) = contact {
<h5 class="instance-admin">@instance.title's admin:</h5>
<h5 class="instance-admin">Administré par:</h5>
@:admin(contact, base)
}
</div>