Commit graph

7 commits

Author SHA1 Message Date
Karl Ove Hufthammer
d8d67440da Remove trailing period in application summary
For the AppStream metadata (appdata.xml), there is a
rule saying that the summary shouldn’t end with a period
(as confirmed by ‘appstream-util validate-strict’).
For the .desktop file, *most* applications omit the period.

The rule is not language-dependent, so I have also
removed the period from all translations (.po files).
2022-07-03 14:49:12 +02:00
Will Thompson
21bdf7de11 Add additional .desktop file categories
These are taken from Fedora, which replaces Art with Graphics and adds
KidsGame.

In my opinion, Art is appropriate, but so are 2DGraphics (hence
Graphics) and KidsGame (hence Game).
2022-06-10 21:46:03 +01:00
Will Thompson
3141249969 Remove intltool dependency
Since gettext 0.19, gettext itself has been able to extract strings from
and merge translations to .desktop files. As a result, there is no need
to use intltool.  More details are available on
https://wiki.gnome.org/MigratingFromIntltoolToGettext, though that page
assumes a project using Autotools, which this project does not.

One advantage of using xgettext rather than intltool is that there is no
need to prefix translatable keys in the .desktop.in file with _. This
patch adjusts tuxpaint.desktop.in accordingly, which makes the input
file itself a valid desktop file.

The LINGUAS file contains the list of supported languages. This could
in principle be generated automatically from one of the other places in
the source tree that has a manually-maintained list of languages; but in
my experience it is generally maintained by hand and checked into the
source tree.

POTFILES.in.in must be updated to remove the intltool-specific file
encoding annotation; instead this is passed to xgettext.

Finally, update-po.sh is rewritten to invoke xgettext and msgfmt rather
than intltool commands.

The mangling of POTFILES.in.in to prefix all filenames with '../' is
only necessary to minimize the churn when updating the .pot and .po
files, to simplify review of this change. The alternative is to pass
--directory=.. to xgettext. This would cause all .po files to be updated
as follows when regenerated:

     #. Response to Black (0, 0, 0) color selected
    -#: ../colors.h:86
    +#: colors.h:86
     msgid "Black!"
     msgstr "Noir !"
2022-06-10 10:36:56 +01:00
William Kendrick
032f0cd30f Adhering to Debian & FreeDesktop.org standards regarding .desktop file. 2008-07-07 23:18:57 +00:00
William Kendrick
54d7ce2f38 tuxpaint.desktop installation updates for Freedesktop.org adherence. 2008-04-03 16:48:50 +00:00
Pablo Saratxaga
69a7052871 oops, I had forgotten the "Comment" line in *.desktop.ini file... 2004-06-14 20:44:09 +00:00
Pablo Saratxaga
295041ba59 changes needed to use intltools to generate *.desktop file:
- changed src/messages/ to src/po/
- added POTFILES.in and configure.in files
2004-06-14 15:12:02 +00:00