Commit bb457766 authored by Krzesimir Nowak's avatar Krzesimir Nowak Committed by David King

Move from intltool to gettext

This is to make a migration from autotools to meson easier. Also,
intltool got obsoleted by gettext.

There are minor differences in some of the translated files, but
functionally it should not make any difference. But why gettext insist
on reversing the alphabetic order in the appdata file (so zh_TW comes
first and cs comes last) is beyond me.

parent e34c7022
......@@ -16,6 +16,7 @@ Makefile
......@@ -35,9 +36,6 @@ yelp
......@@ -51,6 +49,7 @@ yelp
......@@ -69,6 +68,7 @@ yelp
......@@ -84,11 +84,20 @@ yelp
......@@ -278,20 +278,17 @@ install-exec-hook:
rm -f $(DESTDIR)$(bindir)/gnome-help && \
$(LN_S) yelp $(DESTDIR)$(bindir)/gnome-help
desktopdir = $(datadir)/applications
desktop_DATA = $(
desktop_DATA = yelp.desktop
yelp.desktop: ${srcdir}/
$(AM_V_GEN)$(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@
data/yelp.appdata.xml: ${srcdir}/data/
$(AM_V_GEN)$(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@
appstream_in_files = data/
appstream_XML = $(
appstream_XML = data/yelp.appdata.xml
gsettings_SCHEMAS = data/org.gnome.yelp.gschema.xml
......@@ -697,12 +694,12 @@ xsl_DATA = \
dist_noinst_DATA = \
$(appstream_in_files) \
$(desktop_in_files) \
$(gsettings_SCHEMAS) \
$(libyelp_libyelp_la_headers) \
$(noinst_libyelp_libyelp_la_headers) \
$(yelp_headers) \ \
data/ \
data/domains/yelp.pot \
data/domains/ \
data/domains/yelp.xml \
......@@ -33,7 +33,6 @@ fi
set -x
gtkdocize --copy || exit 1
intltoolize --force --copy --automake || exit 1
autoreconf --verbose --force --install -Wno-portability || exit 1
cd "$olddir"
......@@ -50,8 +50,8 @@ AC_SUBST(YELP_EXTENSION_CFLAGS)
# i18n stuff
ALL_LINGUAS="`grep -v '^#' "$srcdir/po/LINGUAS" | tr '\n' ' '`"
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2012-11-21 23:10-0500\n"
"POT-Creation-Date: 2019-01-24 21:22+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <>\n"
......@@ -19,7 +19,7 @@ msgstr ""
#. <string/> - The package to install
#: data/domains/
msgid "Install <string/>"
msgstr ""
<?xml version="1.0" encoding="UTF-8"?>
<id type="desktop">yelp.desktop</id>
<component type="desktop">
<_name>GNOME Help</_name>
<_summary>Help viewer for GNOME</_summary>
<name>GNOME Help</name>
<summary>Help viewer for GNOME</summary>
Yelp is the GNOME help viewer. It is the default Mallard viewer, but it
can also display DocBook, info, man, and HTML documentation.
It makes it easy to find the documentation you need, with interactive
search and bookmarks.
It also has an editor mode, which shows editorial comments and revision
statuses when editing Mallard documents.
<screenshot type="default">;do=get&amp;target=yelp_screenshot.png</screenshot>
......@@ -27,5 +27,5 @@
<translation type="gettext">yelp</translation>
<_developer_name>The GNOME Project</_developer_name>
<developer_name>The GNOME Project</developer_name>
# Makefile variables for PO directory in any package using GNU gettext.
# Usually the message domain is the same as the package name.
DOMAIN = yelp
# These two variables depend on the location of this directory.
subdir = po
top_builddir = ..
# These options get passed to xgettext.
XGETTEXT_OPTIONS = --from-code=UTF-8 --keyword=_ --keyword=N_ --keyword=C_:1c,2 --keyword=NC_:1c,2 --keyword=g_dngettext:2,3 --add-comments
# 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 = Yelp Team and others. See AUTHORS
# 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.
# 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.
# This is the list of locale categories, beyond LC_MESSAGES, for which the
# message catalogs shall be used. It is usually empty.
# 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.
# These options get passed to msgmerge.
# Useful options are in particular:
# --previous to keep previous msgids of translated messages,
# --quiet to reduce the verbosity.
# These options get passed to msginit.
# If you want to disable line wrapping when writing PO files, add
# 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.
# 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.
# Add files with translateable strings here.
# Please keep this file sorted alphabetically.
[encoding: UTF-8]
[Desktop Entry]
_Comment=Get help with GNOME
Comment=Get help with GNOME
Exec=yelp %u
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