UX: Remove unused strings (#19701)

* Remove unused strings
* Remove trailing quote from string
* Remove even more unused strings (they were removed in c4e10f2a9d)
* Don't use translations in tests which are only available on server
* Use more specific translation (and fix missing translation)
This commit is contained in:
Gerhard Schlager 2023-01-04 10:32:53 +01:00 committed by GitHub
parent bbcdf74c58
commit 8dfe7a68e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 17 deletions

View File

@ -106,7 +106,7 @@
}}
@action={{action "revert" c}}
@title="admin.customize.colors.revert_title"
@label="revert"
@label="admin.customize.colors.revert"
/>
<DButton
@class={{concat
@ -115,7 +115,7 @@
}}
@action={{action "undo" c}}
@title="admin.customize.colors.undo_title"
@label="undo"
@label="admin.customize.colors.undo"
/>
{{/unless}}
</td>

View File

@ -49,7 +49,7 @@
<DButton
@action={{action "undoAcceptRequest"}}
@actionParam={{m}}
@label="undo"
@label="groups.requests.undo"
/>
{{else if m.request_denied}}
{{i18n "groups.requests.denied"}}

View File

@ -31,7 +31,8 @@ acceptance("Password Reset", function (needs) {
} else {
return helper.response({
success: "OK",
message: I18n.t("password_reset.success"),
message:
"You successfully changed your password and are now logged in.",
});
}
});
@ -44,7 +45,8 @@ acceptance("Password Reset", function (needs) {
) {
return helper.response({
success: "OK",
message: I18n.t("password_reset.success"),
message:
"You successfully changed your password and are now logged in.",
});
} else if (body.second_factor_token === "123123") {
return helper.response({

View File

@ -429,7 +429,6 @@ en:
enable: "Enable"
disable: "Disable"
continue: "Continue"
undo: "Undo"
switch_to_anon: "Enter Anonymous Mode"
switch_from_anon: "Exit Anonymous Mode"
@ -747,6 +746,7 @@ en:
denied: "denied"
undone: "request undone"
handle: "handle membership request"
undo: "Undo"
manage:
title: "Manage"
name: "Name"
@ -3581,7 +3581,6 @@ en:
create_for_topic: "Create bookmark for topic"
edit: "Edit bookmark"
edit_for_topic: "Edit bookmark for topic"
created: "Created"
updated: "Updated"
name: "Name"
name_placeholder: "What is this bookmark for?"
@ -3907,7 +3906,6 @@ en:
category_title: "Category"
history_capped_revisions: "History, last 100 revisions"
history: "History"
changed_by: "by %{author}"
raw_email:
title: "Incoming Email"
@ -5107,9 +5105,9 @@ en:
new_name: "New Color Palette"
copy_name_prefix: "Copy of"
delete_confirm: "Delete this color palette?"
undo: "undo"
undo: "Undo"
undo_title: "Undo your changes to this color since the last time it was saved."
revert: "revert"
revert: "Revert"
revert_title: "Reset this color to Discourse's default color palette."
primary:
name: "primary"

View File

@ -833,10 +833,6 @@ en:
password_reset:
no_token: 'Oops! The link you used no longer works. You can <a href="%{base_url}/login">Log In</a> now. If you forgot your password, you can <a href="%{base_url}/password-reset">request a link</a> to reset it.'
choose_new: "Choose a new password"
choose: "Choose a password"
update: "Update Password"
save: "Set Password"
title: "Reset Password"
success: "You successfully changed your password and are now logged in."
success_unapproved: "You successfully changed your password."
@ -1049,7 +1045,7 @@ en:
mailing_list_mode: "Turn off mailing list mode"
all: "Dont send me any mail from %{sitename}"
different_user_description: "You are currently logged in as a different user than the one we emailed. Please log out, or enter anonymous mode, and try again."
not_found_description: Sorry, we couldn't find that subscription. It's possible the link in your email is too old and has expired?"
not_found_description: "Sorry, we couldn't find that subscription. It's possible the link in your email is too old and has expired?"
user_not_found_description: "Sorry, we couldn't find a user for this subscription. You are probably attempting to unsubscribe an account that no longer exists."
log_out: "Log Out"
submit: "Save preferences"