Skip to content

Commit

Permalink
feat: Translate error pages
Browse files Browse the repository at this point in the history
  • Loading branch information
cogk committed Nov 15, 2024
1 parent 214c9ed commit 8e2785c
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 81 deletions.
31 changes: 10 additions & 21 deletions agent/pages/deactivated.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>This Site is Inactive</title>
<title>Site désactivé / Deactivated site</title>
<style>
html {
-webkit-font-smoothing: antialiased;
Expand Down Expand Up @@ -68,25 +68,7 @@
<body>
<div class="container">
<div class="logo">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 616 139" fill="none">
<path
d="M4 64.8841V132.392H30.9045V87.9678L78.8062 87.9289V64.8469L4 64.8841Z"
fill="#3C88F7" />
<path
d="M85.9937 9.59998H4.03442V32.6431H85.9937V9.59998Z"
fill="#3C88F7" />
<g class="text-black" fill="currentColor">
<path
d="M257.4 58.4C257.2 24.2 232.4 9.19999 202 9.19999C165.4 9.19999 141.2 32.4 141.2 73C141.2 111.4 163 134.8 200.8 134.8C232.8 134.8 254.4 119 257.4 89.2L231.8 88C228.8 104 218 113.2 201.4 113.2C180.8 113.2 167.4 99 167.4 72C167.4 46.2 180 30.4 201.4 30.4C220.6 30.4 230.4 40.8 232 59.2L257.4 58.4Z" />
<path d="M299.548 5H274.748V132.6H299.548V5Z" />
<path
d="M315.991 90C315.991 118 331.991 134.6 361.191 134.6C392.191 134.6 409.191 116.8 409.191 89C409.191 61.4 393.391 43.8 364.391 43.8C333.191 43.8 315.991 62.2 315.991 90ZM342.191 89.4C342.191 73.4 350.591 63.6 363.391 63.6C375.791 63.6 382.991 73.4 382.991 89.4C382.991 105 374.791 115 362.391 115C349.791 115 342.191 105 342.191 89.4Z" />
<path
d="M481.534 123.6V132.6H504.134V45.6H479.334V99.4C475.934 108 470.534 113 463.134 113C453.134 113 448.334 106.8 448.334 92V45.6H423.534V98.6C423.534 124 435.134 134.6 454.734 134.6C467.334 134.6 476.734 128.6 482.134 115.8L481.534 123.6Z" />
<path
d="M587.288 88C587.288 101.6 581.087 114.8 566.487 114.8C555.087 114.8 546.688 106 546.688 89.2C546.688 72.6 555.088 63.6 567.288 63.6C579.288 63.6 587.288 72.2 587.288 88ZM590.888 132.6H612.488V5H587.688V53.8C582.088 47.2 573.687 43.8 562.087 43.8C537.487 43.8 520.487 60.8 520.487 90.2C520.487 120 535.888 134.6 560.288 134.6C572.288 134.6 582.287 129.8 588.688 119.6C589.488 123.8 590.288 128.2 590.888 132.6Z" />
</g>
</svg>
<svg style="width:64px!important;height:64px!important;" version="1.1" viewBox="0 0 80.07457 77.738579" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g transform="translate(-101.33 -150.79)"><g transform="matrix(.48387 0 0 .46976 85.495 54.406)" stroke-linecap="round"><rect x="37.96" y="210.41" width="155" height="155" fill="#6195ff" stroke="#6195ff" stroke-linejoin="round" stroke-miterlimit="0" stroke-width="10.487"/><circle cx="114.81" cy="287.81" r="72.5" fill="#6195ff" stroke="#fff" stroke-width="10.487"/><path transform="matrix(1.0092 0 0 1 13.541 169.9)" d="m71.06 53.205c19.502 7.6536 36.18 22.289 46.302 40.632 5.4357 9.8509 9.0322 20.805 9.7225 32.035 0.69032 11.23-1.608 22.733-7.2296 32.479-5.6217 9.746-14.654 17.624-25.33 21.177-10.676 3.5525-22.927 2.5584-32.537-3.2924-8.789-5.3507-15.11-14.759-16.264-24.983-0.57692-5.1124 0.10484-10.37 2.0275-15.142 1.9227-4.772 5.0885-9.0458 9.1339-12.224 4.2357-3.3282 9.3857-5.4263 14.706-6.2688 5.3206-0.84242 10.805-0.45108 16.025 0.87925 10.44 2.6606 19.634 8.9639 27.477 16.351 3.9951 3.763 7.705 7.8354 11.91 11.363 4.2048 3.5271 9.0018 6.5351 14.36 7.7252 5.6859 1.2631 11.827 0.34928 16.899-2.5144 5.0719-2.8637 9.0266-7.6505 10.882-13.172" fill="none" stroke="#fff" stroke-width="10.44"/></g></g></svg>
</div>
<div class="message-container">
<div class="alert-icon">
Expand All @@ -97,13 +79,20 @@
</svg>
</div>
<h1>
Ce site a été désactivé
<br><small>
This Site is Inactive.
</small>
</h1>
<p class="message">
Ce site a été désactivé. Si vous en êtes le propriétaire, vous pouvez le ré-activer sur <a href="https://cloud.dokos.io">Dokos Cloud</a>.
<br><small>
This site has been deactivated. If you are the owner of this site, you can activate it from your
<a href="https://frappecloud.com/dashboard">Frappe Cloud Dashboard</a>.
<a href="https://cloud.dokos.io">Dokos Cloud Dashboard</a>.
</small>
</p>
</div>
</div>
<div style="position:fixed;bottom:16px;right:16px;opacity:0.7;font-size:smaller;">Hébergé par Dokos SAS. Propulsé par le logiciel Frappe Press.</div>
</body>
</html>
27 changes: 10 additions & 17 deletions agent/pages/exceeded.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<head>
<meta charset="utf-8">
<title>Daily Usage Limit Reached</title>
<title>Quota d'utilisation dépassé / Daily Usage Limit Reached</title>
<style>
html {
-webkit-font-smoothing: antialiased;
Expand Down Expand Up @@ -69,21 +69,7 @@
<body>
<div class="container">
<div class="logo">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 616 139" fill="none">
<path d="M4 64.8841V132.392H30.9045V87.9678L78.8062 87.9289V64.8469L4 64.8841Z" fill="#3C88F7" />
<path d="M85.9937 9.59998H4.03442V32.6431H85.9937V9.59998Z" fill="#3C88F7" />
<g class="text-black" fill="currentColor">
<path
d="M257.4 58.4C257.2 24.2 232.4 9.19999 202 9.19999C165.4 9.19999 141.2 32.4 141.2 73C141.2 111.4 163 134.8 200.8 134.8C232.8 134.8 254.4 119 257.4 89.2L231.8 88C228.8 104 218 113.2 201.4 113.2C180.8 113.2 167.4 99 167.4 72C167.4 46.2 180 30.4 201.4 30.4C220.6 30.4 230.4 40.8 232 59.2L257.4 58.4Z" />
<path d="M299.548 5H274.748V132.6H299.548V5Z" />
<path
d="M315.991 90C315.991 118 331.991 134.6 361.191 134.6C392.191 134.6 409.191 116.8 409.191 89C409.191 61.4 393.391 43.8 364.391 43.8C333.191 43.8 315.991 62.2 315.991 90ZM342.191 89.4C342.191 73.4 350.591 63.6 363.391 63.6C375.791 63.6 382.991 73.4 382.991 89.4C382.991 105 374.791 115 362.391 115C349.791 115 342.191 105 342.191 89.4Z" />
<path
d="M481.534 123.6V132.6H504.134V45.6H479.334V99.4C475.934 108 470.534 113 463.134 113C453.134 113 448.334 106.8 448.334 92V45.6H423.534V98.6C423.534 124 435.134 134.6 454.734 134.6C467.334 134.6 476.734 128.6 482.134 115.8L481.534 123.6Z" />
<path
d="M587.288 88C587.288 101.6 581.087 114.8 566.487 114.8C555.087 114.8 546.688 106 546.688 89.2C546.688 72.6 555.088 63.6 567.288 63.6C579.288 63.6 587.288 72.2 587.288 88ZM590.888 132.6H612.488V5H587.688V53.8C582.088 47.2 573.687 43.8 562.087 43.8C537.487 43.8 520.487 60.8 520.487 90.2C520.487 120 535.888 134.6 560.288 134.6C572.288 134.6 582.287 129.8 588.688 119.6C589.488 123.8 590.288 128.2 590.888 132.6Z" />
</g>
</svg>
<svg style="width:64px!important;height:64px!important;" version="1.1" viewBox="0 0 80.07457 77.738579" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g transform="translate(-101.33 -150.79)"><g transform="matrix(.48387 0 0 .46976 85.495 54.406)" stroke-linecap="round"><rect x="37.96" y="210.41" width="155" height="155" fill="#6195ff" stroke="#6195ff" stroke-linejoin="round" stroke-miterlimit="0" stroke-width="10.487"/><circle cx="114.81" cy="287.81" r="72.5" fill="#6195ff" stroke="#fff" stroke-width="10.487"/><path transform="matrix(1.0092 0 0 1 13.541 169.9)" d="m71.06 53.205c19.502 7.6536 36.18 22.289 46.302 40.632 5.4357 9.8509 9.0322 20.805 9.7225 32.035 0.69032 11.23-1.608 22.733-7.2296 32.479-5.6217 9.746-14.654 17.624-25.33 21.177-10.676 3.5525-22.927 2.5584-32.537-3.2924-8.789-5.3507-15.11-14.759-16.264-24.983-0.57692-5.1124 0.10484-10.37 2.0275-15.142 1.9227-4.772 5.0885-9.0458 9.1339-12.224 4.2357-3.3282 9.3857-5.4263 14.706-6.2688 5.3206-0.84242 10.805-0.45108 16.025 0.87925 10.44 2.6606 19.634 8.9639 27.477 16.351 3.9951 3.763 7.705 7.8354 11.91 11.363 4.2048 3.5271 9.0018 6.5351 14.36 7.7252 5.6859 1.2631 11.827 0.34928 16.899-2.5144 5.0719-2.8637 9.0266-7.6505 10.882-13.172" fill="none" stroke="#fff" stroke-width="10.44"/></g></g></svg>
</div>
<div class="message-container">
<div class="alert-icon">
Expand All @@ -94,13 +80,20 @@
</svg>
</div>
<h1>
Quota d'utilisation dépassé
<br><small>
Daily Usage Limit Reached.
</small>
</h1>
<p class="message">
Le plafond quotidien d'utilisation de ce site a été atteint. Si vous en êtes le propriétaire, vous pouvez mettre à niveau votre abonnement depuis votre <a href="https://cloud.dokos.io">compte Dokos Cloud</a>.
<br><small>
Daily usage limit is reached for this site. If you are the owner of this site, you can upgrade your plan
from your <a href="https://frappecloud.com/dashboard">Frappe Cloud Dashboard</a>.
from your <a href="https://cloud.dokos.io">Dokos Cloud Dashboard</a>.
</small>
</p>
</div>
<div style="position:fixed;bottom:16px;right:16px;opacity:0.7;font-size:smaller;">Hébergé par Dokos SAS. Propulsé par le logiciel Frappe Press.</div>
</div>
</body>

Expand Down
31 changes: 10 additions & 21 deletions agent/pages/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>Frappe Cloud</title>
<title>Dokos Cloud</title>
<style>
html {
-webkit-font-smoothing: antialiased;
Expand Down Expand Up @@ -67,25 +67,7 @@
<body>
<div class="container">
<div class="logo">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 616 139" fill="none">
<path
d="M4 64.8841V132.392H30.9045V87.9678L78.8062 87.9289V64.8469L4 64.8841Z"
fill="#3C88F7" />
<path
d="M85.9937 9.59998H4.03442V32.6431H85.9937V9.59998Z"
fill="#3C88F7" />
<g class="text-black" fill="currentColor">
<path
d="M257.4 58.4C257.2 24.2 232.4 9.19999 202 9.19999C165.4 9.19999 141.2 32.4 141.2 73C141.2 111.4 163 134.8 200.8 134.8C232.8 134.8 254.4 119 257.4 89.2L231.8 88C228.8 104 218 113.2 201.4 113.2C180.8 113.2 167.4 99 167.4 72C167.4 46.2 180 30.4 201.4 30.4C220.6 30.4 230.4 40.8 232 59.2L257.4 58.4Z" />
<path d="M299.548 5H274.748V132.6H299.548V5Z" />
<path
d="M315.991 90C315.991 118 331.991 134.6 361.191 134.6C392.191 134.6 409.191 116.8 409.191 89C409.191 61.4 393.391 43.8 364.391 43.8C333.191 43.8 315.991 62.2 315.991 90ZM342.191 89.4C342.191 73.4 350.591 63.6 363.391 63.6C375.791 63.6 382.991 73.4 382.991 89.4C382.991 105 374.791 115 362.391 115C349.791 115 342.191 105 342.191 89.4Z" />
<path
d="M481.534 123.6V132.6H504.134V45.6H479.334V99.4C475.934 108 470.534 113 463.134 113C453.134 113 448.334 106.8 448.334 92V45.6H423.534V98.6C423.534 124 435.134 134.6 454.734 134.6C467.334 134.6 476.734 128.6 482.134 115.8L481.534 123.6Z" />
<path
d="M587.288 88C587.288 101.6 581.087 114.8 566.487 114.8C555.087 114.8 546.688 106 546.688 89.2C546.688 72.6 555.088 63.6 567.288 63.6C579.288 63.6 587.288 72.2 587.288 88ZM590.888 132.6H612.488V5H587.688V53.8C582.088 47.2 573.687 43.8 562.087 43.8C537.487 43.8 520.487 60.8 520.487 90.2C520.487 120 535.888 134.6 560.288 134.6C572.288 134.6 582.287 129.8 588.688 119.6C589.488 123.8 590.288 128.2 590.888 132.6Z" />
</g>
</svg>
<svg style="width:64px!important;height:64px!important;" version="1.1" viewBox="0 0 80.07457 77.738579" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g transform="translate(-101.33 -150.79)"><g transform="matrix(.48387 0 0 .46976 85.495 54.406)" stroke-linecap="round"><rect x="37.96" y="210.41" width="155" height="155" fill="#6195ff" stroke="#6195ff" stroke-linejoin="round" stroke-miterlimit="0" stroke-width="10.487"/><circle cx="114.81" cy="287.81" r="72.5" fill="#6195ff" stroke="#fff" stroke-width="10.487"/><path transform="matrix(1.0092 0 0 1 13.541 169.9)" d="m71.06 53.205c19.502 7.6536 36.18 22.289 46.302 40.632 5.4357 9.8509 9.0322 20.805 9.7225 32.035 0.69032 11.23-1.608 22.733-7.2296 32.479-5.6217 9.746-14.654 17.624-25.33 21.177-10.676 3.5525-22.927 2.5584-32.537-3.2924-8.789-5.3507-15.11-14.759-16.264-24.983-0.57692-5.1124 0.10484-10.37 2.0275-15.142 1.9227-4.772 5.0885-9.0458 9.1339-12.224 4.2357-3.3282 9.3857-5.4263 14.706-6.2688 5.3206-0.84242 10.805-0.45108 16.025 0.87925 10.44 2.6606 19.634 8.9639 27.477 16.351 3.9951 3.763 7.705 7.8354 11.91 11.363 4.2048 3.5271 9.0018 6.5351 14.36 7.7252 5.6859 1.2631 11.827 0.34928 16.899-2.5144 5.0719-2.8637 9.0266-7.6505 10.882-13.172" fill="none" stroke="#fff" stroke-width="10.44"/></g></g></svg>
</div>
<div class="message-container">
<div class="alert-icon">
Expand All @@ -96,12 +78,19 @@
</svg>
</div>
<h1>
Ce site n'existe pas… ou plus.
<br><small>
Are you lost?
</small>
</h1>
<p class="message">
Why don't you start over from <a href="https://frappecloud.com">Frappe Cloud</a>.
Rendez-vous sur <a href="https://cloud.dokos.io">Dokos Cloud</a>.
<br><small>
Why don't you start over from <a href="https://cloud.dokos.io">Dokos Cloud</a>.
</small>
</p>
</div>
</div>
<div style="position:fixed;bottom:16px;right:16px;opacity:0.7;font-size:smaller;">Hébergé par Dokos SAS. Propulsé par le logiciel Frappe Press.</div>
</body>
</html>
31 changes: 10 additions & 21 deletions agent/pages/suspended.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>This Site is Suspended</title>
<title>Site suspendu / This Site is Suspended</title>
<style>
html {
-webkit-font-smoothing: antialiased;
Expand Down Expand Up @@ -67,25 +67,7 @@
<body>
<div class="container">
<div class="logo">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 616 139" fill="none">
<path
d="M4 64.8841V132.392H30.9045V87.9678L78.8062 87.9289V64.8469L4 64.8841Z"
fill="#3C88F7" />
<path
d="M85.9937 9.59998H4.03442V32.6431H85.9937V9.59998Z"
fill="#3C88F7" />
<g class="text-black" fill="currentColor">
<path
d="M257.4 58.4C257.2 24.2 232.4 9.19999 202 9.19999C165.4 9.19999 141.2 32.4 141.2 73C141.2 111.4 163 134.8 200.8 134.8C232.8 134.8 254.4 119 257.4 89.2L231.8 88C228.8 104 218 113.2 201.4 113.2C180.8 113.2 167.4 99 167.4 72C167.4 46.2 180 30.4 201.4 30.4C220.6 30.4 230.4 40.8 232 59.2L257.4 58.4Z" />
<path d="M299.548 5H274.748V132.6H299.548V5Z" />
<path
d="M315.991 90C315.991 118 331.991 134.6 361.191 134.6C392.191 134.6 409.191 116.8 409.191 89C409.191 61.4 393.391 43.8 364.391 43.8C333.191 43.8 315.991 62.2 315.991 90ZM342.191 89.4C342.191 73.4 350.591 63.6 363.391 63.6C375.791 63.6 382.991 73.4 382.991 89.4C382.991 105 374.791 115 362.391 115C349.791 115 342.191 105 342.191 89.4Z" />
<path
d="M481.534 123.6V132.6H504.134V45.6H479.334V99.4C475.934 108 470.534 113 463.134 113C453.134 113 448.334 106.8 448.334 92V45.6H423.534V98.6C423.534 124 435.134 134.6 454.734 134.6C467.334 134.6 476.734 128.6 482.134 115.8L481.534 123.6Z" />
<path
d="M587.288 88C587.288 101.6 581.087 114.8 566.487 114.8C555.087 114.8 546.688 106 546.688 89.2C546.688 72.6 555.088 63.6 567.288 63.6C579.288 63.6 587.288 72.2 587.288 88ZM590.888 132.6H612.488V5H587.688V53.8C582.088 47.2 573.687 43.8 562.087 43.8C537.487 43.8 520.487 60.8 520.487 90.2C520.487 120 535.888 134.6 560.288 134.6C572.288 134.6 582.287 129.8 588.688 119.6C589.488 123.8 590.288 128.2 590.888 132.6Z" />
</g>
</svg>
<svg style="width:64px!important;height:64px!important;" version="1.1" viewBox="0 0 80.07457 77.738579" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g transform="translate(-101.33 -150.79)"><g transform="matrix(.48387 0 0 .46976 85.495 54.406)" stroke-linecap="round"><rect x="37.96" y="210.41" width="155" height="155" fill="#6195ff" stroke="#6195ff" stroke-linejoin="round" stroke-miterlimit="0" stroke-width="10.487"/><circle cx="114.81" cy="287.81" r="72.5" fill="#6195ff" stroke="#fff" stroke-width="10.487"/><path transform="matrix(1.0092 0 0 1 13.541 169.9)" d="m71.06 53.205c19.502 7.6536 36.18 22.289 46.302 40.632 5.4357 9.8509 9.0322 20.805 9.7225 32.035 0.69032 11.23-1.608 22.733-7.2296 32.479-5.6217 9.746-14.654 17.624-25.33 21.177-10.676 3.5525-22.927 2.5584-32.537-3.2924-8.789-5.3507-15.11-14.759-16.264-24.983-0.57692-5.1124 0.10484-10.37 2.0275-15.142 1.9227-4.772 5.0885-9.0458 9.1339-12.224 4.2357-3.3282 9.3857-5.4263 14.706-6.2688 5.3206-0.84242 10.805-0.45108 16.025 0.87925 10.44 2.6606 19.634 8.9639 27.477 16.351 3.9951 3.763 7.705 7.8354 11.91 11.363 4.2048 3.5271 9.0018 6.5351 14.36 7.7252 5.6859 1.2631 11.827 0.34928 16.899-2.5144 5.0719-2.8637 9.0266-7.6505 10.882-13.172" fill="none" stroke="#fff" stroke-width="10.44"/></g></g></svg>
</div>
<div class="message-container">
<div class="alert-icon">
Expand All @@ -96,13 +78,20 @@
</svg>
</div>
<h1>
Ce site a été suspendu
<br><small>
This Site is Suspended.
</small>
</h1>
<p class="message">
Ce site a été suspendu en raison d'un dépassement des limites du site ou d'un défaut de paiement. Si vous en êtes le propriétaire, rendez-vous sur votre <a href="https://cloud.dokos.io">compte Dokos Cloud</a> pour résoudre le problème.
<br><small>
This site has been suspended due to exceeding site limits or a payment failure. If you are the owner
of this site, resolve issues related to your site's plan from the <a href="https://frappecloud.com/dashboard">Frappe Cloud Dashboard</a>.
of this site, resolve issues related to your site's plan from the <a href="https://cloud.dokos.io">Dokos Cloud Dashboard</a>.
</small>
</p>
</div>
</div>
<div style="position:fixed;bottom:16px;right:16px;opacity:0.7;font-size:smaller;">Hébergé par Dokos SAS. Propulsé par le logiciel Frappe Press.</div>
</body>
</html>
Loading

0 comments on commit 8e2785c

Please sign in to comment.