Translate in french

This commit is contained in:
Lab-8916100448256 2021-10-07 20:54:55 +02:00 committed by GitHub
parent d199b1611e
commit c8e12a2dea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,9 +89,9 @@ p { color: #B4B4FF; }
EOF
outagenb="$(find "${tmp}/ko" -mindepth 1 | grep -c 'status$')"
if [ "${outagenb}" -ne 0 ]; then
echo "<ul><li class='panel failed-bg'>${outagenb} Outage(s)</li></ul>"
echo "<ul><li class='panel failed-bg'>${outagenb} Incident(s)</li></ul>"
else
echo "<ul><li class='panel success-bg'>All Systems Operational</li></ul>"
echo "<ul><li class='panel success-bg'>Tous Systèmes Operationels</li></ul>"
fi
cat << EOF
<h1>Services</h1>
@ -101,23 +101,23 @@ for file in "${tmp}/ko/"*.status; do
[ -e "${file}" ] || continue
name="$(basename "${file}" | sed 's,.status$,,')"
status="$(cat "${file}")"
echo "<li>${name} <span class='small failed'>(${status})</span><span class='status failed'>Disrupted</span></li>"
echo "<li>${name} <span class='small failed'>(${status})</span><span class='status failed'>Cassé</span></li>"
done
for file in "${tmp}/ok/"*.status; do
[ -e "${file}" ] || continue
name="$(basename "${file}" | sed 's,.status$,,')"
echo "<li>${name} <span class='status success'>Operational</span></li>"
echo "<li>${name} <span class='status success'>Operationel</span></li>"
done
cat << EOF
</ul>
<p class=small> Last check: $(date +%FT%T%z)</p>
EOF
if [ -f "${incidentsfile}" ]; then
echo '<h1>Incidents</h1>'
echo '<h1>Historique des incidents et maintenances</h1>'
if [ -s "${incidentsfile}" ]; then
sed 's|^\(.*\)$|<p>\1</p>|' "${incidentsfile}"
else
echo '<p>No incident reported yet ;)</p>'
echo '<p>Aucun incident n'est documenté ;)</p>'
fi
fi
cat <<EOF