-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DEV: Move settings descriptions into translation file
This commit moves the description for the theme's settings into `locales/en.yml`. This follows our theme's best practice listed in https://meta.discourse.org/t/add-localizable-strings-to-themes-and-theme-components/109867
- Loading branch information
Showing
2 changed files
with
22 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
en: | ||
theme_metadata: | ||
settings: | ||
show_description: 'Show description from "About This Category" post' | ||
show_mobile: 'Show banners on mobile' | ||
show_subcategory: 'Show banners for subcategories' | ||
hide_if_no_description: 'Hide banners if category description is not set' | ||
show_category_logo: 'Show category logo' | ||
exceptions: "Banner will not show for these category NAMES." | ||
categories: | | ||
Banner will only show for these categories. Format as <code>name:target</code> (e.g., <code>staff:all</code>). | ||
Accepted targets: | ||
<ul> | ||
<li> all - named category and subcategories (default); | ||
<li> no_sub - only the named category; | ||
<li> only_sub - only subcategories of the named category. | ||
</ul> | ||
plugin_outlet: "Changes the position of the banner on the page." | ||
show_category_icon: Show category icon from the <a href="https://meta.discourse.org/t/category-icons/104683" target="_blank">Discourse Category Icons component</a> | ||
override_category_icon_color: When the category icons are used, enabling this will make the icon match the banner text color | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters