Skip to content

Commit 60f9df4

Browse files
Improve locale (#5371)
* Add 'remove' key to locale files * Add 'releases' key to locale files * Refactor japanese locale * Replace text with locale text * Remove unnecessary placeholder
1 parent 94ebcdb commit 60f9df4

15 files changed

+35
-17
lines changed

app/views/layouts/application.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
</a>
5151
<% end %>
5252

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

5656
<%- if request.path_info == '/gems' %>

app/views/owners/_owners_table.html.erb

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@
5050
<%= ownership.confirmed_at.strftime("%Y-%m-%d %H:%M %Z") if ownership.confirmed? %>
5151
</td>
5252
<td class="owners__cell" data-title="Action">
53-
<%= button_to "Remove",
53+
<%= button_to t("remove"),
5454
rubygem_owner_path(@rubygem.slug, ownership.user.display_id),
5555
method: "delete",
5656
data: { confirm: t("owners.index.confirm_remove") },
5757
class: "form__submit form__submit--small" %>
5858
<br/>
59-
<%= button_to "Edit",
59+
<%= button_to t("edit"),
6060
edit_rubygem_owner_path(@rubygem.name, ownership.user.display_id),
6161
disabled: ownership.user == current_user,
6262
method: "get",

app/views/passwords/edit.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<%= form_for(:password_reset, url: password_path, html: { method: :put }) do |form| %>
44
<%= error_messages_for @user %>
55
<div class="password_field">
6-
<%= form.label :password, "Password", :class => 'form__label' %>
6+
<%= form.label :password, t("activerecord.attributes.user.password"), :class => 'form__label' %>
77
<%= form.password_field :password, autocomplete: 'new-password', class: 'form__input' %>
88
</div>
99
<div class="form__checkbox">

app/views/profiles/delete.html.erb

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
<p><%= t '.instructions' %></p>
3131
<%= form_for current_user, url: destroy_profile_path, method: :delete do |form| %>
3232
<div class="password_field">
33-
<%= form.label :password, "Password", class: 'form__label' %>
34-
<%= form.password_field :password, placeholder: 'password', autocomplete: 'current-password', class: 'form__input' %>
33+
<%= form.label :password, t("activerecord.attributes.user.password"), class: 'form__label' %>
34+
<%= form.password_field :password, autocomplete: 'current-password', class: 'form__input' %>
3535
</div>
3636
<%= form.submit t('.confirm'), data: { confirm: "This action can't be UNDONE! Are you sure?" }, class: 'form__submit' %>
3737
<% end %>

app/views/profiles/edit.html.erb

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
</div>
6363

6464
<div class="password_field">
65-
<%= form.label :password, :class => 'form__label' %>
65+
<%= form.label :password, t("activerecord.attributes.user.password"), :class => 'form__label' %>
6666
<p class='form__field__instructions'>
6767
<%= t('.enter_password') %>
6868
</p>
@@ -76,7 +76,7 @@
7676
</div>
7777

7878
<div class="submit_field">
79-
<%= form.submit 'Update', :data => {:disable_with => t('form_disable_with')}, :class => 'form__submit' %>
79+
<%= form.submit t("update"), :data => {:disable_with => t('form_disable_with')}, :class => 'form__submit' %>
8080
</div>
8181
<% end %>
8282

app/views/settings/edit.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171

7272
<div class="t-body">
7373
<h2><%= link_to t('oidc.pending_trusted_publishers.index.title'), profile_oidc_pending_trusted_publishers_path %></h2>
74-
<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>
74+
<span><%= t("oidc.pending_trusted_publishers.index.description_html") %></span>
7575
</div>
7676

7777
<% if @user.oidc_api_key_roles.any? %>

config/locales/de.yml

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ de:
5151
total_downloads: Downloads insgesamt
5252
try_again: Etwas ist schiefgelaufen. Bitte versuchen Sie es erneut.
5353
update: Aktualisieren
54+
remove:
5455
view_all: Alle anzeigen
5556
advanced_search: Erweiterte Suche
5657
authenticate: Authentifizieren
@@ -263,6 +264,7 @@ de:
263264
hosted_by: Gehostet von
264265
monitored_by: Überwacht von
265266
optimized_by: Optimiert mit
267+
releases:
266268
resolved_with: Aufgelöst mit
267269
security: Security
268270
source_code: Code

config/locales/en.yml

+2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ en:
4848
total_downloads: Total downloads
4949
try_again: Something went wrong. Please try again.
5050
update: Update
51+
remove: Remove
5152
view_all: View all
5253
advanced_search: Advanced Search
5354
authenticate: Authenticate
@@ -249,6 +250,7 @@ en:
249250
hosted_by: Hosted by
250251
monitored_by: Monitored by
251252
optimized_by: Optimized by
253+
releases: Releases
252254
resolved_with: Resolved with
253255
security: Security
254256
source_code: Code

config/locales/es.yml

+2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ es:
4949
total_downloads: Total de descargas
5050
try_again: Algo salió mal. Por favor inténtalo nuevamente.
5151
update: Actualizar
52+
remove:
5253
view_all: Ver todo
5354
advanced_search: Búsqueda avanzada
5455
authenticate: Autenticar
@@ -262,6 +263,7 @@ es:
262263
hosted_by: Alojado por
263264
monitored_by: Monitoreado por
264265
optimized_by: Optimizado por
266+
releases:
265267
resolved_with: DNS
266268
security: Seguridad
267269
source_code: Código fuente

config/locales/fr.yml

+2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ fr:
4949
total_downloads: Total de téléchargements
5050
try_again: Une erreur est survenue. Veuillez réessayer.
5151
update: Mise à jour
52+
remove:
5253
view_all: Voir tout
5354
advanced_search: Recherche avancée
5455
authenticate:
@@ -254,6 +255,7 @@ fr:
254255
hosted_by: Hébergé par
255256
monitored_by: Monitoring par
256257
optimized_by: Optimisé par
258+
releases:
257259
resolved_with: Résolu par
258260
security: Security
259261
source_code: Code

config/locales/ja.yml

+10-8
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ ja:
4242
total_downloads: 累計ダウンロード数
4343
try_again: エラーが発生しました。再試行してください。
4444
update: 更新
45+
remove: 削除
4546
view_all: 全て表示
4647
advanced_search: 高度な検索
4748
authenticate: 認証
@@ -243,6 +244,7 @@ ja:
243244
hosted_by: ホスト
244245
monitored_by: 監視
245246
optimized_by: 最適化
247+
releases: リリース
246248
resolved_with: DNS
247249
security: セキュリティ
248250
source_code: コード
@@ -700,13 +702,13 @@ ja:
700702
header: "%{title}依存関係"
701703
gem_members:
702704
authors_header: 作者
703-
self_no_mfa_warning_html: アカウントをセキュアに保つため、<a href="/settings/edit">多要素認証 (MFA)
705+
self_no_mfa_warning_html: アカウントをセキュアに保つため、<a href="/settings/edit">多要素認証MFA
704706
の有効化</a>をご検討ください。
705-
not_using_mfa_warning_show: 多要素認証 (MFA) を使っていない所有者がいます。完全な一覧を見るにはクリックしてください。
706-
not_using_mfa_warning_hide: "* 以下の所有者は多要素認証 (MFA) を使っていません。クリックして隠します。"
707+
not_using_mfa_warning_show: 多要素認証MFAを使っていない所有者がいます。完全な一覧を見るにはクリックしてください。
708+
not_using_mfa_warning_hide: "* 以下の所有者は多要素認証MFAを使っていません。クリックして隠します。"
707709
owners_header: 所有者
708710
pushed_by: プッシュ者
709-
using_mfa_info: "* 全ての所有者が多要素認証 (MFA) を使っています。"
711+
using_mfa_info: "* 全ての所有者が多要素認証MFAを使っています。"
710712
yanked_by: ヤンク者
711713
sha_256_checksum: SHA 256チェックサム
712714
signature_period: シグネチャの有効期限
@@ -888,7 +890,7 @@ ja:
888890
create: 作成
889891
description_html: |
890892
待機中の信頼できる発行元を使うと、gemの最初のバージョンをプッシュする前に信頼できる発行元を構成できます。
891-
信頼できる発行元を設定する方法についてより詳しくは、<a href="https://guides.rubygems.org/trusted-publishing/pushing-a-new-gem/" class="t-link">信頼できる発行元のドキュメント</a>を参照してください。
893+
信頼できる発行元を設定する方法についてより詳しくは、<a href="https://guides.rubygems.org/trusted-publishing/pushing-a-new-gem/" class="t-link">信頼できる発行元のドキュメント</a>を参照してください。
892894
destroy:
893895
success: 待機中の信頼できる発行元が削除されました
894896
create:
@@ -938,7 +940,7 @@ ja:
938940
version_yanked: バージョンがヤンクされました
939941
version_unyanked: バージョンのヤンクが取り消されました
940942
version_html: バージョン:%{version}
941-
version_pushed_sha256_html: 'SHA256: %{sha256}'
943+
version_pushed_sha256_html: SHA256%{sha256}
942944
version_pushed_by_html: プッシュ者:%{pusher}
943945
version_yanked_by_html: ヤンク者:%{pusher}
944946
owner:
@@ -969,6 +971,6 @@ ja:
969971
api_key_deleted: APIキーが削除されました
970972
api_key_name: 名前:%{name}
971973
api_key_scopes: スコープ:%{scopes}
972-
api_key_gem_html: 'gem: %{gem}'
973-
api_key_mfa: 'MFA: %{mfa}'
974+
api_key_gem_html: gem%{gem}
975+
api_key_mfa: MFA%{mfa}
974976
not_required: 必要ではありません

config/locales/nl.yml

+2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ nl:
4141
total_downloads:
4242
try_again: Er is iets fout gegaan, probeer het opnieuw.
4343
update: Wijzig
44+
remove:
4445
view_all: Bekijk alles
4546
advanced_search: Uitgebreid zoeken
4647
authenticate:
@@ -245,6 +246,7 @@ nl:
245246
hosted_by: Hosting
246247
monitored_by: Monitoring
247248
optimized_by: Optimalisatie
249+
releases:
248250
resolved_with: DNS
249251
security: Security
250252
source_code: Code

config/locales/pt-BR.yml

+2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ pt-BR:
4848
total_downloads: Total de downloads
4949
try_again: Algo deu errado. Por favor, tente novamente.
5050
update: Atualizar
51+
remove:
5152
view_all: Ver tudo
5253
advanced_search: Busca avançada
5354
authenticate:
@@ -251,6 +252,7 @@ pt-BR:
251252
hosted_by: Hospedagem
252253
monitored_by: Monitoramento
253254
optimized_by: Otimizações
255+
releases:
254256
resolved_with: DNS
255257
security: Segurança
256258
source_code: Código Fonte

config/locales/zh-CN.yml

+2
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ zh-CN:
4343
total_downloads: 下载总量
4444
try_again: 出了点儿问题,请重试。
4545
update: 更新
46+
remove:
4647
view_all: 查看全部
4748
advanced_search: 高级搜索
4849
authenticate: 身份认证
@@ -244,6 +245,7 @@ zh-CN:
244245
hosted_by: 托管
245246
monitored_by: 监控
246247
optimized_by: 优化
248+
releases:
247249
resolved_with: 解析
248250
security: 安全
249251
source_code: 源代码

config/locales/zh-TW.yml

+2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ zh-TW:
4242
total_downloads: 總下載次數
4343
try_again: 發生錯誤。請再試一次。
4444
update: 更新
45+
remove:
4546
view_all: 查看全部
4647
advanced_search: 進階搜尋
4748
authenticate: 驗證
@@ -243,6 +244,7 @@ zh-TW:
243244
hosted_by: 托管
244245
monitored_by: 監控
245246
optimized_by: 最佳化
247+
releases:
246248
resolved_with: 解析
247249
security: 安全
248250
source_code: 原始碼

0 commit comments

Comments
 (0)