Commit Graph

312 Commits

Author SHA1 Message Date
Anders Jonsson 9219c1eaba libgimp, plug-ins: update POTFILES.in 2024-08-02 23:02:36 +00:00
Anders Jonsson 80b7727770 Update POTFILES.in 2024-04-24 22:32:03 +02:00
Anders Jonsson 8e8d2dd4c4 plug-ins: mark DDS progress strings as translatable 2024-04-10 15:30:00 +00:00
Alx Sa 33b88d2d3b po-plug-ins: Remove reference to selection-to-path-dialog.c
This file was removed in the port to GimpProcedureConfig.
Thanks to @piotrdrag for pointing that out!
2023-10-07 14:49:36 +00:00
Zander Brown efabebd0bb help-browser: move menu to XML 2023-08-10 12:11:01 +00:00
Zander Brown 7d1eac18ca ifs: move menu to XML
See: https://gitlab.gnome.org/GNOME/gimp/-/issues/9776
2023-08-10 12:11:01 +00:00
Alx Sa 8709e91999 plug-ins: Make GFig menus translatable
Based on the IMAP port in !1031, this moves the menu code to a separate file
so that gettext can access it for translation.
2023-08-09 16:17:00 +00:00
Zander Brown 637385c7d1 imap: move menu to XML
Having it as an inline string doesn't make much sense, and makes it
untranslatable
2023-08-09 13:46:56 +00:00
Alx Sa d1864866ee plug-ins: Support Farbfeld image import/export 2023-07-19 00:37:54 +00:00
Anders Jonsson 4239d1af44 plug-ins: uncomment animation-play in POTFILES.in
The animation-play plug-in was readded in
6bb03dc21a

Also remove it from POTFILES.skip together with
curve-bend that already had been reactivated.
2023-07-12 13:22:26 +02:00
Jacob Boerema 8969bbcee8 plug-ins: Remove dependency on GtkBuilder from metadata-editor
Instead of loading the GtkBuilder .ui file we now create all widgets in
code.
Added several support functions to reduce code copy/pasting and making
additional widgets and supporting more metadata easier.
The overall layout should still look the same, with a few exceptions:
- Each notebook page only uses one grid. This makes it possible to align
all data entry widgets.
- Featured Organization and it's code were two treeviews next to each
other. These are now organized below each other to make automatic code
generation easier.
- Since we needed to touch this code anyway, I also fixed Xmp.dc.creator
and Xmp.iptcExt.ModelAge to be multiline. This closes #7286.
- The old icons used for the date button, add, and remove row buttons
were replaced by gimp-grid, list-add and list-remove.

Since this was the last .ui file used in GIMP plug-ins, we remove all
files from the .ui subdirectory and references to that.

Note that there are several more places where GtkBuilder is used, but
those cases uses strings defined in code instead of .ui files.
2023-05-10 13:25:12 -04:00
Jacob Boerema 7b6ceabeba po-plug-ins: remove plug-in-metadata-viewer.ui from POTFILES.in
I missed this one in the previous commit.
2023-04-30 16:33:21 -04:00
Alx Sa 222bef78c7 plug-ins: Initial support for Amiga IFF/ILBM
Imports indexed ILBM, Amiga PBM, and ACBM images.
2023-04-22 21:33:27 -04:00
Alx Sa 66e6d5a727 po-plugins: Add plug-ins/common/file-qoi.c to...
POTFILES.in.
2023-04-01 13:51:42 +00:00
Jehan b76411ff86 po-plug-ins: add missing plug-ins/file-icns/file-icns-save.c in POTFILES. 2022-10-27 14:36:14 +02:00
Alx Sa 00232e1787 plug-ins: Add support for loading .icns files
This ports ICNS loading code from Brion Vibber's 2004 plug-in.
It extends support for ICNS files that contain PNG or JP2 format icons.
2022-10-16 02:20:51 +00:00
Jehan e1c0c80007 po-plug-ins: adding plug-ins/common/file-wbmp.c to POTFILES.
Thanks to Piotr Drąg for reminding us!
2022-07-09 13:22:30 +02:00
Niels De Graef f663d26ab5 Migrate from intltool to gettext
intltool has long been dead upstream. Let's not poke the dead corpse,
please.

This commit is quite large, but that's mostly since trying to support a
hybrid of both gettext and intltool with both Meson and Autotools was
really hard, so I stopped trying.

