Commit Graph

29 Commits

Author SHA1 Message Date
Michael Natterer 26dce72d2c Remove autotools 2023-05-27 00:03:52 +02:00
Niels De Graef 3473883edb po-tips: Fix gettext translation 2022-06-27 15:48:26 +00:00
Niels De Graef a3c5072a1c data: Adapt tips.dtd for gettext changes 2022-06-26 10:54:41 +02:00
Jehan 8122e8cf36 extensions: fix builds after MR !653 (migrating to gettext).
(1) On recent meson versions, it fixes this error:

> extensions/goat-exercises/meson.build:108:0: ERROR: i18n.merge_file keyword argument 'output' was of type array[str] but should have been str

As docs explains, 'output' only accepts one item in i18n.merge_file().

This bug also happens on older meson (but there the reported error is a
lot less useful as it doesn't mention local meson build code).

(2) `setup.isl.xml` is a temporary intermediary file used to create the
    Windows installer. It must not be installed.

(3) `gimp30-windows-installer.mo` itself is only used to create
    `setup.isl.xml`. It must not be installed as well.

(4) gimp-tips.(its|loc) files (same for gimp-tags ones) should not be
    installed. They are only temporary data.

(5) Fix environment variable: s/GETTEXT_DATA_DIRS/GETTEXTDATADIRS/

Fixes:

> /usr/bin/msgfmt: cannot locate ITS rules for ../../../data/tips/gimp-tips.xml.in

(6) Fix various bugs in the *.setup.isl files creation in autotools
    build (typo, wrong files used, order of options in `xsltproc`
    apparently meaningful, and so on. I guess the autotools build was
    not as well tested as the meson one :P).

(7) Fixing the unit test verifying language lists consistency.

(8) `setup.isl.xml.in` must be added to the distribution.
2022-06-25 12:41:21 +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 2730361928 data: fix more xmllint validation.
Similarly to the previous commit, the tips and tags validation was never
happening as it was implemented as a custom top-level meson target. It
was not run during a normal build. Now it is.
2021-06-18 15:46:41 +02:00
Félix Piédallu 65eff6f150 Meson port. 2019-09-11 16:42:04 +02:00
Michael Natterer bab75b7365 Change a bazillion URLs to https://
Including all user-visible link and links called from code, like
the help pages.
2018-07-14 14:19:27 +02:00
Jehan 127b8470f9 data: improve the tip about the save and export format.
Current phrasing seemed to imply that you could chose another format
than XCF to *save* your work-in-progress image. Reword a bit to make
obvious that "saving" is always done with XCF. Other formats are for
exporting.
2018-02-13 00:54:53 +01:00
Mukund Sivaraman 2d4eda444d gimp-tips: Update tip about save vs. export 2011-12-07 00:47:25 +05:30
Martin Nordholts 4d7a6b10d1 Added .gitignore files generated with git svn create-ignore.
svn path=/trunk/; revision=27972
2009-01-31 11:37:44 +00:00
Sven Neumann 083c48d2d2 Applied a slightly modified patch from Róman Joost as attached to bug
2008-08-04  Sven Neumann  <sven@gimp.org>

	Applied a slightly modified patch from Róman Joost as attached 
to
	bug #545963. This add links to the user manual to the tips 
dialog:

	* data/tips/gimp-tips.dtd
	* data/tips/gimp-tips.xml.in: add optional help IDs to the tips.

	* app/dialogs/tips-dialog.c

	* app/dialogs/tips-parser.[ch]: parse the help IDs from the tips
	file and show a "Learn more" link in the tips dialog.


svn path=/trunk/; revision=26361
2008-08-04 13:56:07 +00:00
Martin Nordholts 91da1d707c Removed tip about how to make a circular selection. It's much more
2008-07-05  Martin Nordholts  <martinn@svn.gnome.org>

	* data/tips/gimp-tips.xml.in: Removed tip about how to make a
	circular selection. It's much more discoverable now than it was in
	GIMP 2.2, and the current description is faulty.

svn path=/trunk/; revision=26062
2008-07-05 07:06:05 +00:00
Sven Neumann 848a3e197f data/tips/gimp-tips.dtd data/tips/gimp-tips.xml.in reverted some of the
2008-03-28  Sven Neumann  <sven@gimp.org>

	* data/tips/gimp-tips.dtd
	* data/tips/gimp-tips.xml.in
	* app/dialogs/tips-parser.[ch]: reverted some of the changes 
from
	yesterday. The simplification went too far and we inadvertently
	lost an important feature.


svn path=/trunk/; revision=25269
2008-03-28 07:34:38 +00:00
Sven Neumann c64ae51012 data/tips/gimp-tips.dtd simplified the gimp-tips XML format as we do not
2008-03-27  Sven Neumann  <sven@gimp.org>

	* data/tips/gimp-tips.dtd
	* data/tips/gimp-tips.xml.in: simplified the gimp-tips XML 
format
	as we do not any longer need a special welcome tip.

	* app/dialogs/tips-dialog.c
	* app/dialogs/tips-parser.[ch]: changed accordingly.


svn path=/trunk/; revision=25267
2008-03-27 21:02:15 +00:00
Michael Natterer 5622fa28ff data/tips/Makefile.am s/.intltool-merge-cachemake/.intltool-merge-cache/
2007-09-03  Michael Natterer  <mitch@gimp.org>

	* data/tips/Makefile.am
	* desktop/Makefile.am:
	s/.intltool-merge-cachemake/.intltool-merge-cache/ to fix
	distcheck, probably a "make" was entered in the wrong window.


svn path=/trunk/; revision=23450
2007-09-03 13:20:42 +00:00
Raphael Quinet bc2e48c978 expanded old tip and mentioned that it is possible to configure most
2007-08-30  Raphael Quinet  <raphael@gimp.org>

	* data/tips/gimp-tips.xml.in: expanded old tip and mentioned that
	it is possible to configure most window managers so that they do
	not steal the Alt key from the applications.  Fixes bug #471565.

svn path=/trunk/; revision=23410
2007-08-30 12:08:34 +00:00
Sven Neumann 3ae875bbf5 Applied parts of a patch from Daniel Richard G. (bug #445374):
2007-06-08  Sven Neumann  <sven@gimp.org>

	Applied parts of a patch from Daniel Richard G. (bug #445374):

	* themes/Default/images/Makefile.am
	* data/tips/Makefile.am
	* menus/Makefile.am: more srcdir/builddir tweaks.

svn path=/trunk/; revision=22744
2007-06-08 11:11:57 +00:00
Mukund Sivaraman c2d1214551 Changed "The GIMP" to "GIMP" everywhere, where it's used as a name.
2007-06-06  Mukund Sivaraman  <muks@mukund.org>

        Changed "The GIMP" to "GIMP" everywhere, where it's used as a name.


svn path=/trunk/; revision=22715
2007-06-06 08:44:52 +00:00
Sven Neumann 960ecc3d81 fixed a typo.
2007-04-18  Sven Neumann  <sven@gimp.org>

	* data/tips/gimp-tips.xml.in: fixed a typo.

	* de.po: updated German translation.


svn path=/trunk/; revision=22278
2007-04-18 09:41:27 +00:00
Sven Neumann 930d6149da removed all .cvsignore files from SVN
svn path=/trunk/; revision=21612
2006-12-30 14:31:03 +00:00
Sven Neumann ee9e748e4d another tips change (bug #141443).
2006-12-22  Sven Neumann  <sven@gimp.org>

	* data/tips/gimp-tips.xml.in: another tips change (bug #141443).
2006-12-22 16:44:22 +00:00
Sven Neumann 38c7e41d17 use U+2192 RIGHTWARDS ARROW for menu paths.
2006-12-22  Sven Neumann  <sven@gimp.org>

	* data/tips/gimp-tips.xml.in: use U+2192 RIGHTWARDS ARROW for menu
	paths.
2006-12-22 10:44:05 +00:00
Sven Neumann d1fe72852f applied patch from David Gowers (bug #141443).
2006-12-22  Sven Neumann  <sven@gimp.org>

	* data/tips/gimp-tips.xml.in: applied patch from David Gowers (bug
	#141443).
2006-12-22 10:38:13 +00:00
Sven Neumann ab6d26e245 changed tip based on a suggestion from David Gowers. Corrected menu
2006-12-20  Sven Neumann  <sven@gimp.org>

	* data/tips/gimp-tips.xml.in: changed tip based on a suggestion
	from David Gowers. Corrected menu location of Curves and Levels
	tools.
2006-12-20 08:56:21 +00:00
Sven Neumann e30042a5f2 changed tip based on a suggestion from David Gowers.
2006-12-20  Sven Neumann  <sven@gimp.org>

	* data/tips/gimp-tips.xml.in: changed tip based on a suggestion
	from David Gowers.
2006-12-20 08:44:00 +00:00
Sven Neumann 8fbe43275d Made 2.3.2 development release.
2005-07-01  Sven Neumann  <sven@gimp.org>

        * Made 2.3.2 development release.
2005-07-01 17:22:14 +00:00
Sven Neumann 87b8e092b5 data/tips/Makefile.am let the transformation work on the multi-language
2005-06-26  Sven Neumann  <sven@gimp.org>

	* data/tips/Makefile.am
	* data/tips/fortunes.xsl: let the transformation work on the
	multi-language XML file and pass a language parameter to it.
2005-06-26 20:34:29 +00:00
Sven Neumann 1c4122c5d0 Switch to a more standard way of treating the translations for the startup
2005-06-10  Sven Neumann  <sven@gimp.org>

	Switch to a more standard way of treating the translations for the
	startup tips (bug #171846):

	* Makefile.am
	* configure.in: removed tips directory; added data/tips and po-tips
	directories instead.

	* data/Makefile.am
	* data/AUTHORS
	* data/ChangeLog
	* data/README: removed these three outdated files.

	* data/tips: gimp.tips.xml and related files live here now.

	* po-tips: translations of the tips are found here now.

	* README.i18n: changed accordingly.
2005-06-10 16:38:36 +00:00