From 528cdd461997c89d52af0eca785c149895a2b2b9 Mon Sep 17 00:00:00 2001 From: John Zaitseff Date: Thu, 7 Jan 2021 18:57:51 +1100 Subject: [PATCH] Newer versions of xgettext(1) do not translate desktop Icon values --- data/trader.desktop.in | 6 +----- lib/obsolete-strings.c | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/data/trader.desktop.in b/data/trader.desktop.in index 79f5dd5..84bd585 100644 --- a/data/trader.desktop.in +++ b/data/trader.desktop.in @@ -9,7 +9,7 @@ # $Id$ # This file provides a translated desktop entry for Star Traders and -# conforms to the Desktop Entry Specification v1.1. +# conforms to the Desktop Entry Specification v1.5. # # This file is distributed under the same licence as Star Traders itself: # the GNU General Public License, version 3 or later. @@ -24,10 +24,6 @@ Comment=Play Star Traders, a simple game of interstellar trading # TRANSLATORS: A list of keywords describing Star Traders. By all means # add your own keywords! Keywords=game;interstellar;trading;strategy; -# TRANSLATORS: This string is the name of the icon to use. The Desktop -# Entry Specification states it is translatable, but unless you provide a -# matching icon, please leave it as "trader": this will use trader.svg -# and the various trader.png files in the data source code directory. Icon=trader Exec=trader TryExec=trader diff --git a/lib/obsolete-strings.c b/lib/obsolete-strings.c index bbe4ebe..e20a910 100644 --- a/lib/obsolete-strings.c +++ b/lib/obsolete-strings.c @@ -33,6 +33,24 @@ */ +/************************************************************************ +* From data/trader.desktop.in * +************************************************************************/ + +const char *trader_desktop_strings[] = { + /* TRANSLATORS: Older versions of the GNU Gettext library utilities + treat the Icon value in data/trader.desktop.in as a translatable + string. That string, the name of the icon to use, is defined here + for those older versions of xgettext(1). Unless you provide a + matching icon, please leave it as "trader": this will use + trader.svg and the various trader.png files in the data source + code directory. */ + N_("trader"), + + "" +}; + + /************************************************************************ * From GNU C Library posix/getopt.c * ************************************************************************/