Due to gettext relying on quite some things being at the exactly right
place in the autotools build (like `ABOUT-NLS` and `config.rpath`) we
really needed to cleanup the `autogen.sh` to only call `aclocal` and
`autoreconf`. No more strange magic; I tried to do it without changing
too much in the file, and things just broke. If people want to do
something more custom, they can just change the script directly. This
change also uncovered some problems in our `configure.ac`, like using
deprecated macros.

The following major changes happened:

* meson: Changed `custom_target()` to `i18n.merge_file()` for all
  supported file types
* Added `.its` and `.loc`  files for the GIMP-specific XML formats, so
  that gettext understands them
* For the `.isl` (Window installer stuff) file, there's no easy way to
  do this in gettext, so instead we start from an XML file (again with
  its own ITS rules etc), translate that with gettext, and then use
  `xsltproc` with a bit of magic to output the .isl file for each
  language
* the `po*/Makefile.in.in` files are migrated to `Makevars` files,
  which gettext natively understands.

Fixes: https://gitlab.gnome.org/GNOME/gimp/-/issues/8028
2022-06-25 10:25:49 +02:00
Jehan 3e6822b49d po-plug-ins: adding js and lua demo plug-ins to the POTFILES.
As noticed by Piotr Drąg.
2022-06-22 22:56:24 +02:00
Jehan 0b6f88ee8c po-plug-ins: add plug-ins/file-fli/fli.c in POTFILES.
Reported by Piotr Drąg.
2022-06-09 16:22:00 +02:00
Stanislav Grinkov f4ab5cd8e0
i18n: Add plug-ins/common/file-jpegxl.c in POTFILES.in
This source has translated text, hence should be included in
files checked for translations.

Resolves: #7298
2021-09-28 22:41:19 +06:00
Jehan 59292c1432 po-*: move the Python goat exercise to the gimp30-std-plug-ins domain.
Since commit ecbc38f9e9, the Python goat exercise was tracked by the
po-python/ Gettext files. This was an error as all its strings are
common to all other goat exercise plug-ins, so it makes no sense to
separate them (it only duplicates the work).

Actually separating the translation domains by plug-in language was a
bad idea from the start. Why do we care that a translatable string is
written in this or that language? All our plug-ins should just share a
common text domain. This way, we avoid useless duplication of common
strings.
2020-10-18 02:22:17 +02:00
Jehan ecbc38f9e9 plug-ins, extension: goat-exercises becomes a GIMP extension.
This is an extension containing a few demo plug-ins. This is good to
demonstrate the extension format. It will also allow to disable these
plug-ins (if at some point, one doesn't want to show these demo
plug-ins anymore).

And finally it deals with the fact that our plug-in code is stupid, as
it just tries to find the first executable with the same name (minus
extension) as the plug-in folder. This doesn't go well on Windows, where
the permission system is non-existent. So our code just ends up trying
to run the first file with a similar name in a plug-in folder. As the C
goat-exercise contains both an exe and the C source (and the system
probably returns files in alphabetic order), GIMP under Windows tries to
run the C source instead of the executable (this obviously doesn't go
well).
We could try to do more complex logics, like not aborting if the first
file run fails and try the next one in the plug-in folder. Or maybe just
rename the C file to another name. But any of these is just in the end
the proof that our plug-in discovery right now is just bogus. The
extension system is explicit, not based on randomly trying out files.
Plug-ins entry points are explicitly listed in the metadata manifest.
2020-10-09 15:30:54 +02:00
Michael Natterer 9054ab5dc5 plug-ins: port file-tiff-save to GimpProcedureConfig
Implement the GUI using prop widgets and remove the glade file.
Change loading to attach the right parasite so the save procedure
finds the fake "last values".
2020-06-08 20:42:36 +02:00
Niels De Graef a276f26b6c po-plug-ins: Add Vala plug-in to POTFILES.in 2020-06-04 16:55:47 +02:00
Alexandre Prokoudine d1bb192d7d Fix make check by replacing metadata-tags.h with metadata.c as spotted by grem 2019-11-12 23:36:20 +03:00
Michael Natterer a5cf3e9506 plug-ins: port file-gif-save to begin_export() and end_export()
and build its GUI using propwidgets. Remove a lot of code that
is now handled by GimpProcedureConfig, and remove the ui file.
2019-10-29 22:10:59 +01:00
Michael Natterer dad65000e1 plug-ins: port file-raw-save to GimpProcedureConfig and propwidgets
and remove its builder file.
2019-10-23 19:08:34 +02:00
Michael Natterer 1793a08548 plug-ins: port file-png to GimpProcedureConfig and use propwidgets
Remove the save dialog's builder file and construct the dialog
manually, which is actually less and more obvious code thanks to
propwidgets, which are not suited for a builder GUI.

