Skip to content

Commit

Permalink
update: localesに切り出し
Browse files Browse the repository at this point in the history
  • Loading branch information
nusohiro committed Feb 5, 2024
1 parent cf90d60 commit 772b944
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
5 changes: 2 additions & 3 deletions app/views/members/_new_form.html.erb
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<fieldset class="box principals_for_selected_member">
<%# TODO: localに置く %>
<legend><label>選択済みユーザー</label></legend>
<legend><label><%= t('label_selected_member') %></label></legend>
<ul id="principals_for_selected_member">
<li data-user-id="" style="margin-left: 1rem;">
未選択
<%= t('text_unselect') %>
</li>
</ul>
</fieldset>
Expand Down
2 changes: 1 addition & 1 deletion app/views/members/new.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function updateSelectedMember() {
}

if ($(selectedMembers).children().length === 0) {
$(selectedMembers).append('<li data-user-id="" style="margin-left: 1rem;">未選択</li>')
$(selectedMembers).append('<li data-user-id="" style="margin-left: 1rem;"><%= t('text_unselect') %></li>')
}
}

Expand Down
2 changes: 2 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1011,6 +1011,7 @@ en:
label_subtask_plural: Subtasks
label_project_copy_notifications: Send email notifications during the project copy
label_import_notifications: Send email notifications during the import
label_selected_member: "Selected users"
label_principal_search: "Search for user or group:"
label_user_search: "Search for user:"
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
Expand Down Expand Up @@ -1324,6 +1325,7 @@ en:
text_no_subject: no subject
text_allowed_queries_to_select: Public (to any users) queries only selectable
text_setting_config_change: You can configure the behaviour in config/configuration.yml. Please restart the application after editing it.
text_unselect: "unselect"

default_role_manager: Manager
default_role_developer: Developer
Expand Down
2 changes: 2 additions & 0 deletions config/locales/ja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,7 @@ ja:
label_api_access_key_created_on: "APIアクセスキーは%{value}前に作成されました"
label_subtask_plural: 子チケット
label_project_copy_notifications: コピーしたチケットのメール通知を送信する
label_selected_member: "選択済みユーザー"
label_principal_search: "ユーザーまたはグループの検索:"
label_user_search: "ユーザーの検索:"
label_git_report_last_commit: ファイルとディレクトリの最新コミットを表示する
Expand Down Expand Up @@ -941,6 +942,7 @@ ja:
text_scm_command_version: バージョン
text_scm_config: バージョン管理システムのコマンドをconfig/configuration.ymlで設定できます。設定後、Redmineを再起動してください。
text_scm_command_not_available: バージョン管理システムのコマンドが利用できません。管理画面にて設定を確認してください。
text_unselect: "未選択"

default_role_manager: 管理者
default_role_developer: 開発者
Expand Down

0 comments on commit 772b944

Please sign in to comment.