Skip to content

Commit 469581f

Browse files
authored
Feature 892 add Japanese localisation (#898)
* add japanese localisation * normalize i18n * make text not go topdown when japanese
1 parent 9ef1c6d commit 469581f

File tree

5 files changed

+509
-2
lines changed

5 files changed

+509
-2
lines changed

app/views/people_skills/_person_skill.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
%input.check_box#certificate-checkbox{type: "checkbox", class: "form-check-input me-2 ", checked: person_skill.certificate, disabled: true}
1111
%label.form-label.text-gray= PeopleSkill.human_attribute_name(:certificate)
1212
%div.d-flex.align-items-center
13-
%div.d-flex.flex-row.form-check.col-2
13+
%div.d-flex.flex-row.form-check
1414
%input.check_box#core-competence-checkbox{type: "checkbox", class: "form-check-input me-2", checked: person_skill.core_competence, disabled: true}
1515
%label.form-label.text-gray= PeopleSkill.human_attribute_name(:core_competence)

config/application.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Application < Rails::Application
1717
# Initialize configuration defaults for originally generated Rails version.
1818
config.load_defaults 8.0
1919

20-
I18n.available_locales = [:de, :en, :fr, :it, "de-CH"]
20+
I18n.available_locales = [:de, :en, :fr, :it, :ja, "de-CH"]
2121
config.i18n.default_locale = :de
2222

2323
config.active_record.verify_foreign_keys_for_fixtures = false

config/locales/crud.ja.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
ja:
3+
crud:
4+
create:
5+
flash:
6+
success: "%{model}を作成しました。"
7+
destroy:
8+
flash:
9+
failure: "%{model}を削除できませんでした。"
10+
success: "%{model}を削除しました。"
11+
edit:
12+
title: "%{model}を編集"
13+
new:
14+
title: 新しい%{model}
15+
show:
16+
title: "%{model}"
17+
update:
18+
flash:
19+
success: "%{model}を更新しました。"
20+
global:
21+
associations:
22+
no_entry: "(なし)"
23+
none_available: "(利用可能な項目なし)"
24+
please_select: 選択してください
25+
button:
26+
cancel: キャンセル
27+
save: 保存
28+
search: 検索
29+
confirm_delete: この項目を本当に削除しますか?
30+
errors:
31+
header:
32+
one: 1件のエラーにより保存できませんでした:
33+
other: "%{count}件のエラーにより保存できませんでした:"
34+
link:
35+
add: 追加
36+
delete: 削除
37+
edit: 編集
38+
list: 一覧
39+
save: 保存
40+
save_and_new: 保存して新規作成
41+
show: 表示
42+
update: 更新
43+
'no': いいえ
44+
no_list_entries: 該当する項目が見つかりません。
45+
'yes': はい
46+
list:
47+
index:
48+
title: "%{models}の一覧"
49+
time:
50+
formats:
51+
time: "%H:%M"

config/locales/devise.ja.yml

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
---
2+
ja:
3+
activerecord:
4+
attributes:
5+
user:
6+
confirmation_sent_at: 確認メール送信日時
7+
confirmation_token: 確認トークン
8+
confirmed_at: 確認日時
9+
created_at: 作成日時
10+
current_password: 現在のパスワード
11+
current_sign_in_at: 現在のサインイン日時
12+
current_sign_in_ip: 現在のサインインIP
13+
email: メールアドレス
14+
encrypted_password: 暗号化されたパスワード
15+
failed_attempts: 失敗した試行回数
16+
last_sign_in_at: 最終サインイン日時
17+
last_sign_in_ip: 最終サインインIP
18+
locked_at: ロックされた日時
19+
password: パスワード
20+
password_confirmation: パスワード(確認)
21+
privacy_accepted_at: プライバシーポリシー同意日時
22+
remember_created_at: ログイン状態保持開始日時
23+
remember_me: ログイン状態を保持する
24+
reset_password_sent_at: パスワードリセットメール送信日時
25+
reset_password_token: パスワードリセットトークン
26+
sign_in_count: サインイン回数
27+
terms_accepted_at: 利用規約同意日時
28+
unconfirmed_email: 未確認のメールアドレス
29+
unlock_token: アンロックトークン
30+
updated_at: 更新日時
31+
models:
32+
user: ユーザー
33+
devise:
34+
confirmations:
35+
confirmed: メールアドレスが正常に確認されました。
36+
send_instructions: 数分以内に、メールアドレス確認のための手順が記載されたメールを受け取ります。
37+
send_paranoid_instructions: 入力されたメールアドレスが登録されている場合、確認手順を記載したメールが送信されます。
38+
failure:
39+
already_authenticated: すでにログインしています。
40+
inactive: アカウントがまだ有効化されていません。
41+
invalid: "%{authentication_keys} またはパスワードが無効です。"
42+
last_attempt: あと1回でアカウントがロックされます。
43+
locked: アカウントがロックされています。
44+
not_found_in_database: "%{authentication_keys} またはパスワードが無効です。"
45+
timeout: セッションが期限切れです。再度ログインしてください。
46+
unauthenticated: 続行するにはログインまたはアカウント登録が必要です。
47+
unconfirmed: 続行するにはメールアドレスの確認が必要です。
48+
mailer:
49+
confirmation_instructions:
50+
subject: メールアドレス確認手順
51+
email_changed:
52+
subject: メールアドレスが変更されました
53+
password_change:
54+
subject: パスワードが変更されました
55+
reset_password_instructions:
56+
subject: パスワード再設定の手順
57+
unlock_instructions:
58+
subject: アカウントロック解除の手順
59+
omniauth_callbacks:
60+
failure: '%{kind} からの認証に失敗しました(理由: "%{reason}")。'
61+
success: "%{kind} アカウントからの認証に成功しました。"
62+
passwords:
63+
no_token: パスワードリセットメールからアクセスしない限り、このページにはアクセスできません。正しいURLを使用しているか確認してください。
64+
send_instructions: 数分以内に、パスワードをリセットする手順を記載したメールを受け取ります。
65+
send_paranoid_instructions: 入力されたメールアドレスが登録されている場合、数分以内にパスワード再設定リンクが送信されます。
66+
updated: パスワードは正常に変更されました。ログイン済みです。
67+
updated_not_active: パスワードは正常に変更されました。
68+
registrations:
69+
destroyed: アカウントを削除しました。またのご利用をお待ちしております。
70+
signed_up: ご登録ありがとうございます!アカウント作成が完了しました。
71+
signed_up_but_inactive: 登録は完了しましたが、アカウントが有効化されていないためログインできません。
72+
signed_up_but_locked: 登録は完了しましたが、アカウントがロックされているためログインできません。
73+
signed_up_but_unconfirmed: 確認リンクを含むメールを送信しました。リンクをクリックしてアカウントを有効化してください。
74+
update_needs_confirmation: アカウント情報を更新しましたが、新しいメールアドレスの確認が必要です。確認メールを確認し、リンクに従ってください。
75+
updated: アカウント情報を正常に更新しました。
76+
updated_but_not_signed_in: アカウント情報を更新しましたが、パスワードが変更されたため再度ログインしてください。
77+
sessions:
78+
already_signed_out: ログアウトが完了しました。
79+
signed_in: ログインに成功しました。
80+
signed_out: ログアウトに成功しました。
81+
unlocks:
82+
send_instructions: 数分以内に、アカウントのロック解除手順が記載されたメールを受け取ります。
83+
send_paranoid_instructions: アカウントが存在する場合は、ロック解除の手順が記載されたメールを受け取ります。
84+
unlocked: アカウントのロックが解除されました。ログインして続行してください。
85+
errors:
86+
messages:
87+
already_confirmed: はすでに確認されています。ログインを試してください。
88+
confirmation_period_expired: は%{period}以内に確認される必要があります。新しい確認メールをリクエストしてください。
89+
expired: の有効期限が切れています。新しいものをリクエストしてください。
90+
not_found: が見つかりません
91+
not_locked: はロックされていません
92+
not_saved:
93+
one: '次のエラーのため、%{resource} を保存できませんでした:'
94+
other: "%{count} 件のエラーのため、%{resource} を保存できませんでした:"

0 commit comments

Comments
 (0)