Re: [Gimp-developer] Need help with Python on GIMP 2.8 for bug fixing



teh "_" is a call to be used when your plug-in is written with
multi-lingual support - either
write your plug-in copying the "_" related bits from another python
plug-in with localisation, or leave it apart for now - just put on the
beggining files of your plug-in something along:

_ = lambda x: x

This will give you a mockup translating function that will allow you
to focus first on the development, and you can polish it to get i18n
working later on.

  js
 -><-

On 2 August 2013 16:41, Ofnuts <ofnuts laposte net> wrote:
On 08/02/2013 08:33 PM, bart neeneenee de wrote:


Dear GIMP devs,

i'm the author of "CMYK Tiff 2 PDF" which is an addon for GIMP and the
Seperate+ plugin.
My script is part of the plugin registry too.

But it seems it doesn't show up in GIMP 2.8./ Ubuntu.

I changed the pythin script registration to:

register(
    "python-fu-cmyk-tiff-2-pdf",
    "CMYK Tiff 2 PDF",
    "CMYK Tiff 2 PDF 20130802\nCreating a CMYK PDF for prepress from a
CMYK Tiff image.",
    "Eckhard M. Jaeger, http://my.opera.com/area42/blog/";,
    "GPL V2 License",
    "2013",
    "*",
    "*",
    [
        (PF_FILENAME,    "this_file1", _("CMYK Tiff Images"), ""),
        (PF_FILENAME,    "this_file2", _(" "), ""),
        (PF_RADIO,         "this_compress",  _("Compression"), "0",
(("JPEG 95% Quality","0"), ("Zip Full Quality","2"), ("No
Compression","4"))),
        (PF_SPINNER,    "this_dpi", _("Resolution (dpi)"), 300,
(0,2400,50)),
        (PF_TOGGLE,        "delete_files", _("Delete Images\nafter PDF
creation"), False),
        (PF_TOGGLE,        "start_viewer", _("Start PDF Viewer\nafter
export"), True),
    ],
    [],
    python_fu_cmyk_tiff_2_pdf,
    domain=("gimp20-python", gimp.locale_directory),
    menu="<Image>/Image/Separate/"
)
main()


But i didn't get it running.

Any help or idea?

_______________________________________________



 File "/home/me/.gimp-2.8/plug-ins/testreg.py", line 17, in <module>

    (PF_FILENAME,    "this_file1", _("CMYK Tiff Images"), ""),
NameError: name '_' is not defined


_______________________________________________
gimp-developer-list mailing list
List address:    gimp-developer-list gnome org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list


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