diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index add616c..c1213d2 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -40,17 +40,17 @@ def serialized_to_html(serialized_content)
def event_status_label(event)
case event.state
- when "published" then gettext("Your event is published")
+ when "published" then t("events.published")
else
- gettext("Your event has not been published")
+ t("events.unpublished")
end
end
def button_label(event)
case event.state
- when "published" then gettext("Unpublish Event")
+ when "published" then t("events.unpublish")
else
- gettext("Publish Event")
+ t("events.publish")
end
end
diff --git a/app/views/articles/mine.html.erb b/app/views/articles/mine.html.erb
index 1e8304e..1334dc8 100644
--- a/app/views/articles/mine.html.erb
+++ b/app/views/articles/mine.html.erb
@@ -7,9 +7,9 @@
- <%= link_to "My Articles", mine_articles_path(tab: "all"), class: @tab == "all" ? 'tab-active' : 'tab-default' %>
- <%= link_to "Drafts", mine_articles_path(tab: "draft"), class: @tab == "draft" ? 'tab-active' : 'tab-default' %>
- <%= link_to "Published", mine_articles_path(tab: "published"), class: @tab == "published" ? 'tab-active' : 'tab-default' %>
+ <%= link_to t("articles.my_articles"), mine_articles_path(tab: "all"), class: @tab == "all" ? 'tab-active' : 'tab-default' %>
+ <%= link_to t("articles.drafts"), mine_articles_path(tab: "draft"), class: @tab == "draft" ? 'tab-active' : 'tab-default' %>
+ <%= link_to t("articles.published"), mine_articles_path(tab: "published"), class: @tab == "published" ? 'tab-active' : 'tab-default' %>
@@ -25,7 +25,7 @@
- <%= link_to 'New article',
+ <%= link_to t('new_article'),
new_article_path,
class: 'inline-flex items-center justify-center rounded-md border border-transparent bg-brand-600 px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-brand-700 focus:outline-none focus:ring-2 focus:ring-brand-500 focus:ring-offset-2 sm:w-auto'
%>
@@ -61,10 +61,10 @@
<%= post.state %>
- <%= link_to 'Edit', edit_article_path(post), class: 'text-brand-600 hover:text-brand-900' %>
+ <%= link_to t('Edit'), edit_article_path(post), class: 'text-brand-600 hover:text-brand-900' %>
<% if post.slug %>
- <%= link_to 'View Article', article_path(post.slug), class: 'text-brand-600 hover:text-brand-900 pl-2' %>
+ <%= link_to t('articles.view'), article_path(post.slug), class: 'text-brand-600 hover:text-brand-900 pl-2' %>
<% end %>
diff --git a/app/views/devise/sessions/new.html.erb b/app/views/devise/sessions/new.html.erb
index 26091b9..2dabea2 100644
--- a/app/views/devise/sessions/new.html.erb
+++ b/app/views/devise/sessions/new.html.erb
@@ -53,14 +53,14 @@
- <%= link_to gettext("Forgot your password?"),
+ <%= link_to t("sessions.forgot_pass"),
new_user_password_path,
class: "font-medium text-pink-600 hover:text-pink-500"
%>
- <%= f.submit gettext("Sign in"), class: "w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-brand-600 hover:bg-brand-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-brand-500" %>
+ <%= f.submit t("sessions.sign_in"), class: "w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-brand-600 hover:bg-brand-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-brand-500" %>
<% end %>
<%= render "devise/shared/links" %>
diff --git a/app/views/embeds/_track.erb b/app/views/embeds/_track.erb
index f4e1c7d..e2eb06c 100644
--- a/app/views/embeds/_track.erb
+++ b/app/views/embeds/_track.erb
@@ -12,7 +12,7 @@
data-audio-target="play"
class="player-button"
>
- <%= gettext("Play") %>
+ Play
- <%= gettext("Page not found") %>
+ <%= t("errors.404.title") %>
- <%= gettext("Please check the URL in the address bar and try again.") %>
+ <%= t("errors.404.desc") %>
@@ -17,13 +17,13 @@
href="/"
class="inline-flex items-center rounded-md border border-transparent bg-brand-600 px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-brand-700 focus:outline-none focus:ring-2 focus:ring-brand-500 focus:ring-offset-2"
>
- <%= gettext("Go back home") %>
+ <%= t("errors.404.action") %>
- <%= gettext("Contact support") %>
+ <%= t("errors.404.cta") %>
diff --git a/app/views/errors/422.html.erb b/app/views/errors/422.html.erb
index 47170d3..88fa7e3 100644
--- a/app/views/errors/422.html.erb
+++ b/app/views/errors/422.html.erb
@@ -2,14 +2,14 @@
- 500
+ 422
- <%= gettext("Access denied") %>
+ <%= t("errors.422.title") %>
- <%= gettext("Please check the URL in the address bar and try again.") %>
+ <%= t("errors.422.desc") %>
@@ -17,16 +17,17 @@
href="/"
class="inline-flex items-center rounded-md border border-transparent bg-brand-600 px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-brand-700 focus:outline-none focus:ring-2 focus:ring-brand-500 focus:ring-offset-2"
>
- <%= gettext("Go back home") %>
+ <%= t("errors.422.action") %>
- <%= gettext("Contact support") %>
+ <%= t("errors.422.cta") %>
+
diff --git a/app/views/errors/500.html.erb b/app/views/errors/500.html.erb
index ccbc590..6c3d2e2 100644
--- a/app/views/errors/500.html.erb
+++ b/app/views/errors/500.html.erb
@@ -6,10 +6,10 @@
- <%= gettext("Something went wrong") %>
+ <%= t("errors.500.title") %>
- <%= gettext("Please check the URL in the address bar and try again.") %>
+ <%= t("errors.500.desc") %>
@@ -17,16 +17,17 @@
href="/"
class="inline-flex items-center rounded-md border border-transparent bg-brand-600 px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-brand-700 focus:outline-none focus:ring-2 focus:ring-brand-500 focus:ring-offset-2"
>
- <%= gettext("Go back home") %>
+ <%= t("errors.500.action") %>
- <%= gettext("Contact support") %>
+ <%= t("errors.500.cta") %>
+
diff --git a/app/views/event_hosts/_event_host.erb b/app/views/event_hosts/_event_host.erb
index 13f6fb1..dc970e1 100644
--- a/app/views/event_hosts/_event_host.erb
+++ b/app/views/event_hosts/_event_host.erb
@@ -20,13 +20,13 @@
<% if event_host.listed_on_page %>
- <%= gettext("Listed on page") %>
+ <%= t("event_hosts.listed") %>
<% end %>
<% if event_host.event_manager %>
- <%= gettext("Event Manager") %>
+ <%= t("event_hosts.manager") %>
<% end %>
diff --git a/app/views/event_hosts/_form.html.erb b/app/views/event_hosts/_form.html.erb
index 43d71a1..ac4dad4 100644
--- a/app/views/event_hosts/_form.html.erb
+++ b/app/views/event_hosts/_form.html.erb
@@ -1,8 +1,8 @@
<%= form_for [@event, @event_host] do |form| %>
<% if form.object.new_record? %>
- <%= form.text_field :email, hint: "Añade un host para resaltarlo en la página del evento o para obtener ayuda en la gestión del evento." %>
- <%= form.submit gettext("Save"), class: "inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-brand-600 hover:bg-brand-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-brand-500" %>
+ <%= form.text_field :email, hint: t("event_hosts.email_hint") %>
+ <%= form.submit t("Save"), class: "inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-brand-600 hover:bg-brand-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-brand-500" %>
<% else %>
diff --git a/app/views/events/_attendees_form.html.erb b/app/views/events/_attendees_form.html.erb
index d816b89..206b66a 100644
--- a/app/views/events/_attendees_form.html.erb
+++ b/app/views/events/_attendees_form.html.erb
@@ -13,8 +13,6 @@
Add user
diff --git a/app/views/events/_form.html.erb b/app/views/events/_form.html.erb
index a25dd80..20fa2c5 100644
--- a/app/views/events/_form.html.erb
+++ b/app/views/events/_form.html.erb
@@ -1,9 +1,9 @@
<% if @event.id %>
- <%= gettext("Edit Event") %>
+ <%= t("events.edit") %>
<% else %>
- <%= gettext("Create Event") %>
+ <%= t("events.create") %>
<% end %>
diff --git a/app/views/events/mine.html.erb b/app/views/events/mine.html.erb
index 9c90073..5695cd0 100644
--- a/app/views/events/mine.html.erb
+++ b/app/views/events/mine.html.erb
@@ -3,10 +3,10 @@
- <%= link_to gettext("My Events"), mine_events_path(tab: "all"), class: tab_class(@tab == "all") %>
- <%= link_to gettext("Drafts"), mine_events_path(tab: "drafts"), class: tab_class(@tab == "drafts") %>
- <%= link_to gettext("Published"), mine_events_path(tab: "published"), class: tab_class(@tab == "published") %>
- <%= link_to gettext("Events I manage"), mine_events_path(tab: "manager"), class: tab_class(@tab == "manager") %>
+ <%= link_to t("events.my_events"), mine_events_path(tab: "all"), class: tab_class(@tab == "all") %>
+ <%= link_to t("events.drafts"), mine_events_path(tab: "drafts"), class: tab_class(@tab == "drafts") %>
+ <%= link_to t("events.published"), mine_events_path(tab: "published"), class: tab_class(@tab == "published") %>
+ <%= link_to t("events.manager"), mine_events_path(tab: "manager"), class: tab_class(@tab == "manager") %>
@@ -18,11 +18,11 @@
<%= @tab.capitalize %> Events
- <%= gettext("Your articles.") %>
+ <%= t("events.your_events") %>
- <%= link_to "New event", new_event_path(), class: "brand-button" %>
+ <%= link_to t("events.new_event"), new_event_path(), class: "brand-button" %>
@@ -72,7 +72,7 @@
<%= event.state %>
- <%= link_to gettext("Edit"), edit_event_path(event), class: "link" %>
+ <%= link_to t("edit"), edit_event_path(event), class: "link" %>
<% end %>
diff --git a/app/views/purchases/index.html.erb b/app/views/purchases/index.html.erb
index 2e90b40..0f4e7fc 100644
--- a/app/views/purchases/index.html.erb
+++ b/app/views/purchases/index.html.erb
@@ -16,7 +16,9 @@
Tickets
Admin
-
Has comprado Tickets
+
+ <%= t("purchases.your_tickets") %>
+
@@ -25,7 +27,6 @@
<% end %>
-
<%= link_to music_purchases_path do %>
@@ -33,7 +34,9 @@
Music
Admin
-
Has comprado Music
+
+ <%= t("purchases.your_music") %>
+
diff --git a/app/views/purchases/music.html.erb b/app/views/purchases/music.html.erb
index 033a25b..93694c4 100644
--- a/app/views/purchases/music.html.erb
+++ b/app/views/purchases/music.html.erb
@@ -26,7 +26,7 @@
/>
<%= link_to "#", class: "ml-4 text-sm font-medium text-gray-500 dark:text-gray-300 hover:text-gray-700 hover:text-gray-300" do %>
- <%= gettext("Music") %>
+ <%= t("purchases.music") %>
<% end %>
@@ -34,7 +34,7 @@
- <%= gettext("My Purchased music") %>
+ <%= t("purchases.my_music") %>
@@ -44,7 +44,7 @@
- <%= t("Purchased Music", section: @section) %>
+ <%= t("purchases.my_music", section: @section) %>
@@ -53,7 +53,7 @@
<%= link_to music_purchases_path(tab: "albums"),
phx_click: "section-change", phx_value_section: "all_music",
class: "border-transparent text-gray-500 dark:text-gray-200 hover:text-gray-700 hover:text-gray-300 hover:border-gray-200 whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm" do %>
- <%= gettext("Purchased albums") %>
+ <%= t("purchases.purchased_albums") %>
<% end %>
<% end %>
diff --git a/app/views/purchases/tickets.html.erb b/app/views/purchases/tickets.html.erb
index afa89a1..fecc4f9 100644
--- a/app/views/purchases/tickets.html.erb
+++ b/app/views/purchases/tickets.html.erb
@@ -7,7 +7,7 @@
- <%= link_to gettext("Purchases"), "/purchases", class: "text-sm font-medium text-gray-500 dark:text-gray-300 hover:text-gray-700 hover:text-gray-300" %>
+ <%= link_to t("purchases.title"), "/purchases", class: "text-sm font-medium text-gray-500 dark:text-gray-300 hover:text-gray-700 hover:text-gray-300" %>
@@ -25,13 +25,13 @@
clip-rule="evenodd"
/>
- <%= link_to gettext("Tickets"), "#", class: "ml-4 text-sm font-medium text-gray-500 dark:text-gray-300 hover:text-gray-700 hover:text-gray-300" %>
+ <%= link_to t("Tickets.title"), "#", class: "ml-4 text-sm font-medium text-gray-500 dark:text-gray-300 hover:text-gray-700 hover:text-gray-300" %>
- My Tickets
+ <%= t("tickets.my")%>
@@ -41,7 +41,7 @@
- <%= gettext("Tickets") %>
+ <%= t("tickets.title") %>
@@ -53,7 +53,7 @@
phx-value-section="all_tickets"
class="border-transparent text-gray-500 dark:text-gray-200 hover:text-gray-700 hover:text-gray-300 hover:border-gray-200 whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm"
>
- <%= gettext("All your Tickets") %>
+ <%= t("tickets.all") %>
2
@@ -65,7 +65,7 @@
phx-value-section="checked_in"
class="border-transparent text-gray-500 dark:text-gray-200 hover:text-gray-700 hover:text-gray-300 hover:border-gray-200 whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm"
>
- <%= gettext("Checked in tickets") %>
+ <%= t("tickets.check_in") %>
4
diff --git a/app/views/sales/index.html.erb b/app/views/sales/index.html.erb
index e165490..686cb78 100644
--- a/app/views/sales/index.html.erb
+++ b/app/views/sales/index.html.erb
@@ -3,38 +3,9 @@
- <%= gettext("Share your new track") %>
+ <%= t("tracks.share") %>
@@ -48,7 +48,7 @@
- <%= gettext("Link") %>
+ <%= t("tracks.link") %>
-
<%= gettext("Following") %>
+
<%= t("users.following") %>
<% end %>
<% else %>
<%= button_to user_follows_path(user.username), class: "button-large" do %>
-
Follow
+
<%= t("users.follow") %>
<% end %>
<% end %>
<% end %>
\ No newline at end of file
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 042d051..30d56b9 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -33,6 +33,7 @@ en:
hello: "Hello world"
by: "By %{name}"
see_everything: See Everything
+ edit: Edit
menu:
music: Music
@@ -57,7 +58,21 @@ en:
by: By
read_now: Read Now
article_settings: Article settings
+ my_articles: My articles
+ drafts: Drafts
+ published: Published
+ new_article: new_article
+ view: View Article
+
+ attribution:
+ some: Some rights reserved
+ all: All rights reserved
+ tickets:
+ checked_in: Checked in tickets
+ all: All your Tickets
+ title: Tickets
+ my: My Tickets
events:
past: Past Events
upcoming: Upcoming Events
@@ -71,9 +86,34 @@ en:
get_tickets: Get your tickets
watch_live: Watch live stream
+ my_events: My Events
+ your_events: Your events
+ drafts: Drafts
+ published: Published
+ manager: Events I manage
+ new_event: New Event
+
+ edit: Edit Event
+ create: Create Event
+
+ published: Your event is published
+ unpublished: Your event has not been published
+ unpublish: Unpublish Event
+ publish: Publish Event
+
+ event_hosts:
+ listed: Listed on page
+ manager: Event Manager
+ email_hint: "Añade un host para resaltarlo en la página del evento o para obtener ayuda en la gestión del evento."
+
+
tracks:
recent: Recent Tracks
new_track: New track
+ private: Private
+ go_to: Go to your track
+ share: Share your new track
+ link: Link
home:
artists: Artists you should know
@@ -98,6 +138,9 @@ en:
sign_in: Sign in to your account
register: Register
or: Or continue with
+ follow: Follow
+ unfollow: Unfollow
+ following: Following
user_settings:
title_account: Account
@@ -115,6 +158,19 @@ en:
title_invitations: Invitations
sub_invitations: Invite other artists to your account.
+ purchases:
+ title: Purchases
+ my_music: My music
+ my_tickets: My tickets
+ purchased_albums: Purchased Albums
+ purchased_tracks: Purchased Individual tracks
+
+ sales:
+ title: My Music sellings
+ my_music: My music sellings
+ my_tickets: My tickets
+ albums: Albums
+ tracks: Individual tracks
payments:
include_message: "include a message to %{name}"
@@ -124,6 +180,28 @@ en:
buy_digital_album: "Buy Digital album"
buy_digital_track: "Buy Digital track"
+
+ sessions:
+ forgot_pass: "Forgot your password?"
+ sign_in: Sign in
+
+ errors:
+ 404:
+ title: Page not found
+ desc: Please check the URL in the address bar and try again
+ action: Go back home
+ cta: Contact support
+ 500:
+ title: Something went wrong
+ desc: Please check the URL in the address bar and try again
+ action: Go back home
+ cta: Contact support
+ 422:
+ title: Access Denied
+ desc: Please check the URL in the address bar and try again
+ action: Go back home
+ cta: Contact support
+
time:
formats:
day: '%b %d'