Browse Source

better handle footer translation

footer_internat
meaz 2 months ago
parent
commit
ffd6a658f1
Signed by: meaz GPG Key ID: CD7A47B2F1ED43B4
  1. 24
      languages.yaml
  2. 23
      templates/de/partials/footer.html.twig
  3. 23
      templates/es/partials/footer.html.twig
  4. 23
      templates/fr/partials/footer.html.twig
  5. 23
      templates/it/partials/footer.html.twig
  6. 6
      templates/partials/footer.html.twig

24
languages.yaml

@ -0,0 +1,24 @@
en:
Terms_Of_Service: "Terms Of Service"
Privacy_Policy: "Privacy Policy"
Changelog: "Changelog"
fr:
Terms_Of_Service: "Conditions d'utilisation"
Privacy_Policy: "Politique de confidentialité"
Changelog: "Changelog"
es:
Terms_Of_Service: "Al utilizar cualquiera"
Privacy_Policy: "Política de Privacidad"
Changelog: "Changelog"
de:
Terms_Of_Service: "Nutzungsbedingungen"
Privacy_Policy: "Datenschutzerklärung"
Changelog: "Changelog"
it:
Terms_Of_Service: "Utilizzando i servizi"
Privacy_Policy: "Informativa sulla privacy"
Changelog: "Changelog"

23
templates/de/partials/footer.html.twig

@ -1,23 +0,0 @@
{% set base_url = page.parent.url %}
<footer>
<div id="footer-logo" ><a href="{{ base_url }}/contact"></a></div>
<div id="footer-links">
<ul class="footer-links">
<li>Copyleft Disroot.org</li>
<li><span class="dot"></span></li>
<li><a href="https://disroot.org/tos">Nutzungsbedingungen</a></li>
<li><span class="dot"></span></li>
<li><a href="https://disroot.org/privacy_policy">Datenschutzerklärung</a></li>
<li><span class="dot"></span></li>
<li><a href="https://disroot.org/changelog">Changelog</a></li>
</ul>
</div>
<div id="footer-icons">
<ul class="footer-icons">
<li><a href="https://hub.disroot.org/channel/disroot"><i class="fa fa-hubzilla fa-fw fa-3x"></i></a></li>
<li><a href="https://social.weho.st/@disroot"><i class="fa fa-mastodon fa-fw fa-3x"></i></a></li>
<li><a href="{{ base_url }}/blog.atom"><i class="fa fa-rss-square fa-fw fa-3x"></i></a></li>
</ul>
</div>
</footer>

23
templates/es/partials/footer.html.twig

@ -1,23 +0,0 @@
{% set base_url = page.parent.url %}
<footer>
<div id="footer-logo" ><a href="{{ base_url }}/contact"></a></div>
<div id="footer-links">
<ul class="footer-links">
<li>Copyleft Disroot.org</li>
<li><span class="dot"></span></li>
<li><a href="https://disroot.org/tos">Al utilizar cualquiera</a></li>
<li><span class="dot"></span></li>
<li><a href="https://disroot.org/privacy_policy">Política de Privacidad</a></li>
<li><span class="dot"></span></li>
<li><a href="https://disroot.org/changelog">Changelog</a></li>
</ul>
</div>
<div id="footer-icons">
<ul class="footer-icons">
<li><a href="https://hub.disroot.org/channel/disroot"><i class="fa fa-hubzilla fa-fw fa-3x"></i></a></li>
<li><a href="https://social.weho.st/@disroot"><i class="fa fa-mastodon fa-fw fa-3x"></i></a></li>
<li><a href="{{ base_url }}/blog.atom"><i class="fa fa-rss-square fa-fw fa-3x"></i></a></li>
</ul>
</div>
</footer>

23
templates/fr/partials/footer.html.twig

@ -1,23 +0,0 @@
{% set base_url = page.parent.url %}
<footer>
<div id="footer-logo" ><a href="{{ base_url }}/contact"></a></div>
<div id="footer-links">
<ul class="footer-links">
<li>Copyleft Disroot.org</li>
<li><span class="dot"></span></li>
<li><a href="https://disroot.org/tos">Conditions d'utilisation</a></li>
<li><span class="dot"></span></li>
<li><a href="https://disroot.org/privacy_policy">Politique de confidentialité</a></li>
<li><span class="dot"></span></li>
<li><a href="https://disroot.org/changelog">Changelog</a></li>
</ul>
</div>
<div id="footer-icons">
<ul class="footer-icons">
<li><a href="https://hub.disroot.org/channel/disroot"><i class="fa fa-hubzilla fa-fw fa-3x"></i></a></li>
<li><a href="https://social.weho.st/@disroot"><i class="fa fa-mastodon fa-fw fa-3x"></i></a></li>
<li><a href="{{ base_url }}/blog.atom"><i class="fa fa-rss-square fa-fw fa-3x"></i></a></li>
</ul>
</div>
</footer>

23
templates/it/partials/footer.html.twig

@ -1,23 +0,0 @@
{% set base_url = page.parent.url %}
<footer>
<div id="footer-logo" ><a href="{{ base_url }}/contact"></a></div>
<div id="footer-links">
<ul class="footer-links">
<li>Copyleft Disroot.org</li>
<li><span class="dot"></span></li>
<li><a href="https://disroot.org/tos">Utilizzando i servizi</a></li>
<li><span class="dot"></span></li>
<li><a href="https://disroot.org/privacy_policy">Informativa sulla privacy</a></li>
<li><span class="dot"></span></li>
<li><a href="https://disroot.org/changelog">Changelog</a></li>
</ul>
</div>
<div id="footer-icons">
<ul class="footer-icons">
<li><a href="https://hub.disroot.org/channel/disroot"><i class="fa fa-hubzilla fa-fw fa-3x"></i></a></li>
<li><a href="https://social.weho.st/@disroot"><i class="fa fa-mastodon fa-fw fa-3x"></i></a></li>
<li><a href="{{ base_url }}/blog.atom"><i class="fa fa-rss-square fa-fw fa-3x"></i></a></li>
</ul>
</div>
</footer>

6
templates/partials/footer.html.twig

@ -11,11 +11,11 @@
<ul class="footer-links">
<li>Copyleft Disroot.org</li>
<li><span class="dot"></span></li>
<li><a href="https://disroot.org/tos">Terms Of Service</a></li>
<li><a href="https://disroot.org/tos">{{ 'Terms_Of_Service'|t }}</a></li>
<li><span class="dot"></span></li>
<li><a href="https://disroot.org/privacy_policy">Privacy Policy</a></li>
<li><a href="https://disroot.org/privacy_policy">{{ 'Privacy_Policy'|t }}</a></li>
<li><span class="dot"></span></li>
<li><a href="https://disroot.org/changelog">Changelog</a></li>
<li><a href="https://disroot.org/changelog">{{ 'Changelog'|t }}</a></li>
</ul>
</div>
<div id="footer-icons">

Loading…
Cancel
Save