Skip to content

Commit

Permalink
Merge pull request #6665 from samvera/creating-dynamic-copyright-for-…
Browse files Browse the repository at this point in the history
…translations

🧹 Add current_year for Copyright
  • Loading branch information
dlpierce authored Feb 2, 2024
2 parents ff6dd2c + 8866753 commit 976a45c
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/views/shared/_footer.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</div>
<div class="navbar-right">
<div class="navbar-text text-right">
<p><%= t('hyrax.footer.copyright_html') %></p>
<p><%= t('hyrax.footer.copyright_html', current_year: Time.current.year) %></p>
<p><%= t('hyrax.background_attribution_html') %></p>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/hyrax/templates/config/locales/hyrax.de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ de:
directory:
suffix: "@ Example.org"
footer:
copyright_html: "<strong>Copyright © 2022 Samvera lizenziert</strong> unter der Apache Lizenz, Version 2.0"
copyright_html: "<strong>Copyright &copy; %{current_year} Samvera lizenziert</strong> unter der Apache Lizenz, Version 2.0"
service_html: Ein Dienst von <a href="http://samvera.org/" class="navbar-link" target="_blank">Samvera</a> .
institution_name: Institution
institution_name_full: Name des Instituts
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/hyrax/templates/config/locales/hyrax.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ en:
directory:
suffix: "@example.org"
footer:
copyright_html: "<strong>Copyright &copy; 2022 Samvera</strong> Licensed under the Apache License, Version 2.0"
copyright_html: "<strong>Copyright &copy; %{current_year} Samvera</strong> Licensed under the Apache License, Version 2.0"
service_html: A service of <a href="http://samvera.org/" class="navbar-link" target="_blank">Samvera</a>.
institution_name: Institution
institution_name_full: The Institution Name
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/hyrax/templates/config/locales/hyrax.es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ es:
directory:
suffix: "@example.org"
footer:
copyright_html: "<strong>Copyright &copy; 2022 Samvera</strong> bajo licencia de Apache, Version 2.0"
copyright_html: "<strong>Copyright &copy; %{current_year} Samvera</strong> bajo licencia de Apache, Version 2.0"
service_html: Un servicio de <a href="http://samvera.org/" class="navbar-link" target="_blank">Samvera</a>.
institution_name: institución
institution_name_full: El nombre de la institución
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/hyrax/templates/config/locales/hyrax.fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ fr:
directory:
suffix: "@ Example.org"
footer:
copyright_html: "<strong>Copyright © 2022 Samvera</strong> Licence sous Licence Apache, Version 2.0"
copyright_html: "<strong>Copyright &copy; %{current_year} Samvera</strong> Licence sous Licence Apache, Version 2.0"
service_html: Un service de <a href="http://samvera.org/" class="navbar-link" target="_blank">Samvera</a> .
institution_name: Institution
institution_name_full: Nom de l'établissement
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/hyrax/templates/config/locales/hyrax.it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ it:
directory:
suffix: "@ example.org"
footer:
copyright_html: "<strong>Copyright © 2022 Samvera</strong> Licenza sotto la licenza Apache, versione 2.0"
copyright_html: "<strong>Copyright &copy; %{current_year} Samvera</strong> Licenza sotto la licenza Apache, versione 2.0"
service_html: Un servizio di <a href="http://samvera.org/" class="navbar-link" target="_blank">Samvera</a> .
institution_name: Istituzione
institution_name_full: Nome dell'Istituzione
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pt-BR:
directory:
suffix: "@ Example.org"
footer:
copyright_html: "<strong>Copyright © 2022 Samvera </strong> Licenciado sob a Licença Apache, Versão 2.0"
copyright_html: "<strong>Copyright &copy; %{current_year} Samvera </strong> Licenciado sob a Licença Apache, Versão 2.0"
service_html: Um serviço de <a href="http://samvera.org/" class="navbar-link" target="_blank">Samvera</a> .
institution_name: Instituição
institution_name_full: O Nome da Instituição
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/hyrax/templates/config/locales/hyrax.zh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ zh:
directory:
suffix: "@example.org"
footer:
copyright_html: "<strong>版权所有 &copy; 2022 Samvera</strong> 根据Apache许可证2.0版许可"
copyright_html: "<strong>版权所有 &copy; %{current_year} Samvera</strong> 根据Apache许可证2.0版许可"
service_html: 的服务<a href="http://samvera.org/" class="navbar-link" target="_blank">Samvera</a>.
institution_name: 机构
institution_name_full: 机构名称
Expand Down

0 comments on commit 976a45c

Please sign in to comment.