Improve i18n strings on Kubernetes apps page
What does this MR do?
On the Kubernetes apps page, there are several strings that follow the format:
<gl-sprintf :message="s__('Message with a link to %{linkText}')">
<template #linkText>
<gl-link>{{ s__('Link Text') }}</gl-link>
</template>
</gl-sprintf>
This is not great for localization because it breaks the sentence into two parts: the sentence with a placeholder for the link text, and the link text itself.
This MR fixes that by moving the link text into the sentence itself, and uses the placeholder only to wrap the text in a link:
<gl-sprintf :message="s__('Message with a link to %{linkStart}Link Text%{linkEnd}')">
<template #link="{ content }">
<gl-link>{{ content }}</gl-link>
</template>
</gl-sprintf>
Screenshots
Backstage change, so it looks exactly the same |
---|
Does this MR meet the acceptance criteria?
Conformity
- [-] Changelog entry
- [-] Documentation (if required)
-
Code review guidelines -
Merge request performance guidelines - [-] Style guides
- [-] Database guides
- [-] Separation of EE specific content
Availability and Testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process. -
Tested in all supported browsers - [-] Informed Infrastructure department of a default or new setting change, if applicable per definition of done
Edited by 🤖 GitLab Bot 🤖