fix: rename Badge Generator to Badge Link Generator and add helptext

This commit is contained in:
leonace924 2026-01-05 23:51:50 -05:00
parent 745501852c
commit 95bfae5c8d
3 changed files with 10 additions and 4 deletions

View File

@ -4,11 +4,16 @@
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
<h5 class="modal-title"> <h5 class="modal-title">
{{ $t("Badge Generator", [monitor.name]) }} {{ $t("Badge Link Generator", [monitor.name]) }}
</h5> </h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" :aria-label="$t('Close')" /> <button type="button" class="btn-close" data-bs-dismiss="modal" :aria-label="$t('Close')" />
</div> </div>
<div class="modal-body"> <div class="modal-body">
<i18n-t keypath="Badge Link Generator Helptext" tag="p" class="form-text mb-3">
<template #documentation>
<a href="https://github.com/louislam/uptime-kuma/wiki/Badge" target="_blank" rel="noopener noreferrer">{{ $t("documentation") }}</a>
</template>
</i18n-t>
<div class="mb-3"> <div class="mb-3">
<label for="type" class="form-label">{{ $t("Badge Type") }}</label> <label for="type" class="form-label">{{ $t("Badge Type") }}</label>
<select id="type" v-model="badge.type" class="form-select"> <select id="type" v-model="badge.type" class="form-select">

View File

@ -34,7 +34,7 @@
@click="$refs.badgeGeneratorDialog.show(monitor.id, monitor.name)" @click="$refs.badgeGeneratorDialog.show(monitor.id, monitor.name)"
> >
<font-awesome-icon icon="certificate" /> <font-awesome-icon icon="certificate" />
{{ $t("Open Badge Generator") }} {{ $t("Open Badge Link Generator") }}
</button> </button>
</div> </div>

View File

@ -909,8 +909,9 @@
"Monitor Setting": "{0}'s Monitor Setting", "Monitor Setting": "{0}'s Monitor Setting",
"Show Clickable Link": "Show Clickable Link", "Show Clickable Link": "Show Clickable Link",
"Show Clickable Link Description": "If checked everyone who have access to this status page can have access to monitor URL.", "Show Clickable Link Description": "If checked everyone who have access to this status page can have access to monitor URL.",
"Open Badge Generator": "Open Badge Generator", "Open Badge Link Generator": "Open Badge Link Generator",
"Badge Generator": "{0}'s Badge Generator", "Badge Link Generator": "{0}'s Badge Link Generator",
"Badge Link Generator Helptext": "Badge links are available for all monitors assigned to public status pages. For more information, please see the {documentation}.",
"Badge Type": "Badge Type", "Badge Type": "Badge Type",
"Badge Duration (in hours)": "Badge Duration (in hours)", "Badge Duration (in hours)": "Badge Duration (in hours)",
"Badge Label": "Badge Label", "Badge Label": "Badge Label",