Skip to content

Commit

Permalink
translations
Browse files Browse the repository at this point in the history
  • Loading branch information
michelson committed Aug 11, 2023
1 parent 62c5132 commit 944e225
Show file tree
Hide file tree
Showing 19 changed files with 169 additions and 99 deletions.
4 changes: 2 additions & 2 deletions app/views/articles/_article_block.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
<% end %>

<strong class="text-xs font-bold leading-relaxed tracking-widest uppercase">
<%= gettext("by") %> <%= post.user.username %> · <%= l post.created_at, format: :short %>.
<%= t("articles.by") %> <%= post.user.username %> · <%= l post.created_at, format: :short %>.
</strong>

<p class="mt-4 text-sm tracking-wide text-ellipsis overflow-hidden h-10">
<%= post.excerpt %>
</p>

<%= link_to article_path(post), class: "inline-flex items-center py-4 mt-3 text-xs font-bold tracking-widest text-black uppercase transition duration-500 ease-in-out transform border-b-2 border-black dark:border-white dark:text-white hover:text-gray-600 hover:border-gray-600" do %>
<%= gettext("Read Now") %>
<%= t("articles.read_now") %>
<svg
fill="none"
stroke="currentColor"
Expand Down
6 changes: 3 additions & 3 deletions app/views/articles/_article_highlights.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
<div class="relative max-w-lg mx-auto divide-y-2 divide-gray-200 dark:divide-gray-100 lg:max-w-7xl">
<div class="mx-2 sm:mx-0">
<h2 class="text-xl sm:text-3xl tracking-tight font-extrabold text-gray-900 dark:text-gray-100 sm:text-4xl">
<%= gettext("Recent publications") %>
<%= t("articles.recent_publications") %>
</h2>
<div class="px-4 flex items-center justify-between sm:px-6 lg:px-0">
<h2 id="trending-heading" class="mt-3 text-sm sm:text-xl text-gray-500 dark:text-gray-300 sm:mt-4">
<%= gettext("Selected articles & reviews from Rauversion community and editorial") %>
<%= t("articles.selected_articles") %>
</h2>
<a href="/articles" class="hidden sm:block text-sm font-semibold text-brand-600 hover:text-brand-500" data-phx-link="redirect" data-phx-link-state="push">
<%= gettext("See everything") %>
<%= t("see_everything") %>
<span aria-hidden="true"></span>
</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/articles/_article_item_small.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
itemprop="author" itemtype="http://schema.org/Person">
<span itemprop="name" class="leading-5 box-border">
<span class="inline-block not-italic normal-case box-border text-gray-300">
<span class="m-0 not-italic normal-case box-border">By </span>
<span class="m-0 not-italic normal-case box-border"><%= t("articles.by") %> </span>
<%= post.user.username %>
</span>
</span>
Expand Down
2 changes: 1 addition & 1 deletion app/views/articles/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"
/>
</svg>
<span><%= gettext("Article settings") %></span>
<span><%= t("articles.article_settings") %></span>
</button>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions app/views/articles/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<div class="relative max-w-lg mx-auto divide-y-2 divide-gray-200 dark:divide-gray-100 lg:max-w-7xl">
<div>
<h2 class="text-3xl tracking-tight font-extrabold text-gray-900 dark:text-gray-100 sm:text-4xl">
<%= gettext("Recent publications") %>
<%= t("articles.recent_publications") %>
</h2>

<p class="mt-3 text-xl text-gray-500 dark:text-gray-300 sm:mt-4">
<%= gettext("Selected articles & reviews from Rauversion community and editorial") %>
<%= t("articles.selected_articles") %>
</p>
</div>

Expand Down Expand Up @@ -35,7 +35,7 @@

<div class="col-span-6 lg:col-span-1 space-y-4">
<h3 class="border-b uppercase">
<%= gettext("The Latest") %>
<%= t("articles.the_latest") %>
</h3>

<% @articles.each do |post| %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/articles/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"
/>
</svg>
<span><%= gettext("Article settings") %></span>
<span><%= t("articles.article_settings") %></span>
</button>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions app/views/devise/registrations/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
<div class="mt-20">

