disambiguate Settings from editor options

This commit is contained in:
tophf 2021-12-27 18:39:47 +03:00
parent 6278eaf804
commit ac7f29b02f
3 changed files with 13 additions and 5 deletions

View File

@ -381,8 +381,8 @@
"editorCodeLabel": { "editorCodeLabel": {
"message": "Code" "message": "Code"
}, },
"editorSettingLabel": { "editorSettings": {
"message": "Settings" "message": "Editor settings"
}, },
"enableStyleLabel": { "enableStyleLabel": {
"message": "Enable", "message": "Enable",
@ -1452,6 +1452,10 @@
"message": "Sections", "message": "Sections",
"description": "Header for the table of contents block listing style section names in the left panel of the classic editor" "description": "Header for the table of contents block listing style section names in the left panel of the classic editor"
}, },
"settings": {
"message": "Settings",
"description": "Generic label/title for settings"
},
"shortcuts": { "shortcuts": {
"message": "Shortcuts", "message": "Shortcuts",
"description": "Go to shortcut configuration" "description": "Go to shortcut configuration"
@ -1623,6 +1627,10 @@
"message": "Save", "message": "Save",
"description": "Label for save button for style editing" "description": "Label for save button for style editing"
}, },
"styleSettings": {
"message": "Style settings",
"description": "Label/title for style settings dialog"
},
"styleToMozillaFormatHelp": { "styleToMozillaFormatHelp": {
"message": "The Mozilla format of the code can be submitted to userstyles.org and used with the classic Stylish for Firefox", "message": "The Mozilla format of the code can be submitted to userstyles.org and used with the classic Stylish for Firefox",
"description": "Help info for the Mozilla format header section that converts the code to/from Mozilla format" "description": "Help info for the Mozilla format header section that converts the code to/from Mozilla format"

View File

@ -315,7 +315,7 @@
<div> <div>
<button id="save-button" i18n-text="styleSaveLabel" data-hotkey-tooltip="save" disabled></button> <button id="save-button" i18n-text="styleSaveLabel" data-hotkey-tooltip="save" disabled></button>
<button id="beautify" i18n-text="styleBeautify"></button> <button id="beautify" i18n-text="styleBeautify"></button>
<button id="style-cfg-btn" i18n-text="editorSettingLabel"></button> <button id="style-cfg-btn" i18n-text="settings"></button>
<button id="cancel-button" i18n-title="styleCancelEditLabel"></button> <button id="cancel-button" i18n-title="styleCancelEditLabel"></button>
</div> </div>
<div id="mozilla-format-buttons" class="sectioned-only"> <div id="mozilla-format-buttons" class="sectioned-only">
@ -329,7 +329,7 @@
</section> </section>
<div id="details-wrapper"> <div id="details-wrapper">
<details id="options" data-pref="editor.options.expanded" class="ignore-pref-if-compact"> <details id="options" data-pref="editor.options.expanded" class="ignore-pref-if-compact">
<summary><h2 id="options-heading" i18n-text="optionsHeading"></h2></summary> <summary><h2 id="options-heading" i18n-text="editorSettings"></h2></summary>
<div id="options-wrapper"> <div id="options-wrapper">
<div class="options-column"> <div class="options-column">
<div class="option"> <div class="option">

View File

@ -21,7 +21,7 @@ function StyleSettings() {
]; ];
update(style); update(style);
editor.on('styleUpdated', update); editor.on('styleUpdated', update);
helpPopup.show(t('editorSettingLabel'), $create([ helpPopup.show(t('styleSettings'), $create([
ui, ui,
$create('.buttons', [ $create('.buttons', [
$create('button', { $create('button', {