Skip to content

Commit

Permalink
adds translations to footer
Browse files Browse the repository at this point in the history
  • Loading branch information
sdellis committed Feb 24, 2025
1 parent b33c7aa commit c43cb88
Show file tree
Hide file tree
Showing 6 changed files with 93 additions and 66 deletions.
18 changes: 14 additions & 4 deletions lib/dpul_collections_web/components/footer_component.ex
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,23 @@ defmodule DpulCollectionsWeb.FooterComponent do
<footer class="text-white flex flex-wrap sm:flex-row gap-10 items-center bg-gray-700 px-6 py-6 sm:py-10 sm:px-8 lg:px-10">
<div class="footer-links flex-none w-32 sm:w-60">
<ul class="text-xs">
<li class="py-1"><a href="https://library.princeton.edu/about/policies/copyright-and-permissions-policies">Copyright Policy</a></li>
<li class="py-1"><a href="https://www.princeton.edu/privacy-notice">Privacy Notice</a></li>
<li class="py-1"><a href="https://accessibility.princeton.edu/help">Accessibility Help</a></li>
<li class="py-1">
<a href="https://library.princeton.edu/about/policies/copyright-and-permissions-policies">
<%= gettext("Copyright Policy") %>
</a></li>
<li class="py-1">
<a href="https://www.princeton.edu/privacy-notice">
<%= gettext("Privacy Notice") %>
</a></li>
<li class="py-1">
<a href="https://accessibility.princeton.edu/help">
<%= gettext("Accessibility Help") %>
</a>
</li>
</ul>
</div>
<div class="app_name sm:flex-1 flex-none text-center">
© 2025 The Trustees of Princeton University
© 2025 <%= gettext("The Trustees of Princeton University") %>
</div>
<div class="university-logo flex-none w-24 sm:w-48">
<img src={~p"/images/university-logo.svg"} alt="Princeton University Logo" />
Expand Down
2 changes: 1 addition & 1 deletion lib/dpul_collections_web/components/header_component.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ defmodule DpulCollectionsWeb.HeaderComponent do
</div>
<div class="app_name flex-1">
<.link navigate={~p"/"} class="text-2xl hidden sm:inline-block text-white hover:underline hover:underline-offset-8 hover:decoration-orange-500 hover:decoration-2">
DPUL Collections
<%= gettext("Digital Collections") %>
</.link>
</div>
<div class="menu flex-none">
Expand Down
43 changes: 0 additions & 43 deletions lib/dpul_collections_web/components/lux-components.ex

This file was deleted.

32 changes: 26 additions & 6 deletions priv/gettext/default.pot
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ msgstr ""
msgid "Error!"
msgstr ""

#: lib/dpul_collections_web/components/core_components.ex:102
#: lib/dpul_collections_web/components/core_components.ex:90
#, elixir-autogen, elixir-format
msgid "Hang in there while we get back on track"
msgstr ""
Expand All @@ -27,7 +27,7 @@ msgstr ""
msgid "Search"
msgstr ""

#: lib/dpul_collections_web/components/core_components.ex:97
#: lib/dpul_collections_web/components/core_components.ex:85
#, elixir-autogen, elixir-format
msgid "Something went wrong!"
msgstr ""
Expand All @@ -52,7 +52,7 @@ msgstr ""
msgid "Apply"
msgstr ""

#: lib/dpul_collections_web/components/lux-components.ex:16
#: lib/dpul_collections_web/components/header_component.ex:24
#, elixir-autogen, elixir-format
msgid "Language"
msgstr ""
Expand Down Expand Up @@ -113,17 +113,17 @@ msgstr ""
msgid "We invite you to be inspired by our globally diverse collections of"
msgstr ""

#: lib/dpul_collections_web/components/lux-components.ex:37
#: lib/dpul_collections_web/components/footer_component.ex:21
#, elixir-autogen, elixir-format
msgid "Accessibility Help"
msgstr ""

#: lib/dpul_collections_web/components/lux-components.ex:35
#: lib/dpul_collections_web/components/footer_component.ex:13
#, elixir-autogen, elixir-format
msgid "Copyright Policy"
msgstr ""

#: lib/dpul_collections_web/components/lux-components.ex:36
#: lib/dpul_collections_web/components/footer_component.ex:17
#, elixir-autogen, elixir-format
msgid "Privacy Notice"
msgstr ""
Expand Down Expand Up @@ -162,3 +162,23 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "Year (oldest first)"
msgstr ""

#: lib/dpul_collections_web/live/browse_live.ex:35
#, elixir-autogen, elixir-format
msgid "Browse"
msgstr ""

#: lib/dpul_collections_web/components/header_component.ex:14
#, elixir-autogen, elixir-format
msgid "Digital Collections"
msgstr ""

#: lib/dpul_collections_web/live/browse_live.ex:37
#, elixir-autogen, elixir-format
msgid "Randomize"
msgstr ""

#: lib/dpul_collections_web/components/footer_component.ex:27
#, elixir-autogen, elixir-format
msgid "The Trustees of Princeton University"
msgstr ""
32 changes: 26 additions & 6 deletions priv/gettext/en/LC_MESSAGES/default.po
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ msgstr ""
msgid "Error!"
msgstr ""

#: lib/dpul_collections_web/components/core_components.ex:102
#: lib/dpul_collections_web/components/core_components.ex:90
#, elixir-autogen, elixir-format
msgid "Hang in there while we get back on track"
msgstr ""
Expand All @@ -27,7 +27,7 @@ msgstr ""
msgid "Search"
msgstr ""