I guess file-png-save counts as a real test for the new procedure
config stuff, and it seems to work nicely. The only thing that's a bit
ugly is the GimpMetadata integration which doesn't exist yet.
2019-09-25 01:06:16 +02:00
Piotr Drąg 4a56f1d9cc Update POTFILES.in 2019-08-10 16:42:35 +02:00
Piotr Drąg 3f5b435941 Update POTFILES.in and POTFILES.skip 2019-08-07 18:38:24 +02:00
Michael Natterer 32d789e355 plug-ins: port imagemap to named icons from a resource 2019-07-21 19:47:39 +02:00
Piotr Drąg 60fc4a0aca Update POTFILES.in 2019-07-21 13:19:17 +02:00
Michael Natterer 23f373e916 plug-ins: remove filter-pack without any replacement 2019-07-19 19:01:51 +02:00
Michael Natterer b7cf850671 plug-ins: remove the oilify plug-in and add a PDB compat procedure 2019-07-19 17:35:13 +02:00
Michael Natterer 8a51993e3f pdb, plug-ins: remove the emboss plug-in and add a PDB compat procedure
Not for 2.10 because it looks a bit different.
2019-07-18 15:05:48 +02:00
Michael Natterer 31fc338ab0 pdb, plug-ins: remove the newsprint plug-in and add a PDB compat procedure 2019-07-18 12:52:18 +02:00
Michael Natterer fd9b6ab834 plug-ins: remove the colorify plug-in without any replacement
The colorize tool does something far more reasonable.
2019-07-15 12:33:50 +02:00
Michael Natterer acea533a9a plug-ins: remove the sharpen plug-in without replacement 2019-07-15 00:39:01 +02:00
Michael Natterer 496b5ab9b4 plug-ins: remove color-cube-analyze without replacement
because WTF do we need a histogram plug-in for?
2019-07-14 23:45:57 +02:00
Michael Natterer 4074cec138 plug-ins: remove the blur plug-in without replacement
because.
2019-07-14 23:31:58 +02:00
Michael Natterer dd89f4a3d5 plug-ins: remove the max-rgb plug-in without replacement
To quote the author (from a comment): "After adding preview mode
realised just exactly how useless this plugin is"
2019-07-14 23:08:12 +02:00
Michael Natterer 2ead56096d plug-ins, pdb: remove the softglow plug-in and add a PDB compat procedure
Not for 2.10 because the GEGL op's result looks different. I have no
clue how softglow is supposed to look at all, but the removed plug-in
did things that can't possibly be done with physical light in a
darkroom, so chances are the GEGL op is more correct.
2019-07-14 21:34:27 +02:00
Michael Natterer a0ae31d337 plug-ins, pdb: remove the edge-dog plug-in and add a PDB compat procedure
This is not for 2.10 because the result of the GEGL op looks different,
but without doubt more correct.
2019-07-14 20:09:11 +02:00
Michael Natterer 8fcccf3f88 plug-ins, pdb: remove the contrast-normalize plug-in
and add a PDB compat procedure.
2019-07-14 14:28:40 +02:00
Michael Natterer 8b08f958ba plug-ins, pdb: remove the edge-neon plug-in and add a PDB compat procedure 2019-07-13 23:59:31 +02:00
Michael Natterer ceb327f357 plug-ins, pdb: remove the photocopy plug-in and add a PDB compat procedure
The results are different here too, but tweakable like for cartoon.
2019-07-11 12:33:56 +02:00
Michael Natterer 529ee9efc8 plug-ins, pdb: remove the cartoon plug-in and add a PDB compat procedure
The result of the GEGL op is a bitt different but so what, this is an
artistic effect and the result can be tweaked with parameters.
2019-07-11 11:41:06 +02:00
Michael Natterer 11ed7ee68b po-plug-ins, po-script-fu: update for the DDS plug-in 2019-01-02 20:15:06 +01:00
Alexandre Prokoudine 2f3504e06a file-dds: mark some user-vsible messages for translation, expose them to PO files
Unfortunately, no items of comboboxes are currently translatble
due to the way the code is written.
2019-01-02 18:33:46 +01:00