Commit df7152cb authored by Michael Catanzaro's avatar Michael Catanzaro

Stop using intltool

parent 263de13d
......@@ -32,7 +32,6 @@ if [ "$#" = 0 -a "x$NOCONFIGURE" = "x" ]; then
fi
aclocal --install || exit 1
intltoolize --force --copy --automake || exit 1
autoreconf --verbose --force --install -Wno-portability || exit 1
cd $olddir
......
......@@ -60,8 +60,10 @@ dnl ###########################################################################
dnl Internationalization
dnl ###########################################################################
IT_PROG_INTLTOOL([0.50])
AC_SUBST(GETTEXT_PACKAGE, gnome-chess)
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.19.8])
AC_SUBST([GETTEXT_PACKAGE], [gnome-chess])
dnl ###########################################################################
dnl Documentation
......
......@@ -3,12 +3,16 @@ SUBDIRS = icons pieces
desktopdir = $(datadir)/applications
desktop_in_files = gnome-chess.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@
$(desktop_DATA): $(desktop_in_files)
$(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@
appstream_in_files = gnome-chess.appdata.xml.in
appstream_XML = $(appstream_in_files:.appdata.xml.in=.appdata.xml)
@APPSTREAM_XML_RULES@
@INTLTOOL_XML_RULE@
$(appstream_XML): $(appstream_in_files)
$(AM_V_GEN) $(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@
dist_noinst_DATA = \
gnome-chess.ui \
......
......@@ -4,18 +4,18 @@
<id>gnome-chess.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0+ and (GPL-2.0+ or GFDL-1.1)</project_license>
<_name>GNOME Chess</_name>
<_summary>Play the classic two-player board game of chess</_summary>
<name>GNOME Chess</name>
<summary>Play the classic two-player board game of chess</summary>
<description>
<_p>
<p>
GNOME Chess is a simple chess game. You can play against your computer at
three different difficulty levels, or against a friend at your computer.
</_p>
<_p>
</p>
<p>
Computer chess enthusiasts will appreciate GNOME Chess's compatibility with
nearly all modern computer chess engines, and its ability to detect several
popular engines automatically if installed.
</_p>
</p>
</description>
<screenshots>
<screenshot type="default" width="748" height="484">
......
[Desktop Entry]
_Name=Chess
_GenericName=3D Chess Game
_Comment=Play the classic two-player board game of chess
_Keywords=game;strategy;
Name=Chess
GenericName=3D Chess Game
Comment=Play the classic two-player board game of chess
Keywords=game;strategy;
Version=1.0
Exec=gnome-chess
Terminal=false
......
......@@ -84,6 +84,7 @@ GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL = \
ar-lib \
compile \
config.guess \
config.rpath \
config.sub \
depcomp \
install-sh \
......@@ -216,6 +217,7 @@ $(srcdir)/.gitignore: Makefile.am $(top_srcdir)/git.mk
fi; \
if test -f $(srcdir)/po/Makefile.in.in; then \
for x in \
ABOUT-NLS \
po/Makefile.in.in \
po/Makefile.in.in~ \
po/Makefile.in \
......
# Makefile variables for PO directory in any package using GNU gettext.
# Usually the message domain is the same as the package name.
DOMAIN = $(PACKAGE)
# These two variables depend on the location of this directory.
subdir = po
top_builddir = ..
# These options get passed to xgettext.
XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --from-code=UTF-8
# This is the copyright holder that gets inserted into the header of the
# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding
# package. (Note that the msgstr strings, extracted from the package's
# sources, belong to the copyright holder of the package.) Translators are
# expected to transfer the copyright for their translations to this person
# or entity, or to disclaim their copyright. The empty string stands for
# the public domain; in this case the translators are expected to disclaim
# their copyright.
COPYRIGHT_HOLDER = Free Software Foundation, Inc.
# This tells whether or not to prepend "GNU " prefix to the package
# name that gets inserted into the header of the $(DOMAIN).pot file.
# Possible values are "yes", "no", or empty. If it is empty, try to
# detect it automatically by scanning the files in $(top_srcdir) for
# "GNU packagename" string.
PACKAGE_GNU =
# This is the email address or URL to which the translators shall report
# bugs in the untranslated strings:
# - Strings which are not entire sentences, see the maintainer guidelines
# in the GNU gettext documentation, section 'Preparing Strings'.
# - Strings which use unclear terms or require additional context to be
# understood.
# - Strings which make invalid assumptions about notation of date, time or
# money.
# - Pluralisation problems.
# - Incorrect English spelling.
# - Incorrect formatting.
# It can be your email address, or a mailing list address where translators
# can write to without being subscribed, or the URL of a web page through
# which the translators can contact you.
MSGID_BUGS_ADDRESS =
# This is the list of locale categories, beyond LC_MESSAGES, for which the
# message catalogs shall be used. It is usually empty.
EXTRA_LOCALE_CATEGORIES =
# This tells whether the $(DOMAIN).pot file contains messages with an 'msgctxt'
# context. Possible values are "yes" and "no". Set this to yes if the
# package uses functions taking also a message context, like pgettext(), or
# if in $(XGETTEXT_OPTIONS) you define keywords with a context argument.
USE_MSGCTXT = no
# These options get passed to msgmerge.
# Useful options are in particular:
# --previous to keep previous msgids of translated messages,
# --quiet to reduce the verbosity.
MSGMERGE_OPTIONS =
# These options get passed to msginit.
# If you want to disable line wrapping when writing PO files, add
# --no-wrap to MSGMERGE_OPTIONS, XGETTEXT_OPTIONS, and
# MSGINIT_OPTIONS.
MSGINIT_OPTIONS =
# This tells whether or not to regenerate a PO file when $(DOMAIN).pot
# has changed. Possible values are "yes" and "no". Set this to no if
# the POT file is checked in the repository and the version control
# program ignores timestamps.
PO_DEPENDS_ON_POT = no
# This tells whether or not to forcibly update $(DOMAIN).pot and
# regenerate PO files on "make dist". Possible values are "yes" and
# "no". Set this to no if the POT file and PO files are maintained
# externally.
DIST_DEPENDS_ON_UPDATE_PO = no
# List of source files containing translatable strings.
# Please keep this file in alphabetical order.
[encoding: UTF-8]
data/gnome-chess.appdata.xml.in
data/gnome-chess.desktop.in
[type: gettext/glade]data/gnome-chess.ui
[type: gettext/glade]data/menu.ui
data/gnome-chess.ui
data/menu.ui
data/org.gnome.chess.gschema.xml
[type: gettext/glade]data/preferences.ui
[type: gettext/glade]data/promotion-type-selector.ui
data/preferences.ui
data/promotion-type-selector.ui
lib/chess-game.vala
lib/chess-pgn.vala
src/ai-profile.vala
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment