[gimp] Issue #8498: Quirky text to translate in gradients-save-as-css.py.



commit 31df4c2bf15f49f4c8ec921b77a359afce6452a1
Author: Jehan <jehan girinstud io>
Date:   Tue Aug 16 21:18:51 2022 +0200

    Issue #8498: Quirky text to translate in gradients-save-as-css.py.
    
    Just duplicate the blurb into the help string. I'll leave it to someone
    else to write a dedicated, longer help text if needed.
    
    Also fixing the call s/Gimp.init/GimpUi.init/.

 plug-ins/python/gradients-save-as-css.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/python/gradients-save-as-css.py b/plug-ins/python/gradients-save-as-css.py
index 29aa4eb014..da288dbb47 100755
--- a/plug-ins/python/gradients-save-as-css.py
+++ b/plug-ins/python/gradients-save-as-css.py
@@ -25,6 +25,8 @@
 import gi
 gi.require_version('Gimp', '3.0')
 from gi.repository import Gimp
+gi.require_version('GimpUi', '3.0')
+from gi.repository import GimpUi
 from gi.repository import GObject
 from gi.repository import GLib
 from gi.repository import Gio
@@ -74,7 +76,7 @@ def gradient_css_save(procedure, args, data):
         gi.require_version('Gtk', '3.0')
         from gi.repository import Gtk
 
-        Gimp.init ("gradients-save-as-css.py")
+        GimpUi.init ("gradients-save-as-css.py")
 
         use_header_bar = Gtk.Settings.get_default().get_property("gtk-dialogs-use-header")
         dialog = Gtk.FileChooserDialog(use_header_bar=use_header_bar,
@@ -163,7 +165,7 @@ class GradientsSaveAsCSS (Gimp.PlugIn):
                                            gradient_css_save, None)
             procedure.set_image_types("*")
             procedure.set_documentation (_("Creates a new palette from a given gradient"),
-                                         _("palette_from_gradient (gradient, number, segment_colors) -> 
None"),
+                                         _("Creates a new palette from a given gradient"),
                                          name)
             procedure.set_menu_label("Save as CSS...")
             procedure.set_attribution("Joao S. O. Bueno",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]