Skip to content

Commit

Permalink
Replace text with locale text
Browse files Browse the repository at this point in the history
  • Loading branch information
w-masahiro-ct authored and simi committed Jan 11, 2025
1 parent 928e79c commit 534ced6
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
</a>
<% end %>

<%= link_to "Releases", news_url, class: "header__nav-link #{active?(news_path)}" %>
<%= link_to t('.footer.releases'), news_url, class: "header__nav-link #{active?(news_path)}" %>
<%= link_to t('.footer.blog'), "https://blog.rubygems.org", class: "header__nav-link" %>

<%- if request.path_info == '/gems' %>
Expand Down
4 changes: 2 additions & 2 deletions app/views/owners/_owners_table.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@
<%= ownership.confirmed_at.strftime("%Y-%m-%d %H:%M %Z") if ownership.confirmed? %>
</td>
<td class="owners__cell" data-title="Action">
<%= button_to "Remove",
<%= button_to t("remove"),
rubygem_owner_path(@rubygem.slug, ownership.user.display_id),
method: "delete",
data: { confirm: t("owners.index.confirm_remove") },
class: "form__submit form__submit--small" %>
<br/>
<%= button_to "Edit",
<%= button_to t("edit"),
edit_rubygem_owner_path(@rubygem.name, ownership.user.display_id),
disabled: ownership.user == current_user,
method: "get",
Expand Down
2 changes: 1 addition & 1 deletion app/views/passwords/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<%= form_for(:password_reset, url: password_path, html: { method: :put }) do |form| %>
<%= error_messages_for @user %>
<div class="password_field">
<%= form.label :password, "Password", :class => 'form__label' %>
<%= form.label :password, t("activerecord.attributes.user.password"), :class => 'form__label' %>
<%= form.password_field :password, autocomplete: 'new-password', class: 'form__input' %>
</div>
<div class="form__checkbox">
Expand Down
4 changes: 2 additions & 2 deletions app/views/profiles/delete.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
<p><%= t '.instructions' %></p>
<%= form_for current_user, url: destroy_profile_path, method: :delete do |form| %>
<div class="password_field">
<%= form.label :password, "Password", class: 'form__label' %>
<%= form.password_field :password, placeholder: 'password', autocomplete: 'current-password', class: 'form__input' %>
<%= form.label :password, t("activerecord.attributes.user.password"), class: 'form__label' %>
<%= form.password_field :password, placeholder: t("activerecord.attributes.user.password"), autocomplete: 'current-password', class: 'form__input' %>
</div>
<%= form.submit t('.confirm'), data: { confirm: "This action can't be UNDONE! Are you sure?" }, class: 'form__submit' %>
<% end %>
Expand Down
4 changes: 2 additions & 2 deletions app/views/profiles/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
</div>

<div class="password_field">
<%= form.label :password, :class => 'form__label' %>
<%= form.label :password, t("activerecord.attributes.user.password"), :class => 'form__label' %>
<p class='form__field__instructions'>
<%= t('.enter_password') %>
</p>
Expand All @@ -76,7 +76,7 @@
</div>

<div class="submit_field">
<%= form.submit 'Update', :data => {:disable_with => t('form_disable_with')}, :class => 'form__submit' %>
<%= form.submit t("update"), :data => {:disable_with => t('form_disable_with')}, :class => 'form__submit' %>
</div>
<% end %>

Expand Down
2 changes: 1 addition & 1 deletion app/views/settings/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@

<div class="t-body">
<h2><%= link_to t('oidc.pending_trusted_publishers.index.title'), profile_oidc_pending_trusted_publishers_path %></h2>
<span>Pending trusted publishers allow you to configure trusted publishing before you have pushed the first version of a gem. For more information about how to set up trusted publishing, see <a href="https://guides.rubygems.org/trusted-publishing/pushing-a-new-gem/">the trusted publishing documentation</a>.</span>
<span><%= t("oidc.pending_trusted_publishers.index.description_html") %></span>
</div>

<% if @user.oidc_api_key_roles.any? %>
Expand Down

0 comments on commit 534ced6

Please sign in to comment.