project: drop intltool usage

This commit is contained in:
Georges Basile Stavracas Neto
2017-04-29 10:47:25 -03:00
parent fa526f0a7c
commit 45f11ed5c0
12 changed files with 156 additions and 90 deletions
+2 -13
View File
@@ -16,15 +16,8 @@ config.log
config.status config.status
config config
configure configure
data/gnome-documents-search-provider.ini data/org.gnome.Calendar.desktop
data/gnome-documents.desktop data/org.gnome.Calendar.gschema.valid
data/gnome-documents.desktop.in
data/org.gnome.Documents.GDataMiner.service
data/org.gnome.documents.gschema.valid
data/org.gnome.documents.gschema.xml
intltool-extract.in
intltool-merge.in
intltool-update.in
libtool libtool
m4/ m4/
omf.make omf.make
@@ -32,7 +25,6 @@ po/*.gmo
po/*.header po/*.header
po/*.sed po/*.sed
po/*.sin po/*.sin
po/.intltool-merge-cache
po/Makefile.in.in po/Makefile.in.in
po/Makevars.template po/Makevars.template
po/POTFILES po/POTFILES
@@ -81,9 +73,6 @@ src/gcal-shell-search-provider-generated.h
AUTHORS AUTHORS
build-aux build-aux
data/org.gnome.Calendar.desktop data/org.gnome.Calendar.desktop
data/org.gnome.Calendar.desktop.in
data/org.gnome.Calendar.search-provider.ini
data/org.gnome.Calendar.search-provider.ini.in
data/org.gnome.Calendar.service data/org.gnome.Calendar.service
data/appdata/org.gnome.Calendar.appdata.xml data/appdata/org.gnome.Calendar.appdata.xml
src/gcal-debug.h src/gcal-debug.h
-12
View File
@@ -1,26 +1,14 @@
SUBDIRS = src data po doc SUBDIRS = src data po doc
DIST_SUBDIRS = src data po doc DIST_SUBDIRS = src data po doc
INTLTOOL_FILES = \
intltool-extract.in \
intltool-merge.in \
intltool-update.in
EXTRA_DIST = \ EXTRA_DIST = \
$(gnome_calendardoc_DATA) \ $(gnome_calendardoc_DATA) \
$(INTLTOOL_FILES) \
INSTALL \ INSTALL \
THANKS \ THANKS \
HACKING \ HACKING \
TODO \ TODO \
autogen.sh autogen.sh
DISTCLEANFILES = \
intltool-extract \
intltool-merge \
intltool-update \
po/.intltool-merge-cache
DISTCHECK_CONFIGURE_FLAGS = \ DISTCHECK_CONFIGURE_FLAGS = \
--enable-appstream-util \ --enable-appstream-util \
--disable-gtk-doc --disable-gtk-doc
-1
View File
@@ -11,7 +11,6 @@ cd $srcdir
mkdir -p m4 mkdir -p m4
gtkdocize || exit 1 gtkdocize || exit 1
autoreconf --verbose --force --install || exit $? autoreconf --verbose --force --install || exit $?
intltoolize --force --copy --automake || exit $?
if test -z "$NOCONFIGURE"; then if test -z "$NOCONFIGURE"; then
run_configure=true run_configure=true
+4 -3
View File
@@ -38,13 +38,16 @@ AM_MAINTAINER_MODE([enable])
dnl *************************************************************************** dnl ***************************************************************************
dnl Internationalization dnl Internationalization
dnl *************************************************************************** dnl ***************************************************************************
IT_PROG_INTLTOOL([0.40.6])
PKG_PROG_PKG_CONFIG([0.22]) PKG_PROG_PKG_CONFIG([0.22])
GETTEXT_PACKAGE=AC_PACKAGE_TARNAME GETTEXT_PACKAGE=AC_PACKAGE_TARNAME
AC_SUBST([GETTEXT_PACKAGE]) AC_SUBST([GETTEXT_PACKAGE])
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [GETTEXT package name]) AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [GETTEXT package name])
AM_GNU_GETTEXT_VERSION([0.19.8])
AM_GNU_GETTEXT([external])
AS_IF([test "x$USE_NLS" != "xno"], AS_IF([test "x$USE_NLS" != "xno"],
[AC_DEFINE([ENABLE_NLS], [1], [Native language support is enabled])]) [AC_DEFINE([ENABLE_NLS], [1], [Native language support is enabled])])
@@ -173,8 +176,6 @@ AC_CONFIG_FILES([
src/Makefile src/Makefile
src/gcal-debug.h src/gcal-debug.h
data/Makefile data/Makefile
data/org.gnome.Calendar.desktop.in
data/org.gnome.Calendar.search-provider.ini.in
data/icons/Makefile data/icons/Makefile
doc/Makefile doc/Makefile
doc/reference/Makefile doc/reference/Makefile
+42 -24
View File
@@ -1,21 +1,55 @@
SUBDIRS = icons SUBDIRS = icons
################
# Desktop files
################
desktopdir = $(datadir)/applications desktopdir = $(datadir)/applications
desktop_in_files = org.gnome.Calendar.desktop.in desktop_in_files = org.gnome.Calendar.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
%.desktop: %.desktop.in
$(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@
##############################
# GNOME Shell search provider
##############################
searchproviderdir = $(datadir)/gnome-shell/search-providers searchproviderdir = $(datadir)/gnome-shell/search-providers
searchprovider_DATA = org.gnome.Calendar.search-provider.ini searchprovider_DATA = org.gnome.Calendar.search-provider.ini
%.ini: %.ini.in
LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@
@INTLTOOL_XML_RULE@ ################
# Appdata files
################
appdatadir = $(datadir)/appdata appdatadir = $(datadir)/appdata
appdata_DATA = $(appdata_in_files:.xml.in=.xml) appdata_DATA = $(appdata_in_files:.xml.in=.xml)
appdata_in_files = $(srcdir)/appdata/org.gnome.Calendar.appdata.xml.in appdata_in_files = $(srcdir)/appdata/org.gnome.Calendar.appdata.xml.in
@INTLTOOL_DESKTOP_RULE@ %.xml: %.xml.in
$(AM_V_GEN)$(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@
###################
# GSettings schema
###################
gsettings_ENUM_NAMESPACE = org.gnome.calendar
gsettings_ENUM_FILES = \
$(top_srcdir)/src/gcal-utils.h
gsettings_SCHEMAS = org.gnome.calendar.gschema.xml
.PRECIOUS: $(gsettings_SCHEMAS)
@GSETTINGS_RULES@
#####################
# DBus service files
#####################
servicedir = $(datadir)/dbus-1/services servicedir = $(datadir)/dbus-1/services
service_DATA = org.gnome.Calendar.service service_DATA = org.gnome.Calendar.service
@@ -30,23 +64,8 @@ org.gnome.Calendar.service:
echo 'Exec=${bindir}/gnome-calendar --gapplication-service') > $@.tmp && \ echo 'Exec=${bindir}/gnome-calendar --gapplication-service') > $@.tmp && \
mv $@.tmp $@ mv $@.tmp $@
@GSETTINGS_RULES@
%.gschema.xml: %.gschema.xml.in
$(AM_V_GEN) $(INTLTOOL_MERGE) -x -u --no-translations $< $@
gsettings_ENUM_NAMESPACE = org.gnome.calendar
gsettings_ENUM_FILES = \
$(top_srcdir)/src/gcal-utils.h
gsettingsschema_in_files = org.gnome.calendar.gschema.xml.in
gsettings_SCHEMAS = $(gsettingsschema_in_files:.xml.in=.xml)
.PRECIOUS: $(gsettings_SCHEMAS)
EXTRA_DIST= \ EXTRA_DIST= \
appdata/org.gnome.Calendar.appdata.xml \ appdata/org.gnome.Calendar.appdata.xml \
org.gnome.Calendar.search-provider.ini.in.in \
org.gnome.Calendar.desktop \
calendar.gresource.xml \ calendar.gresource.xml \
shell-search-provider-dbus-interfaces.xml \ shell-search-provider-dbus-interfaces.xml \
ui/alarm-row.ui \ ui/alarm-row.ui \
@@ -68,11 +87,10 @@ EXTRA_DIST= \
theme/gtk-styles.css \ theme/gtk-styles.css \
$(appdata_in_files) \ $(appdata_in_files) \
$(desktop_in_files) \ $(desktop_in_files) \
$(gsettingsschema_in_files) $(gsettings_SCHEMAS) \
$(searchprovider_DATA)
CLEANFILES = \ CLEANFILES = \
$(appdata_DATA) \
$(service_DATA) \ $(service_DATA) \
$(desktop_DATA) \ $(desktop_DATA)
$(searchprovider_DATA) \
$(gsettings_SCHEMAS) \
$(appdata_DATA)
@@ -4,16 +4,16 @@
<id>org.gnome.Calendar.desktop</id> <id>org.gnome.Calendar.desktop</id>
<metadata_license>CC0</metadata_license> <metadata_license>CC0</metadata_license>
<project_license>GPL-3.0+</project_license> <project_license>GPL-3.0+</project_license>
<_name>Calendar</_name> <name>Calendar</name>
<_summary>Calendar for GNOME</_summary> <summary>Calendar for GNOME</summary>
<description> <description>
<_p> <p>
GNOME Calendar is a simple and beautiful calendar application designed to perfectly fit the GNOME desktop. By reusing the components which the GNOME desktop is build on, Calendar nicely integrates with the GNOME ecosystem. GNOME Calendar is a simple and beautiful calendar application designed to perfectly fit the GNOME desktop. By reusing the components which the GNOME desktop is build on, Calendar nicely integrates with the GNOME ecosystem.
</_p> </p>
<_p> <p>
We aim to find the perfect balance between nicely crafted features and user-centred usability. No excess, no lacks. You’ll feel comfortable using Calendar, like you’ve been using it for ages! We aim to find the perfect balance between nicely crafted features and user-centred usability. No excess, no lacks. You’ll feel comfortable using Calendar, like you’ve been using it for ages!
</_p> </p>
</description> </description>
<screenshots> <screenshots>
@@ -21,11 +21,11 @@
<image width="1200" height="675">https://git.gnome.org/browse/gnome-calendar/plain/data/appdata/default.png</image> <image width="1200" height="675">https://git.gnome.org/browse/gnome-calendar/plain/data/appdata/default.png</image>
</screenshot> </screenshot>
<screenshot> <screenshot>
<_caption>Search for events</_caption> <caption>Search for events</caption>
<image width="1200" height="675">https://git.gnome.org/browse/gnome-calendar/plain/data/appdata/search.png</image> <image width="1200" height="675">https://git.gnome.org/browse/gnome-calendar/plain/data/appdata/search.png</image>
</screenshot> </screenshot>
<screenshot> <screenshot>
<_caption>Calendar management</_caption> <caption>Calendar management</caption>
<image width="1200" height="675">https://git.gnome.org/browse/gnome-calendar/plain/data/appdata/calendar-management.png</image> <image width="1200" height="675">https://git.gnome.org/browse/gnome-calendar/plain/data/appdata/calendar-management.png</image>
</screenshot> </screenshot>
</screenshots> </screenshots>
@@ -1,12 +1,12 @@
[Desktop Entry] [Desktop Entry]
_Name=Calendar Name=Calendar
_Comment=Access, and manage calendar Comment=Access and manage your calendars
Exec=gnome-calendar Exec=gnome-calendar
Icon=org.gnome.Calendar Icon=org.gnome.Calendar
Terminal=false Terminal=false
Type=Application Type=Application
StartupNotify=true StartupNotify=true
Categories=GNOME;GTK;Office;Calendar;Core; Categories=GNOME;GTK;Office;Calendar;Core;
_Keywords=Calendar;Event;Reminder; Keywords=Calendar;Event;Reminder;
MimeType=text/calendar; MimeType=text/calendar;
DBusActivatable=true DBusActivatable=true
@@ -1,5 +1,4 @@
[Shell Search Provider] [Shell Search Provider]
_Title=Calendar
Icon=gnome-calendar Icon=gnome-calendar
DesktopId=org.gnome.Calendar.desktop DesktopId=org.gnome.Calendar.desktop
BusName=org.gnome.Calendar BusName=org.gnome.Calendar
@@ -3,23 +3,23 @@
<schema id="org.gnome.calendar" path="/org/gnome/calendar/"> <schema id="org.gnome.calendar" path="/org/gnome/calendar/">
<key name="window-maximized" type="b"> <key name="window-maximized" type="b">
<default>true</default> <default>true</default>
<_summary>Window maximized</_summary> <summary>Window maximized</summary>
<_description>Window maximized state</_description> <description>Window maximized state</description>
</key> </key>
<key name="window-size" type="ai"> <key name="window-size" type="ai">
<default>[768, 600]</default> <default>[768, 600]</default>
<_summary>Window size</_summary> <summary>Window size</summary>
<_description>Window size (width and height).</_description> <description>Window size (width and height).</description>
</key> </key>
<key name="window-position" type="ai"> <key name="window-position" type="ai">
<default>[]</default> <default>[]</default>
<_summary>Window position</_summary> <summary>Window position</summary>
<_description>Window position (x and y).</_description> <description>Window position (x and y).</description>
</key> </key>
<key name="active-view" enum="org.gnome.calendar.GcalWindowViewType"> <key name="active-view" enum="org.gnome.calendar.GcalWindowViewType">
<default>'month'</default> <default>'month'</default>
<_summary>Type of the active view</_summary> <summary>Type of the active view</summary>
<_description>Type of the active window view, default value is: monthly view</_description> <description>Type of the active window view, default value is: monthly view</description>
</key> </key>
</schema> </schema>
</schemalist> </schemalist>
+78
View File
@@ -0,0 +1,78 @@
# 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 = --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 = GNOME Calendar contributors
# 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 = no
# 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 = https://bugzilla.gnome.org/enter_bug.cgi?product=gnome-calendar&keywords=I18N+L10N&component=General
# 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 = yes
# 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
+11 -13
View File
@@ -1,19 +1,17 @@
# List of source files containing translatable strings. # List of source files containing translatable strings.
# Please keep this file sorted alphabetically. # Please keep this file sorted alphabetically.
data/appdata/org.gnome.Calendar.appdata.xml.in data/appdata/org.gnome.Calendar.appdata.xml.in
data/org.gnome.Calendar.desktop.in.in data/org.gnome.Calendar.desktop.in
data/org.gnome.calendar.gschema.xml.in data/ui/alarm-row.ui
[type: gettext/ini]data/org.gnome.Calendar.search-provider.ini.in.in data/ui/edit-dialog.ui
[type: gettext/glade]data/ui/alarm-row.ui data/ui/help-overlay.ui
[type: gettext/glade]data/ui/edit-dialog.ui data/ui/menus.ui
[type: gettext/glade]data/ui/help-overlay.ui data/ui/quick-add-popover.ui
[type: gettext/glade]data/ui/menus.ui data/ui/search-view.ui
[type: gettext/glade]data/ui/quick-add-popover.ui data/ui/source-dialog.ui
[type: gettext/glade]data/ui/search-view.ui data/ui/time-selector.ui
[type: gettext/glade]data/ui/source-dialog.ui data/ui/window.ui
[type: gettext/glade]data/ui/time-selector.ui data/ui/year-view.ui
[type: gettext/glade]data/ui/window.ui
[type: gettext/glade]data/ui/year-view.ui
src/views/gcal-month-view.c src/views/gcal-month-view.c
src/views/gcal-week-grid.c src/views/gcal-week-grid.c
src/views/gcal-week-header.c src/views/gcal-week-header.c
-4
View File
@@ -1,4 +0,0 @@
# List of source files that should *not* be translated.
# Please keep this file sorted alphabetically.
data/org.gnome.Calendar.desktop.in
sub/data/org.gnome.Calendar.desktop.in