From 50ec32a7b2124a8d2e54527d3c3d6858133793fc Mon Sep 17 00:00:00 2001 From: tophf Date: Wed, 26 Apr 2017 03:05:41 +0300 Subject: [PATCH] Rephrase the misleading "only edited styles" option --- _locales/ar/messages.json | 4 ---- _locales/cs/messages.json | 4 ---- _locales/de/messages.json | 6 +----- _locales/el/messages.json | 4 ---- _locales/en/messages.json | 10 +++++++--- _locales/es/messages.json | 4 ---- _locales/fi/messages.json | 4 ---- _locales/fr/messages.json | 4 ---- _locales/it/messages.json | 4 ---- _locales/ja/messages.json | 4 ---- _locales/nl/messages.json | 4 ---- _locales/pt_BR/messages.json | 4 ---- _locales/ru/messages.json | 4 ---- _locales/sr/messages.json | 7 ++----- _locales/sv/messages.json | 4 ---- _locales/sv_SE/messages.json | 4 ---- _locales/te/messages.json | 4 ---- _locales/tr/messages.json | 4 ---- _locales/zh/messages.json | 4 ---- _locales/zh_CN/messages.json | 4 ---- _locales/zh_TW/messages.json | 4 ---- dom.js | 2 +- manage.html | 4 ++-- prefs.js | 2 +- 24 files changed, 14 insertions(+), 89 deletions(-) diff --git a/_locales/ar/messages.json b/_locales/ar/messages.json index a808bf3c..50c8f547 100644 --- a/_locales/ar/messages.json +++ b/_locales/ar/messages.json @@ -7,10 +7,6 @@ "message": "default", "description": "Default CodeMirror CSS theme option on the edit style page" }, - "manageOnlyEdited": { - "message": "Only edited styles", - "description": "Checkbox to show only locally edited styles" - }, "exportLabel": { "message": "Export", "description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)" diff --git a/_locales/cs/messages.json b/_locales/cs/messages.json index d2ab037c..2cf3eebe 100644 --- a/_locales/cs/messages.json +++ b/_locales/cs/messages.json @@ -7,10 +7,6 @@ "message": "výchozí", "description": "Default CodeMirror CSS theme option on the edit style page" }, - "manageOnlyEdited": { - "message": "Pouze upravené styly.", - "description": "Checkbox to show only locally edited styles" - }, "exportLabel": { "message": "Exportovat", "description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)" diff --git a/_locales/de/messages.json b/_locales/de/messages.json index 11c75031..e924449f 100644 --- a/_locales/de/messages.json +++ b/_locales/de/messages.json @@ -11,10 +11,6 @@ "message": "Styles Exportieren", "description": "" }, - "manageOnlyEdited": { - "message": "Nur bearbeitete Styles", - "description": "Checkbox to show only locally edited styles" - }, "optionsUpdateInterval": { "message": "Automatischer Update- und Installations-Intervall (in Stunden)", "description": "" @@ -520,4 +516,4 @@ "message": "Gestalten Sie das Web mit Stylus, einem Manager für Benutzer-Styles, um. Stylus lässt Sie ganz einfach Themes und Skins für viele beliebte Webseiten installieren.", "description": "Extension description" } -} \ No newline at end of file +} diff --git a/_locales/el/messages.json b/_locales/el/messages.json index 1ce194ef..ac685072 100644 --- a/_locales/el/messages.json +++ b/_locales/el/messages.json @@ -7,10 +7,6 @@ "message": "default", "description": "Default CodeMirror CSS theme option on the edit style page" }, - "manageOnlyEdited": { - "message": "Μόνο επεξεργασμενα στυλ", - "description": "Checkbox to show only locally edited styles" - }, "exportLabel": { "message": "Export", "description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)" diff --git a/_locales/en/messages.json b/_locales/en/messages.json index ad15ba62..74032fd9 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -322,9 +322,13 @@ "message": "Only enabled styles", "description": "Checkbox to show only enabled styles" }, - "manageOnlyEdited": { - "message": "Only edited styles", - "description": "Checkbox to show only locally edited styles" + "manageOnlyLocal": { + "message": "Only locally created styles", + "description": "Checkbox to show only locally created styles i.e. non-updatable" + }, + "manageOnlyLocalTooltip": { + "message": "(the styles not installed through a userstyles.org page)", + "description": "Tooltip for the checkbox to show only locally created styles i.e. non-updatable" }, "manageOnlyUpdates": { "message": "Only with updates or issues", diff --git a/_locales/es/messages.json b/_locales/es/messages.json index 8eb8fb4e..5ac6f5d1 100644 --- a/_locales/es/messages.json +++ b/_locales/es/messages.json @@ -11,10 +11,6 @@ "message": "Exportar estilos", "description": "" }, - "manageOnlyEdited": { - "message": "Sólo estilos editados", - "description": "Checkbox to show only locally edited styles" - }, "optionsUpdateInterval": { "message": "Buscar e instalar automáticamente todas las actualizaciones disponibles de estilos de usuario (en horas)", "description": "" diff --git a/_locales/fi/messages.json b/_locales/fi/messages.json index 05f23581..9d7e0ea8 100644 --- a/_locales/fi/messages.json +++ b/_locales/fi/messages.json @@ -7,10 +7,6 @@ "message": "default", "description": "Default CodeMirror CSS theme option on the edit style page" }, - "manageOnlyEdited": { - "message": "Only edited styles", - "description": "Checkbox to show only locally edited styles" - }, "exportLabel": { "message": "Export", "description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)" diff --git a/_locales/fr/messages.json b/_locales/fr/messages.json index bcefde28..b399a0d5 100644 --- a/_locales/fr/messages.json +++ b/_locales/fr/messages.json @@ -7,10 +7,6 @@ "message": "défaut", "description": "Default CodeMirror CSS theme option on the edit style page" }, - "manageOnlyEdited": { - "message": "Only edited styles", - "description": "Checkbox to show only locally edited styles" - }, "exportLabel": { "message": "Exportez", "description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)" diff --git a/_locales/it/messages.json b/_locales/it/messages.json index 0c0e3c96..3a485c49 100644 --- a/_locales/it/messages.json +++ b/_locales/it/messages.json @@ -7,10 +7,6 @@ "message": "default", "description": "Default CodeMirror CSS theme option on the edit style page" }, - "manageOnlyEdited": { - "message": "Only edited styles", - "description": "Checkbox to show only locally edited styles" - }, "exportLabel": { "message": "Export", "description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)" diff --git a/_locales/ja/messages.json b/_locales/ja/messages.json index 0bff027c..db2a6210 100644 --- a/_locales/ja/messages.json +++ b/_locales/ja/messages.json @@ -7,10 +7,6 @@ "message": "default", "description": "Default CodeMirror CSS theme option on the edit style page" }, - "manageOnlyEdited": { - "message": "Only edited styles", - "description": "Checkbox to show only locally edited styles" - }, "exportLabel": { "message": "Export", "description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)" diff --git a/_locales/nl/messages.json b/_locales/nl/messages.json index 6361e18d..618b81bd 100644 --- a/_locales/nl/messages.json +++ b/_locales/nl/messages.json @@ -7,10 +7,6 @@ "message": "standaard", "description": "Default CodeMirror CSS theme option on the edit style page" }, - "manageOnlyEdited": { - "message": "Alleen bewerkte stijlen", - "description": "Checkbox to show only locally edited styles" - }, "exportLabel": { "message": "Exporteren", "description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)" diff --git a/_locales/pt_BR/messages.json b/_locales/pt_BR/messages.json index 1781676d..729f3dd4 100644 --- a/_locales/pt_BR/messages.json +++ b/_locales/pt_BR/messages.json @@ -7,10 +7,6 @@ "message": "default", "description": "Default CodeMirror CSS theme option on the edit style page" }, - "manageOnlyEdited": { - "message": "Only edited styles", - "description": "Checkbox to show only locally edited styles" - }, "exportLabel": { "message": "Export", "description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)" diff --git a/_locales/ru/messages.json b/_locales/ru/messages.json index 1de473da..1b5797c2 100644 --- a/_locales/ru/messages.json +++ b/_locales/ru/messages.json @@ -7,10 +7,6 @@ "message": "по-умолчанию", "description": "Default CodeMirror CSS theme option on the edit style page" }, - "manageOnlyEdited": { - "message": "Только отредактированные стили", - "description": "Checkbox to show only locally edited styles" - }, "exportLabel": { "message": "Экспорт", "description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)" diff --git a/_locales/sr/messages.json b/_locales/sr/messages.json index 34e16b6d..01682cad 100644 --- a/_locales/sr/messages.json +++ b/_locales/sr/messages.json @@ -7,10 +7,6 @@ "message": "подразумевано", "description": "Default CodeMirror CSS theme option on the edit style page" }, - "manageOnlyEdited": { - "message": "Само уређени стилови", - "description": "Checkbox to show only locally edited styles" - }, "exportLabel": { "message": "Извези", "description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)" @@ -295,7 +291,8 @@ "description": "Heading for the section with buttons to import/export Mozilla format of the style" }, "stylusUnavailableForURL": { - "message": "Stylus не ради на страницама као што је ова.", "description": "Note in the toolbar pop-up when on a URL Stylus can't affect" + "message": "Stylus не ради на страницама као што је ова.", + "description": "Note in the toolbar pop-up when on a URL Stylus can't affect" }, "sectionRemove": { "message": "Уклони одељак", diff --git a/_locales/sv/messages.json b/_locales/sv/messages.json index 14ad05cb..5b015421 100644 --- a/_locales/sv/messages.json +++ b/_locales/sv/messages.json @@ -7,10 +7,6 @@ "message": "default", "description": "Default CodeMirror CSS theme option on the edit style page" }, - "manageOnlyEdited": { - "message": "Endast ändrade stilar", - "description": "Checkbox to show only locally edited styles" - }, "exportLabel": { "message": "Export", "description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)" diff --git a/_locales/sv_SE/messages.json b/_locales/sv_SE/messages.json index 913f6b8c..1016654e 100644 --- a/_locales/sv_SE/messages.json +++ b/_locales/sv_SE/messages.json @@ -7,10 +7,6 @@ "message": "default", "description": "Default CodeMirror CSS theme option on the edit style page" }, - "manageOnlyEdited": { - "message": "Endast ändrade stilar", - "description": "Checkbox to show only locally edited styles" - }, "exportLabel": { "message": "Export", "description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)" diff --git a/_locales/te/messages.json b/_locales/te/messages.json index 82268516..ed0550f2 100644 --- a/_locales/te/messages.json +++ b/_locales/te/messages.json @@ -7,10 +7,6 @@ "message": "default", "description": "Default CodeMirror CSS theme option on the edit style page" }, - "manageOnlyEdited": { - "message": "Only edited styles", - "description": "Checkbox to show only locally edited styles" - }, "exportLabel": { "message": "Export", "description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)" diff --git a/_locales/tr/messages.json b/_locales/tr/messages.json index 7a15d65c..efbc2fd3 100644 --- a/_locales/tr/messages.json +++ b/_locales/tr/messages.json @@ -7,10 +7,6 @@ "message": "default", "description": "Default CodeMirror CSS theme option on the edit style page" }, - "manageOnlyEdited": { - "message": "Only edited styles", - "description": "Checkbox to show only locally edited styles" - }, "exportLabel": { "message": "Export", "description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)" diff --git a/_locales/zh/messages.json b/_locales/zh/messages.json index fbc30b4c..a28bf22c 100644 --- a/_locales/zh/messages.json +++ b/_locales/zh/messages.json @@ -7,10 +7,6 @@ "message": "default", "description": "Default CodeMirror CSS theme option on the edit style page" }, - "manageOnlyEdited": { - "message": "Only edited styles", - "description": "Checkbox to show only locally edited styles" - }, "exportLabel": { "message": "Export", "description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)" diff --git a/_locales/zh_CN/messages.json b/_locales/zh_CN/messages.json index 99b9dc9c..98cb6163 100644 --- a/_locales/zh_CN/messages.json +++ b/_locales/zh_CN/messages.json @@ -11,10 +11,6 @@ "message": "导出所有样式", "description": "" }, - "manageOnlyEdited": { - "message": "仅修改过的样式", - "description": "Checkbox to show only locally edited styles" - }, "optionsUpdateInterval": { "message": "每 N 小时,检查所有样式更新(0 为关闭检查)", "description": "" diff --git a/_locales/zh_TW/messages.json b/_locales/zh_TW/messages.json index 07e51fad..e326dfc8 100644 --- a/_locales/zh_TW/messages.json +++ b/_locales/zh_TW/messages.json @@ -7,10 +7,6 @@ "message": "默認", "description": "Default CodeMirror CSS theme option on the edit style page" }, - "manageOnlyEdited": { - "message": "只顯示已禁用的樣式", - "description": "Checkbox to show only locally edited styles" - }, "exportLabel": { "message": "導出", "description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)" diff --git a/dom.js b/dom.js index 7f5dd80c..d2475415 100644 --- a/dom.js +++ b/dom.js @@ -68,7 +68,7 @@ function enforceInputRange(element) { function $(selector, base = document) { - // we have ids with . like #manage.onlyEdited which look like #id.class + // we have ids with . like #manage.onlyEnabled which looks like #id.class // so since getElementById is superfast we'll try it anyway const byId = selector.startsWith('#') && document.getElementById(selector.slice(1)); return byId || base.querySelector(selector); diff --git a/manage.html b/manage.html index 58ac2a63..d7fc425c 100644 --- a/manage.html +++ b/manage.html @@ -141,10 +141,10 @@