Commit Graph

296 Commits

Author SHA1 Message Date
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
Michael Natterer 582c692010 plug-ins: make curve-bend build again, and undeprecate it a bit 2018-10-22 15:04:07 +02:00
Michael Natterer 0b99fc8194 plug-ins, pdb: remove the fractal-trace plug-in and add a PDB compat proc 2018-10-20 13:05:17 +02:00
Michael Natterer 680642e37c plug-ins, pdb: remove the unsharp-mask plug-in and add a PDB compat proc 2018-07-14 17:11:25 +02:00
Ell 662b7003e8 po-plug-ins: exclude skipped plug-ins from POTFILES.in
... to fix distcheck.
2018-05-31 00:29:23 -04:00
Ell 032e95fad6 plug-ins: add busy-dialog plug-in
This plug-in is used internally to show an interactive dialog in a
separate process, while the main process is blocking waiting for an
operation to complete.  The dialog shows a custom message in a
GimpBusyBox, and potentially a "cancel" button, allowing the
operation to be canceled.  Communication with the main process is
performed through a pair of file descriptors, passed to the plug-in
as arguments.
2018-05-29 16:04:28 -04:00
Michael Natterer ecceb9967c plug-ins: remove color-enhance, there is a GEGL op doing almost the same 2018-05-20 21:06:29 +02:00
Michael Natterer ba149f1759 plug-ins: add HEIF loading/saving plug-in written by Dirk Farin
Thanks a lot to Dirk for contributing this, added him to AUTHORS.

Import the code from https://github.com/strukturag/heif-gimp-plugin.git
as of today. Merged the files into a single-file plug-in. Changed
the code a lot to match our coding style, but only formatting,
no logic changes.

Still uses deprecated GimpDrawable API and no GIO, but I wanted to do
actual code changes separately from the initial import. Also disabled
metadata support because updating that to GimpMetadata was too much
for the initial import.
2018-05-04 20:49:56 +02:00
Simon Budig 44a931e16c ripple: put the compat code in the proper place, fix up POTFILES.in 2018-04-24 14:26:39 +02:00
Michael Natterer 42f0db190f plug-ins: rename file-raw/file-formats.h to file-raw/file-raw-formats.h 2017-07-30 18:35:20 +02:00
Michael Natterer 713995e27d Bug 784261 - Have some nice error message for formats known to work...
...with known plugins

Add new plug-in file-raw-placeholder.c that registers itself for
loading all RAW formats from file-raw/file-formats.h, but does nothing
except returning an error message pointing to darktable and
RawTherapee.

When no real RAW loader is installed, this plug-in is selected
automatically as RAW loader, otherwise the first installed RAW loader
is used. Selecting another in prefs still works as before.
2017-07-24 22:19:53 +02:00
Michael Natterer 87438c885a plug-ins: merge file-rawtherapee/ into file-raw/
and use the same file-formats.h
2017-07-24 20:58:25 +02:00
Michael Natterer a653a477d1 plug-ins: rename file-darktable/ to file-raw/
It will soon host all raw loader plug-ins.
2017-07-24 20:26:18 +02:00
draekko 619a05a688 Bug 785265 - Patch for localization for combotext in metadata editor
Mark string constants in arrays with N_() and call gettext() on them.
2017-07-24 12:28:02 +02:00
Piotr Drąg 18e2ae4d13 Update POTFILES.in 2017-07-07 18:40:05 +02:00
Ben Touchette dc9856cfe1 Bug 769820 - Cannot enter Iptc information when no metadata is available...
...and fails to write it to file when it is

Completely redo metadata editor and viewer code, adds support for
Xmp.xmpMM.History and more.
2017-07-07 18:11:39 +02:00
Piotr Drąg e34c5c652d Update POTFILES.in and POTFILES.skip 2017-06-27 21:44:56 +02:00