Skip to content

Commit a1e35b4

Browse files
committed
title: Remove topic "%s"
1 parent b3b89a6 commit a1e35b4

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

options/locale/locale_en-US.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2356,6 +2356,7 @@ tag.create_success = Tag '%s' has been created.
23562356
topic.manage_topics = Manage Topics
23572357
topic.count_prompt = You cannot select more than 25 topics
23582358
topic.format_prompt = Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2359+
topic.remove_topic = Remove topic "%s"
23592360

23602361
find_file.go_to_file = Go to file
23612362
find_file.no_matching = No matching file found

templates/repo/home.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<div class="ui fluid multiple search selection dropdown"
4040
data-text-count-prompt="{{.locale.Tr "repo.topic.count_prompt"}}"
4141
data-text-format-prompt="{{.locale.Tr "repo.topic.format_prompt"}}"
42-
data-text-remove="{{.locale.Tr "remove"}}"
42+
data-text-remove-topic="{{.locale.Tr "repo.topic.remove_topic"}}"
4343
>
4444
<input type="hidden" name="topics" value="{{range $i, $v := .Topics}}{{.Name}}{{if lt (Add $i 1) (len $.Topics)}},{{end}}{{end}}">
4545
{{range .Topics}}

web_src/js/features/repo-home.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ export function initRepoTopicBar() {
1818
const topicPrompts = {
1919
countPrompt: topicDropdown.attr('data-text-count-prompt'),
2020
formatPrompt: topicDropdown.attr('data-text-format-prompt'),
21-
remove: topicDropdown.attr('data-text-remove'),
21+
removeTopic: topicDropdown.attr('data-text-remove-topic'),
2222
};
2323

2424
function addLabelDeleteIconAria($el) {
2525
$el.removeAttr('aria-hidden').attr({
26-
'aria-label': topicPrompts.remove,
26+
'aria-label': topicPrompts.removeTopic.replace('%s', $el.parent().attr('data-value')),
2727
'role': 'button',
2828
});
2929
}

0 commit comments

Comments
 (0)