#: lib/dpul_collections_web/components/core_components.ex:97
#: lib/dpul_collections_web/components/core_components.ex:85
#, elixir-autogen, elixir-format
msgid "Something went wrong!"
msgstr ""
Expand All @@ -52,7 +52,7 @@ msgstr ""
msgid "Apply"
msgstr ""

#: lib/dpul_collections_web/components/lux-components.ex:16
#: lib/dpul_collections_web/components/header_component.ex:24
#, elixir-autogen, elixir-format
msgid "Language"
msgstr ""
Expand Down Expand Up @@ -113,17 +113,17 @@ msgstr ""
msgid "We invite you to be inspired by our globally diverse collections of"
msgstr ""

#: lib/dpul_collections_web/components/lux-components.ex:37
#: lib/dpul_collections_web/components/footer_component.ex:21
#, elixir-autogen, elixir-format
msgid "Accessibility Help"
msgstr ""

#: lib/dpul_collections_web/components/lux-components.ex:35
#: lib/dpul_collections_web/components/footer_component.ex:13
#, elixir-autogen, elixir-format
msgid "Copyright Policy"
msgstr ""

#: lib/dpul_collections_web/components/lux-components.ex:36
#: lib/dpul_collections_web/components/footer_component.ex:17
#, elixir-autogen, elixir-format
msgid "Privacy Notice"
msgstr ""
Expand Down Expand Up @@ -162,3 +162,23 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "Year (oldest first)"
msgstr ""

#: lib/dpul_collections_web/live/browse_live.ex:35
#, elixir-autogen, elixir-format
msgid "Browse"
msgstr ""

#: lib/dpul_collections_web/components/header_component.ex:14
#, elixir-autogen, elixir-format, fuzzy
msgid "Digital Collections"
msgstr ""

#: lib/dpul_collections_web/live/browse_live.ex:37
#, elixir-autogen, elixir-format
msgid "Randomize"
msgstr ""

#: lib/dpul_collections_web/components/footer_component.ex:27
#, elixir-autogen, elixir-format
msgid "The Trustees of Princeton University"
msgstr ""
32 changes: 26 additions & 6 deletions priv/gettext/es/LC_MESSAGES/default.po
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ msgstr ""
msgid "Error!"
msgstr "¡Error!"

#: lib/dpul_collections_web/components/core_components.ex:102
#: lib/dpul_collections_web/components/core_components.ex:90
#, elixir-autogen, elixir-format
msgid "Hang in there while we get back on track"
msgstr "Aguanta mientras volvemos al buen camino"
Expand All @@ -27,7 +27,7 @@ msgstr "Aguanta mientras volvemos al buen camino"
msgid "Search"
msgstr "Buscar"

#: lib/dpul_collections_web/components/core_components.ex:97
#: lib/dpul_collections_web/components/core_components.ex:85
#, elixir-autogen, elixir-format
msgid "Something went wrong!"
msgstr "¡Algo salió mal!"
Expand All @@ -52,7 +52,7 @@ msgstr "Descargar"
msgid "Apply"
msgstr "Aplicar"

#: lib/dpul_collections_web/components/lux-components.ex:16
#: lib/dpul_collections_web/components/header_component.ex:24
#, elixir-autogen, elixir-format
msgid "Language"
msgstr "Idioma"
Expand Down Expand Up @@ -113,17 +113,17 @@ msgstr "Artículos efímeros. Estamos ansiosos por ver cómo utilizas estos mate
msgid "We invite you to be inspired by our globally diverse collections of"
msgstr "Te invitamos a inspirarte con nuestras colecciones globalmente diversas de"

#: lib/dpul_collections_web/components/lux-components.ex:37
#: lib/dpul_collections_web/components/footer_component.ex:21
#, elixir-autogen, elixir-format
msgid "Accessibility Help"
msgstr "Ayuda de accesibilidad"

#: lib/dpul_collections_web/components/lux-components.ex:35
#: lib/dpul_collections_web/components/footer_component.ex:13
#, elixir-autogen, elixir-format
msgid "Copyright Policy"
msgstr "Política de derechos de autor"

#: lib/dpul_collections_web/components/lux-components.ex:36
#: lib/dpul_collections_web/components/footer_component.ex:17
#, elixir-autogen, elixir-format
msgid "Privacy Notice"
msgstr "Aviso de privacidad"
Expand Down Expand Up @@ -162,3 +162,23 @@ msgstr "Año (más reciente primero)"
#, elixir-autogen, elixir-format
msgid "Year (oldest first)"
msgstr "Año (más antigua primero)"

#: lib/dpul_collections_web/live/browse_live.ex:35
#, elixir-autogen, elixir-format
msgid "Browse"
msgstr "navegar"

#: lib/dpul_collections_web/components/header_component.ex:14
#, elixir-autogen, elixir-format, fuzzy
msgid "Digital Collections"
msgstr "Explora nuestras colecciones"

#: lib/dpul_collections_web/live/browse_live.ex:37
#, elixir-autogen, elixir-format
msgid "Randomize"
msgstr "Aleatorizar"

#: lib/dpul_collections_web/components/footer_component.ex:27
#, elixir-autogen, elixir-format
msgid "The Trustees of Princeton University"
msgstr "Los fideicomisarios de la Universidad de Princeton"

0 comments on commit c43cb88

Please sign in to comment.