-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: add slack username helptext #5259
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about rewording it like this?
@@ -20,6 +20,9 @@ | |||
<i18n-t tag="p" keypath="aboutWebhooks" style="margin-top: 8px;"> | |||
<a href="https://api.slack.com/messaging/webhooks" target="_blank">https://api.slack.com/messaging/webhooks</a> | |||
</i18n-t> | |||
<p style="margin-top: 8px;"> | |||
{{ $t("aboutUsername", [$t("slack"), $t("Username"), $t("Friendly Name")]) }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know that in other translations (in this file) this is done, but I don't like this pulling things out unless that makes translation simpler.
=> let's inline this one
{{ $t("aboutUsername", [$t("slack"), $t("Username"), $t("Friendly Name")]) }} | |
{{ $t("aboutSlackUsername") }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, it seems easier to manage.
(Also, when viewed in Japanese, it feels somewhat difficult to read since only parts are translated.)
src/lang/en.json
Outdated
@@ -731,6 +731,7 @@ | |||
"Icon Emoji": "Icon Emoji", | |||
"signalImportant": "IMPORTANT: You cannot mix groups and numbers in recipients!", | |||
"aboutWebhooks": "More info about Webhooks on: {0}", | |||
"aboutUsername": "The {0} {1} can change the display name of the message sender. This is not for mentions. If you want to mention someone, include it in the {2}.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets reword it like this, what do you think?
"aboutUsername": "The {0} {1} can change the display name of the message sender. This is not for mentions. If you want to mention someone, include it in the {2}.", | |
"aboutSlackUsername": "Changes the display name of the message sender. If you want to mention someone, include it in the friendly name instead.", |
@@ -20,6 +20,9 @@ | |||
<i18n-t tag="p" keypath="aboutWebhooks" style="margin-top: 8px;"> | |||
<a href="https://api.slack.com/messaging/webhooks" target="_blank">https://api.slack.com/messaging/webhooks</a> | |||
</i18n-t> | |||
<p style="margin-top: 8px;"> | |||
{{ $t("aboutUsername", [$t("slack"), $t("Username"), $t("Friendly Name")]) }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, lets move this up to where the username field is, so that it is not so out of place
@CommanderStorm I feel that the help text has become clearer. Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the improvements to the docs
https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md#can-i-create-a-pull-request-for-uptime-kuma
Tick the checkbox if you understand [x]:
Description
Add help text about how to use the slack
Username
and the difference from mentions.Fixes #4560
Type of change
Please delete any options that are not relevant.
Checklist
Screenshots (if any)
Please do not use any external image service. Instead, just paste in or drag and drop the image here, and it will be uploaded automatically.
My slack test message: