mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-06-19 00:25:57 +08:00
On sites with a large amount of templates, the default display and filter can become ineffective. By default, templates are ordered by alphabetical title order. If filtered by keyword, the plugin does a simple scoring based on whether the text is in the title (+2) or in the content (+1), then by alphabetical title order. This PR updates it to use the `usages` count, so the new priority of ordering is by score > usage > title. Also adds a localstorage for the selected tag used to filter the template list. The tag field will be pre-populated with the last used filtered tag if available. Renames hint from "Filter by title..." to "Filter by keyword..." to reflect actual filtering behavior.
20 lines
571 B
YAML
Vendored
20 lines
571 B
YAML
Vendored
en:
|
|
admin_js:
|
|
discourse_templates:
|
|
title: "Templates"
|
|
admin:
|
|
site_settings:
|
|
categories:
|
|
discourse_templates: "Discourse Templates"
|
|
js:
|
|
keyboard_shortcuts_help:
|
|
templates:
|
|
title: "Templates (within a textarea)"
|
|
insert_template: "%{shortcut} Insert template"
|
|
templates:
|
|
filter_hint: "Filter by keyword..."
|
|
insert_template: "Insert template"
|
|
close_templates: "Close the templates selector"
|
|
copy: "Copy template"
|
|
new_topic: "New topic from template"
|
|
source: "Source"
|