From 2a77d6afdf1b9daa21f3dbf06e66cc7911353d5f Mon Sep 17 00:00:00 2001 From: Leilei332 Date: Mon, 30 Sep 2024 20:40:45 +0800 Subject: [PATCH] Fix confusing empty message in tag dropdown (#8649) --- core/language/en-GB/EditTemplate.multids | 3 ++- core/wiki/macros/tag-picker.tid | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/core/language/en-GB/EditTemplate.multids b/core/language/en-GB/EditTemplate.multids index 9b61f71ec..8b2e6e17a 100644 --- a/core/language/en-GB/EditTemplate.multids +++ b/core/language/en-GB/EditTemplate.multids @@ -26,7 +26,8 @@ Tags/ClearInput/Caption: clear input Tags/ClearInput/Hint: Clear tag input Tags/Dropdown/Caption: tag list Tags/Dropdown/Hint: Show tag list -Tags/EmptyMessage: (no search result) +Tags/EmptyMessage: No tags found +Tags/EmptyMessage/System: No system tags found Title/BadCharacterWarning: Warning: avoid using any of the characters <> in tiddler titles Title/Exists/Prompt: Target tiddler already exists Title/Relink/Prompt: Update ''<$text text=<>/>'' to ''<$text text=<>/>'' in the //tags// and //list// fields of other tiddlers diff --git a/core/wiki/macros/tag-picker.tid b/core/wiki/macros/tag-picker.tid index 4186f4138..1aeb41e9d 100644 --- a/core/wiki/macros/tag-picker.tid +++ b/core/wiki/macros/tag-picker.tid @@ -77,14 +77,14 @@ The second ESC tries to close the "draft tiddler" -\procedure tag-picker-listTags(filter, suffix) +\procedure tag-picker-listTags(filter, suffix, empty) <$let userInput=<<_tf.getUserInput>> > <$list filter="[minlength{$:/config/Tags/MinLength}limit[1]]" emptyMessage="
{{$:/language/Search/Search/TooShort}}
" variable="listItem" > <$list filter=<> variable="tag"> <$list-empty> - {{$:/language/EditTemplate/Tags/EmptyMessage}} + <>