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.


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:

    "CMYK Tiff 2 PDF",
    "CMYK Tiff 2 PDF 20130802\nCreating a CMYK PDF for prepress from a
CMYK Tiff image.",
    "Eckhard M. Jaeger,";,
    "GPL V2 License",
        (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
        (PF_SPINNER,    "this_dpi", _("Resolution (dpi)"), 300,
        (PF_TOGGLE,        "delete_files", _("Delete Images\nafter PDF
creation"), False),
        (PF_TOGGLE,        "start_viewer", _("Start PDF Viewer\nafter
export"), True),
    domain=("gimp20-python", gimp.locale_directory),

But i didn't get it running.

Any help or idea?


 File "/home/me/.gimp-2.8/plug-ins/", 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:

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