(gimp-context-get-gradient) could return a gradient name not found if language changed since last session
$ LANGUAGE=fr gimp-2.10 -sfcb '(gimp-gradient-get-uniform-samples (car (gimp-context-get-gradient)) 2 0)' -b '(gimp-quit 1)'
...
GIMP-Erreur: Erreur d’appel pour la procédure « gimp-gradient-get-uniform-samples » :
Impossible de trouver le dégradé « Standard »
batch command experienced an execution error:
Error: Procedure execution of gimp-gradient-get-uniform-samples failed on invalid input arguments: Impossible de trouver le dégradé « Standard »
$ LANGUAGE=de gimp-2.10 -sfcb '(gimp-gradient-get-uniform-samples (car (gimp-context-get-gradient)) 2 0)' -b '(gimp-quit 1)'
...
GIMP-Fehler: Fehler beim Aufruf der Prozedur »gimp-gradient-get-uniform-samples«:
Farbverlauf »Standard« wurde nicht gefunden
batch command experienced an execution error:
Error: Procedure execution of gimp-gradient-get-uniform-samples failed on invalid input arguments: Farbverlauf »Standard« wurde nicht gefunden
$ LANGUAGE=en gimp-2.10 -sfcb '(gimp-gradient-get-uniform-samples (car (gimp-context-get-gradient)) 2 0)' -b '(gimp-quit 1)'
...
batch command executed successfully
Similar warnings are reported when running gfig.
Edited by Michael Natterer