From 0ae23a5d10e74edab52519cd52c51ad1414770db Mon Sep 17 00:00:00 2001 From: abakkk Date: Wed, 4 Mar 2020 14:23:49 +0100 Subject: [PATCH] "Open user.css" -> "Edit style" --- data/default.css | 2 +- draw.js | 2 +- locale/draw-on-your-screen.pot | 6 +++--- prefs.js | 6 +++--- ...g.gnome.shell.extensions.draw-on-your-screen.gschema.xml | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/data/default.css b/data/default.css index 0cc2f24..b5ab3ef 100644 --- a/data/default.css +++ b/data/default.css @@ -2,7 +2,7 @@ * Except for the font, you don't need to restart the extension. * Just save this file as ~/.local/share/drawOnYourScreen/user.css and the changes will be applied for your next brushstroke. * - * ~/.local/share/drawOnYourScreen/user.css file is automatically generated by activating "Open user.css". + * ~/.local/share/drawOnYourScreen/user.css file is automatically generated by activating "Edit style". * Delete ~/.local/share/drawOnYourScreen/user.css file to retrieve default drawing style. * * line-join (no string): diff --git a/draw.js b/draw.js index 4a36c70..ae75252 100644 --- a/draw.js +++ b/draw.js @@ -1306,7 +1306,7 @@ const DrawingMenu = new Lang.Class({ this._addSaveDrawingSubMenuItem(this.menu); this.menu.addAction(_("Save drawing as a SVG file"), this.area.saveAsSvg.bind(this.area), 'image-x-generic-symbolic'); - this.menu.addAction(_("Open user.css"), manager.openUserStyleFile.bind(manager), 'document-page-setup-symbolic'); + this.menu.addAction(_("Edit style"), manager.openUserStyleFile.bind(manager), 'document-page-setup-symbolic'); this.menu.addAction(_("Show help"), () => { this.close(); this.area.toggleHelp(); }, 'preferences-desktop-keyboard-shortcuts-symbolic'); this.updateSectionVisibility(); diff --git a/locale/draw-on-your-screen.pot b/locale/draw-on-your-screen.pot index f41e436..2df55f0 100644 --- a/locale/draw-on-your-screen.pot +++ b/locale/draw-on-your-screen.pot @@ -215,7 +215,7 @@ msgstr "" msgid "Save drawing as a SVG file" msgstr "" -msgid "Open user.css" +msgid "Edit style" msgstr "" msgid "Show help" @@ -324,7 +324,7 @@ msgid "" msgstr "" msgid "" -"Default drawing attributes (color palette, font, line, dash) are defined in an editable css file.\n" +"Default drawing style attributes (color palette, font, line, dash) are defined in an editable css file.\n" "See “%s”." msgstr "" @@ -336,7 +336,7 @@ msgstr "" # The following words refer to SVG attributes. -# You have the choice to translate or not +# You are free to translate them or not. #msgid "Butt" #msgstr "" diff --git a/prefs.js b/prefs.js index 7867a53..3971165 100644 --- a/prefs.js +++ b/prefs.js @@ -71,7 +71,7 @@ var INTERNAL_KEYBINDINGS = { 'open-next-json': "Open next drawing", 'save-as-json': "Save drawing", 'save-as-svg': "Save drawing as a SVG file", - 'open-user-stylesheet': "Open user.css", + 'open-user-stylesheet': "Edit style", 'toggle-help': "Show help" }; @@ -299,8 +299,8 @@ const PrefsPage = new GObject.Class({ wrap: true, xalign: 0, use_markup: true, - label: _("Default drawing attributes (color palette, font, line, dash) are defined in an editable css file.\n" + - "See “%s”.").format(_("Open user.css")) + label: _("Default drawing style attributes (color palette, font, line, dash) are defined in an editable css file.\n" + + "See “%s”.").format(_("Edit style")) }); styleLabel.set_halign(1); styleLabel.get_style_context().add_class('dim-label'); diff --git a/schemas/org.gnome.shell.extensions.draw-on-your-screen.gschema.xml b/schemas/org.gnome.shell.extensions.draw-on-your-screen.gschema.xml index cef9985..8890675 100644 --- a/schemas/org.gnome.shell.extensions.draw-on-your-screen.gschema.xml +++ b/schemas/org.gnome.shell.extensions.draw-on-your-screen.gschema.xml @@ -193,8 +193,8 @@ ["<Primary>o"] - open user stylesheet - open user stylesheet + open user stylesheet to edit style + open user stylesheet to edit style ["<Primary><Shift>s"]