From f64115d3b2595b8305f63d37cc7152cdc47196e9 Mon Sep 17 00:00:00 2001 From: bootchk Date: Tue, 23 Apr 2024 07:14:08 -0400 Subject: [PATCH] Plugins: GUI: Move HelloWorld and Sphere plugin menu items to Demos menu. The "Sphere" plugin demonstrate all the widgets for arguments of a plugin. Only its menu label is translated. The "Hello World" plugin demonstrates an independently interpreted SF plugin. It has no translations, even of its menu label. Formerly in ..ScriptFu>Test menu. They still are installed even in a stable release. If we don't want 3.0 stable to ship with demos, need more changes to meson.build. They are akin to the goat exercise plugins. These plugins are expected to ship with the goat plugins in a stable build. !!! But 2.10 did not ship with any demo plugins in stable build. There are duplicate "Sphere" (v2) and "Sphere v3" plugins. Does not break string freeze. The new-style "Sphere v3" plugin moves to Demos. It will be installed with stable build. No translations will change. "Sphere" (v2) will only be installed in an unstable build. FUTURE: we should translate Hello World and Sphere v3. If they are to ship as demos, their GUI should be translated. FUTURE: low priority we could rename "Sphere v3" to just Sphere, and Sphere to "Sphere v2" so there is no conflict. --- plug-ins/script-fu/scripts/meson.build | 3 +++ plug-ins/script-fu/scripts/test-sphere-v3.scm | 2 +- plug-ins/script-fu/scripts/ts-helloworld.scm | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/plug-ins/script-fu/scripts/meson.build b/plug-ins/script-fu/scripts/meson.build index 3a49fb9fbe..ef0aec3f2a 100644 --- a/plug-ins/script-fu/scripts/meson.build +++ b/plug-ins/script-fu/scripts/meson.build @@ -68,6 +68,9 @@ install_data( # Like other interpreted plugins. # Lacking a shebang, a .interp file is needed to associate .scm suffix +# !!! These are demo plugins. +# Install with a stable release along with goat exercise demos. + scripts_independent = [ { 'name': 'ts-helloworld' }, { 'name': 'test-sphere-v3' }, diff --git a/plug-ins/script-fu/scripts/test-sphere-v3.scm b/plug-ins/script-fu/scripts/test-sphere-v3.scm index eb7feb1dbc..2686904d19 100644 --- a/plug-ins/script-fu/scripts/test-sphere-v3.scm +++ b/plug-ins/script-fu/scripts/test-sphere-v3.scm @@ -183,4 +183,4 @@ ) (script-fu-menu-register "script-fu-test-sphere-v3" - "/Filters/Development/Script-Fu/Test") + "/Filters/Development/Demos") diff --git a/plug-ins/script-fu/scripts/ts-helloworld.scm b/plug-ins/script-fu/scripts/ts-helloworld.scm index 508f011593..96aabe5017 100644 --- a/plug-ins/script-fu/scripts/ts-helloworld.scm +++ b/plug-ins/script-fu/scripts/ts-helloworld.scm @@ -64,4 +64,4 @@ ) (script-fu-menu-register "script-fu-helloworld" - "/Filters/Development/Script-Fu/Test") + "/Filters/Development/Demos")