use better gettext domain for aria labels
This commit is contained in:
		| @@ -34,7 +34,7 @@ | ||||
|         <.link | ||||
|           :if={is_owner?(context, @current_user)} | ||||
|           patch={Routes.context_index_path(@socket, :edit, context.slug)} | ||||
|           aria-label={gettext("edit %{context_slug}", context_slug: context.slug)} | ||||
|           aria-label={dgettext("actions", "edit %{context_slug}", context_slug: context.slug)} | ||||
|         > | ||||
|           <%= dgettext("actions", "edit") %> | ||||
|         </.link> | ||||
| @@ -44,7 +44,7 @@ | ||||
|           phx-click="delete" | ||||
|           phx-value-id={context.id} | ||||
|           data-confirm={dgettext("prompts", "are you sure?")} | ||||
|           aria-label={gettext("delete %{context_slug}", context_slug: context.slug)} | ||||
|           aria-label={dgettext("actions", "delete %{context_slug}", context_slug: context.slug)} | ||||
|         > | ||||
|           <%= dgettext("actions", "delete") %> | ||||
|         </.link> | ||||
|   | ||||
| @@ -36,7 +36,7 @@ | ||||
|       class="btn btn-primary" | ||||
|       phx-click="delete" | ||||
|       data-confirm={dgettext("prompts", "are you sure?")} | ||||
|       aria-label={gettext("delete %{context_slug}", context_slug: @context.slug)} | ||||
|       aria-label={dgettext("actions", "delete %{context_slug}", context_slug: @context.slug)} | ||||
|     > | ||||
|       <%= dgettext("actions", "delete") %> | ||||
|     </button> | ||||
|   | ||||
| @@ -21,7 +21,9 @@ | ||||
|             type="submit" | ||||
|             class="mx-2 my-1 btn btn-secondary" | ||||
|             phx-click={JS.dispatch("memex:clipcopy", to: "#code-#{invite.id}")} | ||||
|             aria-label={gettext("copy invite link for %{invite_name}", invite_name: invite.name)} | ||||
|             aria-label={ | ||||
|               dgettext("actions", "copy invite link for %{invite_name}", invite_name: invite.name) | ||||
|             } | ||||
|           > | ||||
|             <%= dgettext("actions", "copy") %> | ||||
|           </button> | ||||
| @@ -30,7 +32,9 @@ | ||||
|       <.link | ||||
|         patch={Routes.invite_index_path(Endpoint, :edit, invite)} | ||||
|         class="text-primary-400 link" | ||||
|         aria-label={gettext("edit invite for %{invite_name}", invite_name: invite.name)} | ||||
|         aria-label={ | ||||
|           dgettext("actions", "edit invite for %{invite_name}", invite_name: invite.name) | ||||
|         } | ||||
|       > | ||||
|         <i class="fa-fw fa-lg fas fa-edit"></i> | ||||
|       </.link> | ||||
| @@ -45,7 +49,9 @@ | ||||
|             invite_name: invite.name | ||||
|           ) | ||||
|         } | ||||
|         aria-label={gettext("delete invite for %{invite_name}", invite_name: invite.name)} | ||||
|         aria-label={ | ||||
|           dgettext("actions", "delete invite for %{invite_name}", invite_name: invite.name) | ||||
|         } | ||||
|       > | ||||
|         <i class="fa-fw fa-lg fas fa-trash"></i> | ||||
|       </.link> | ||||
|   | ||||
| @@ -34,7 +34,7 @@ | ||||
|         <.link | ||||
|           :if={is_owner?(note, @current_user)} | ||||
|           patch={Routes.note_index_path(@socket, :edit, note.slug)} | ||||
|           aria-label={gettext("edit %{note_slug}", note_slug: note.slug)} | ||||
|           aria-label={dgettext("actions", "edit %{note_slug}", note_slug: note.slug)} | ||||
|         > | ||||
|           <%= dgettext("actions", "edit") %> | ||||
|         </.link> | ||||
| @@ -44,7 +44,7 @@ | ||||
|           phx-click="delete" | ||||
|           phx-value-id={note.id} | ||||
|           data-confirm={dgettext("prompts", "are you sure?")} | ||||
|           aria-label={gettext("delete %{note_slug}", note_slug: note.slug)} | ||||
|           aria-label={dgettext("actions", "delete %{note_slug}", note_slug: note.slug)} | ||||
|         > | ||||
|           <%= dgettext("actions", "delete") %> | ||||
|         </.link> | ||||
|   | ||||
| @@ -36,7 +36,7 @@ | ||||
|       class="btn btn-primary" | ||||
|       phx-click="delete" | ||||
|       data-confirm={dgettext("prompts", "are you sure?")} | ||||
|       aria-label={gettext("delete %{note_slug}", note_slug: @note.slug)} | ||||
|       aria-label={dgettext("actions", "delete %{note_slug}", note_slug: @note.slug)} | ||||
|     > | ||||
|       <%= dgettext("actions", "delete") %> | ||||
|     </button> | ||||
|   | ||||
| @@ -34,7 +34,7 @@ | ||||
|         <.link | ||||
|           :if={is_owner?(pipeline, @current_user)} | ||||
|           patch={Routes.pipeline_index_path(@socket, :edit, pipeline.slug)} | ||||
|           aria-label={gettext("edit %{pipeline_slug}", pipeline_slug: pipeline.slug)} | ||||
|           aria-label={dgettext("actions", "edit %{pipeline_slug}", pipeline_slug: pipeline.slug)} | ||||
|         > | ||||
|           <%= dgettext("actions", "edit") %> | ||||
|         </.link> | ||||
| @@ -44,7 +44,9 @@ | ||||
|           phx-click="delete" | ||||
|           phx-value-id={pipeline.id} | ||||
|           data-confirm={dgettext("prompts", "are you sure?")} | ||||
|           aria-label={gettext("delete %{pipeline_slug}", pipeline_slug: pipeline.slug)} | ||||
|           aria-label={ | ||||
|             dgettext("actions", "delete %{pipeline_slug}", pipeline_slug: pipeline.slug) | ||||
|           } | ||||
|         > | ||||
|           <%= dgettext("actions", "delete") %> | ||||
|         </.link> | ||||
|   | ||||
| @@ -44,7 +44,7 @@ | ||||
|       class="btn btn-primary" | ||||
|       phx-click="delete" | ||||
|       data-confirm={dgettext("prompts", "are you sure?")} | ||||
|       aria-label={gettext("delete %{pipeline_slug}", pipeline_slug: @pipeline.slug)} | ||||
|       aria-label={dgettext("actions", "delete %{pipeline_slug}", pipeline_slug: @pipeline.slug)} | ||||
|     > | ||||
|       <%= dgettext("actions", "delete") %> | ||||
|     </button> | ||||
| @@ -78,7 +78,7 @@ | ||||
|                 phx-click="reorder_step" | ||||
|                 phx-value-direction="up" | ||||
|                 phx-value-step-id={step_id} | ||||
|                 aria-label={gettext("move %{step_title} up", step_title: step.title)} | ||||
|                 aria-label={dgettext("actions", "move %{step_title} up", step_title: step.title)} | ||||
|               > | ||||
|                 <i class="fas text-xl fa-chevron-up"></i> | ||||
|               </button> | ||||
| @@ -93,7 +93,9 @@ | ||||
|                 phx-click="reorder_step" | ||||
|                 phx-value-direction="down" | ||||
|                 phx-value-step-id={step_id} | ||||
|                 aria-label={gettext("move %{step_title} down", step_title: step.title)} | ||||
|                 aria-label={ | ||||
|                   dgettext("actions", "move %{step_title} down", step_title: step.title) | ||||
|                 } | ||||
|               > | ||||
|                 <i class="fas text-xl fa-chevron-down"></i> | ||||
|               </button> | ||||
| @@ -102,7 +104,7 @@ | ||||
|             <.link | ||||
|               class="self-end btn btn-primary" | ||||
|               patch={Routes.pipeline_show_path(@socket, :edit_step, @pipeline.slug, step_id)} | ||||
|               aria-label={gettext("edit %{step_title}", step_title: step.title)} | ||||
|               aria-label={dgettext("actions", "edit %{step_title}", step_title: step.title)} | ||||
|             > | ||||
|               <%= dgettext("actions", "edit") %> | ||||
|             </.link> | ||||
| @@ -113,7 +115,7 @@ | ||||
|               phx-click="delete_step" | ||||
|               phx-value-step-id={step_id} | ||||
|               data-confirm={dgettext("prompts", "are you sure?")} | ||||
|               aria-label={gettext("delete %{step_title}", step_title: step.title)} | ||||
|               aria-label={dgettext("actions", "delete %{step_title}", step_title: step.title)} | ||||
|             > | ||||
|               <%= dgettext("actions", "delete") %> | ||||
|             </button> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user