<h2 class="mt-6 text-3xl font-extrabold text-gray-900 dark:text-gray-100">
<%= gettext("Sign in to your account") %>
<%= t("users.sign_in") %>
</h2>
<p class="hidden mt-2 text-sm text-gray-600 dark:text-gray-400">
<%= gettext("Or") %>
<%= t("users.or") %>
<a href="#" class="font-medium text-brand-600 hover:text-brand-500">
<%= gettext("start your 14-day free trial") %>
<%= t("start your 14-day free trial") %>
</a>
</p>
</div>
Expand Down
4 changes: 2 additions & 2 deletions app/views/devise/shared/_links.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
</div>
<div class="relative flex justify-center text-sm">
<span class="px-2 bg-white rounded-lg text-gray-500">
<%= link_to gettext("Register"), new_user_registration_path %>
<%= gettext("Or continue with") %>
<%= link_to t("users.register"), new_user_registration_path %>
<%= t("users.or") %>
</span>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions app/views/events/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<% if @upcoming_events.any? %>
<div>
<h2 class="text-3xl tracking-tight font-extrabold text-gray-900 dark:text-gray-100 sm:text-4xl">
<%= gettext("Upcoming Events") %>
<%= gettext("events.upcoming") %>
</h2>
<p class="mt-3 text-xl text-gray-500 dark:text-gray-300 sm:mt-4">
<%= gettext("Upcoming Events from the Rauversion community") %>
<%= gettext("event.upcoming_sub") %>
</p>
</div>

Expand Down Expand Up @@ -43,7 +43,7 @@
<div class="relative max-w-lg mx-auto divide-y-2 divide-gray-200 dark:divide-gray-100 lg:max-w-7xl">
<div>
<h2 class="text-3xl tracking-tight font-extrabold text-gray-900 dark:text-gray-100 sm:text-4xl">
<%= gettext("Past Events") %>
<%= t("events.past") %>
</h2>
</div>

Expand Down
16 changes: 8 additions & 8 deletions app/views/events/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<div>
<% if "Rauversion.Events.has_access_to_streaming?(@event, @current_user)" %>
<%= link_to event_livestream_path(@event.signed_id), class: "space-x-2 inline-flex items-center rounded border border-transparent bg-indigo-600 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2" do %>
<span><%= gettext("Watch live stream") %></span>
<span><%= t("events.watch_live") %></span>
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
Expand All @@ -53,7 +53,7 @@
<%= link_to new_event_event_purchase_path(@event),
class: "inline-flex justify-center rounded-2xl bg-brand-600 p-4 text-base font-semibold text-white hover:bg-brand-500 focus:outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-brand-500 active:text-white/70",
data: { turbo_frame: 'modal' } do %>
Get your tickets
<%= t("events.get_tickets") %>
<% end %>
</div>
</div>
Expand Down Expand Up @@ -89,7 +89,7 @@
<dl class="mt-10 grid grid-cols-2 gap-y-6 gap-x-10 sm:mt-16 sm:gap-y-10 sm:gap-x-16 sm:text-center lg:auto-cols-auto lg:grid-flow-col lg:grid-cols-none lg:justify-start lg:text-left">
<div>
<dt class="font-mono text-sm text-brand-600">
<%= @event.participant_label || gettext("Speakers") %>
<%= @event.participant_label || t("events.speakers") %>
</dt>
<dd class="mt-0.5 text-xl sm:text-2xl font-semibold tracking-tight text-brand-100">
<%= @event.event_hosts.size %>
Expand All @@ -98,7 +98,7 @@

<div>
<dt class="font-mono text-sm text-brand-600">
<%= gettext("People Attending") %>
<%= t("events.people_attending") %>
</dt>
<dd class="mt-0.5 text-xl sm:text-2xl font-semibold tracking-tight text-brand-100">
<%= @event.purchased_items.where(state: "paid").size %>
Expand All @@ -107,7 +107,7 @@

<div>
<dt class="font-mono text-sm text-brand-600">
<%= gettext("Venue") %>
<%= t("events.venue") %>
</dt>
<dd class="mt-0.5 text-xl sm:text-2xl font-semibold tracking-tight text-brand-100">
<%= @event.venue %>
Expand All @@ -116,7 +116,7 @@

