Skip to content

Commit

Permalink
internationalize "Select Path" (#4176)
Browse files Browse the repository at this point in the history
Internationalize "Select Path" and add this to other locales.
  • Loading branch information
johrstrom committed Feb 28, 2025
1 parent 90a6e27 commit 84a4e7e
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<%= form.text_field(attrib.id, class: 'form-control', **options) %>

<button type="button" class="btn btn-primary mt-2" data-bs-toggle="modal" data-bs-target="#<%= path_selector_id %>">
Select Path
<%= I18n.t('dashboard.select_path') %>
</button>

<%= render(partial: 'shared/path_selector_table', locals: locals ) %>
2 changes: 1 addition & 1 deletion apps/dashboard/app/views/projects/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
data: { 'path-selector': true })%>

<button type="button" class="btn btn-primary mt-2" data-bs-toggle="modal" data-bs-target="#<%= path_selector_id %>">
Select Path
<%= I18n.t('dashboard.select_path') %>
</button>

<%= render(partial: 'shared/path_selector_table', locals: path_selector_locals ) %>
Expand Down
4 changes: 2 additions & 2 deletions apps/dashboard/app/views/shared/_path_selector_table.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@
</div>
</div>
<div class="modal-footer sticky-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" id="<%= button_id %>">Select Path</button>
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal"><%= I18n.t('dashboard.close') %></button>
<button type="button" class="btn btn-primary" id="<%= button_id %>"><%= I18n.t('dashboard.select_path') %></button>
</div>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions apps/dashboard/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ en:
If it doesn't please, click: <a href="%{restart_url}">restart web server</a>.
save: Save
saved_settings_title: Saved Settings
select_path: Select Path
settings_invalid_request: Invalid settings submitted
settings_updated: Settings updated
shared_apps_caption: Shared by %{owner_title} (%{owner})
Expand Down
1 change: 1 addition & 0 deletions apps/dashboard/config/locales/ja_JP.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ ja_JP:
If it doesn't please, click: <a href="%{restart_url}">restart web server</a>.
save: 溜める
saved_settings_title: Saved Settings
select_path: Select Path
settings_invalid_request: Invalid settings submitted
settings_updated: Settings updated
shared_apps_caption: Shared by %{owner_title} (%{owner})
Expand Down
1 change: 1 addition & 0 deletions apps/dashboard/config/locales/zh-CN.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ zh-CN:
如果没有重启,请点击 <a href="%{restart_url}">来重启网页服务器</a>.
save: Save
saved_settings_title: Saved Settings
select_path: Select Path
settings_invalid_request: Invalid settings submitted
settings_updated: Settings updated
shared_apps_caption: Shared by %{owner_title} (%{owner})
Expand Down

0 comments on commit 84a4e7e

Please sign in to comment.