<div>
<dt class="font-mono text-sm text-brand-600">
<%= gettext("Location") %>
<%= t("events.location") %>
</dt>
<dd class="mt-0.5 text-xl sm:text-2xl font-semibold tracking-tight text-brand-100">
<%= @event.city %>
Expand Down Expand Up @@ -193,9 +193,9 @@
<path fill="#0F172A" d="M52 32V15.2h5.736c1.968 0 3.584.352 4.848 1.056 1.28.688 2.224 1.664 2.832 2.928.624 1.248.936 2.72.936 4.416 0 1.696-.312 3.176-.936 4.44-.608 1.248-1.552 2.224-2.832 2.928-1.264.688-2.88 1.032-4.848 1.032H52zm3.072-2.64h2.52c1.408 0 2.52-.224 3.336-.672a3.958 3.958 0 001.752-1.968c.352-.864.528-1.904.528-3.12 0-1.2-.176-2.232-.528-3.096a3.944 3.944 0 00-1.752-1.992c-.816-.464-1.928-.696-3.336-.696h-2.52V29.36zm18.263 2.928c-1.2 0-2.264-.256-3.192-.768a5.559 5.559 0 01-2.184-2.16c-.529-.928-.793-2-.793-3.216 0-1.232.257-2.328.769-3.288a5.687 5.687 0 012.16-2.232c.927-.544 2.016-.816 3.264-.816 1.168 0 2.2.256 3.096.768a5.407 5.407 0 012.088 2.112c.511.88.767 1.864.767 2.952 0 .176-.008.36-.023.552 0 .192-.009.392-.025.6h-9.047c.063.928.383 1.656.96 2.184.591.528 1.303.792 2.136.792.623 0 1.143-.136 1.56-.408.431-.288.752-.656.96-1.104h3.12a5.68 5.68 0 01-1.128 2.064 5.423 5.423 0 01-1.92 1.44c-.753.352-1.609.528-2.569.528zm.024-9.984a3.23 3.23 0 00-1.992.648c-.577.416-.945 1.056-1.105 1.92h5.928c-.047-.784-.335-1.408-.864-1.872-.527-.464-1.183-.696-1.967-.696zm12.927 9.984c-1.216 0-2.288-.264-3.216-.792a5.851 5.851 0 01-2.208-2.208c-.528-.944-.792-2.024-.792-3.24 0-1.216.264-2.296.792-3.24A5.851 5.851 0 0183.07 20.6c.928-.528 2-.792 3.216-.792 1.52 0 2.8.4 3.84 1.2 1.04.784 1.704 1.872 1.992 3.264h-3.24a2.299 2.299 0 00-.96-1.344c-.464-.336-1.016-.504-1.656-.504-.848 0-1.568.32-2.16.96-.592.64-.888 1.528-.888 2.664 0 1.136.296 2.024.888 2.664.592.64 1.312.96 2.16.96.64 0 1.192-.16 1.656-.48.48-.32.8-.776.96-1.368h3.24c-.288 1.344-.952 2.424-1.992 3.24-1.04.816-2.32 1.224-3.84 1.224zm12.903 0c-1.2 0-2.264-.256-3.192-.768a5.559 5.559 0 01-2.184-2.16c-.528-.928-.792-2-.792-3.216 0-1.232.256-2.328.768-3.288a5.687 5.687 0 012.16-2.232c.928-.544 2.016-.816 3.264-.816 1.168 0 2.2.256 3.096.768a5.407 5.407 0 012.088 2.112c.512.88.768 1.864.768 2.952 0 .176-.008.36-.024.552 0 .192-.008.392-.024.6h-9.048c.064.928.384 1.656.96 2.184.592.528 1.304.792 2.136.792.624 0 1.144-.136 1.56-.408.432-.288.752-.656.96-1.104h3.12a5.68 5.68 0 01-1.128 2.064 5.423 5.423 0 01-1.92 1.44c-.752.352-1.608.528-2.568.528zm.024-9.984a3.23 3.23 0 00-1.992.648c-.576.416-.944 1.056-1.104 1.92h5.928c-.048-.784-.336-1.408-.864-1.872-.528-.464-1.184-.696-1.968-.696zm7.096 14.976V20.096h2.736l.336 1.704c.384-.528.888-.992 1.512-1.392.64-.4 1.464-.6 2.472-.6 1.12 0 2.12.272 3 .816a5.846 5.846 0 012.088 2.232c.512.944.768 2.016.768 3.216 0 1.2-.256 2.272-.768 3.216a5.894 5.894 0 01-2.088 2.208c-.88.528-1.88.792-3 .792-.896 0-1.68-.168-2.352-.504a4.24 4.24 0 01-1.632-1.416v6.912h-3.072zm6.408-7.68c.976 0 1.784-.328 2.424-.984.64-.656.96-1.504.96-2.544s-.32-1.896-.96-2.568c-.64-.672-1.448-1.008-2.424-1.008-.992 0-1.808.336-2.448 1.008-.624.656-.936 1.504-.936 2.544s.312 1.896.936 2.568c.64.656 1.456.984 2.448.984zM125.36 32c-1.248 0-2.248-.304-3-.912-.752-.608-1.128-1.688-1.128-3.24v-5.184h-2.04v-2.568h2.04l.36-3.192h2.712v3.192h3.216v2.568h-3.216v5.208c0 .576.12.976.36 1.2.256.208.688.312 1.296.312h1.488V32h-2.088zm5.014-13.752c-.56 0-1.024-.168-1.392-.504-.352-.336-.528-.76-.528-1.272s.176-.928.528-1.248c.368-.336.832-.504 1.392-.504.56 0 1.016.168 1.368.504.368.32.552.736.552 1.248s-.184.936-.552 1.272c-.352.336-.808.504-1.368.504zM128.838 32V20.096h3.072V32h-3.072zm12.518.288c-1.696 0-3.152-.36-4.368-1.08a7.383 7.383 0 01-2.808-3.048c-.656-1.312-.984-2.824-.984-4.536 0-1.712.328-3.224.984-4.536.656-1.312 1.592-2.336 2.808-3.072 1.216-.736 2.672-1.104 4.368-1.104 2.016 0 3.664.504 4.944 1.512 1.296.992 2.104 2.392 2.424 4.2h-3.384c-.208-.912-.656-1.624-1.344-2.136-.672-.528-1.568-.792-2.688-.792-1.552 0-2.768.528-3.648 1.584-.88 1.056-1.32 2.504-1.32 4.344 0 1.84.44 3.288 1.32 4.344.88 1.04 2.096 1.56 3.648 1.56 1.12 0 2.016-.24 2.688-.72.688-.496 1.136-1.176 1.344-2.04h3.384c-.32 1.728-1.128 3.08-2.424 4.056-1.28.976-2.928 1.464-4.944 1.464zm14.287 0c-1.152 0-2.192-.264-3.12-.792a5.957 5.957 0 01-2.184-2.184c-.528-.944-.792-2.032-.792-3.264 0-1.232.272-2.312.816-3.24a5.905 5.905 0 012.184-2.208c.928-.528 1.968-.792 3.12-.792 1.136 0 2.16.264 3.072.792a5.68 5.68 0 012.184 2.208c.544.928.816 2.008.816 3.24 0 1.232-.272 2.32-.816 3.264a5.727 5.727 0 01-2.184 2.184c-.928.528-1.96.792-3.096.792zm0-2.664c.8 0 1.496-.296 2.088-.888.592-.608.888-1.504.888-2.688 0-1.184-.296-2.072-.888-2.664-.592-.608-1.28-.912-2.064-.912-.816 0-1.52.304-2.112.912-.576.592-.864 1.48-.864 2.664 0 1.184.288 2.08.864 2.688.592.592 1.288.888 2.088.888zM163.046 32V20.096h2.712l.24 2.016a4.21 4.21 0 011.584-1.68c.704-.416 1.528-.624 2.472-.624 1.472 0 2.616.464 3.432 1.392.816.928 1.224 2.288 1.224 4.08V32h-3.072v-6.432c0-1.024-.208-1.808-.624-2.352-.416-.544-1.064-.816-1.944-.816-.864 0-1.576.304-2.136.912-.544.608-.816 1.456-.816 2.544V32h-3.072zm13.714 0v-9.336h-1.632v-2.568h1.632v-1.392c0-1.44.36-2.464 1.08-3.072.736-.608 1.728-.912 2.976-.912h1.32v2.616h-.84c-.528 0-.904.104-1.128.312-.224.208-.336.56-.336 1.056v1.392h2.568v2.568h-2.568V32h-3.072z"></path>
</svg>-->
<p class="mt-6 text-base dark:text-gray-300 md:mt-0">
<%= gettext("Copyright ©") %>
<%= t("events.copyright") %>
<%= Time.zone.now.year %>
<%= @event.title %>. <%= gettext("All rights reserved.") %>
<%= @event.title %>. <%= t("events.all_rights") %>
</p>
</div>
</footer>
Expand Down
6 changes: 3 additions & 3 deletions app/views/home/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@
<div class="py-16 sm:py-24 lg:max-w-7xl lg:mx-auto lg:py-32 lg:px-8">
<div class="px-4 flex items-center justify-between sm:px-6 lg:px-0">
<h2 class="text-2xl font-extrabold tracking-tight text-gray-900 dark:text-gray-100">
<%= gettext("Recent Tracks") %>
<%= t("tracks.recent_tracks") %>
</h2>
<%= link_to "/tracks", class: "hidden sm:block text-sm font-semibold text-brand-600 hover:text-brand-500" do %>
<%= gettext("See everything") %>
<%= t("see_everything") %>
<span aria-hidden="true"></span>
<% end %>
</div>
Expand Down Expand Up @@ -153,7 +153,7 @@
id="collections-users"
class="text-2xl font-extrabold text-gray-900 dark:text-gray-100"
>
<%= gettext("Artists You Should Know") %>
<%= t("home.artists") %>
</h2>

<div class="mt-6 space-x-2 lg:space-y-0 grid-cols-3 grid lg:grid-cols-6 lg:gap-x-6 lg:gap-y-6">
Expand Down
Loading

0 comments on commit 944e225

Please sign in to comment.