summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2011-01-20 14:33:13 -0600
committerFederico Mena Quintero <federico@gnome.org>2011-01-20 14:33:13 -0600
commitb2aab679a2f63e348fcb6a58130fd676d4b5f086 (patch)
tree918c3190da5ee582daf7c99e269cb4379e843e69
parent980a03e9b301e93e82a259ccbfe28947c4232d1c (diff)
Add an xdg autostart file for the datahub.
This will make the datahub start from the beginning of the user's session, and so recently-used files will always be up to date in Zeitgeist's log. This commit also adds the necessary intltool/gettext machinery, and a Spanish translation for the .desktop autostart file.
-rw-r--r--Makefile.am1
-rw-r--r--configure.ac10
-rw-r--r--po/LINGUAS1
-rw-r--r--po/POTFILES.in1
-rw-r--r--po/es.po25
-rw-r--r--src/Makefile.am12
-rw-r--r--src/zeitgeist-datahub.desktop.in10
7 files changed, 58 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index d81abee..5e659fa 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4,4 +4,3 @@ SUBDIRS = \
$(NULL)
#ACLOCAL_AMFLAGS = -I m4
-
diff --git a/configure.ac b/configure.ac
index 0050876..ed0114e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6,7 +6,14 @@ AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([1.11])
dnl -- Intl
-dnl IT_PROG_INTLTOOL([0.35.0])
+IT_PROG_INTLTOOL([0.35.0])
+GETTEXT_PACKAGE=zeitgeist-datahub
+AC_SUBST([GETTEXT_PACKAGE])
+AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[Gettext package])
+AM_GLIB_GNU_GETTEXT
+
+zeitgeist_datahublocaledir='${prefix}/${DATADIRNAME}/locale'
+AC_SUBST(zeitgeist_datahublocaledir)
dnl -- Populate top_srcdir variable
top_srcdir=$(readlink -f $0 | sed -e s/configure$//)
@@ -50,6 +57,7 @@ AC_DEFINE_UNQUOTED(PKGDATADIR, "$PKGDATADIR", [Package base directory])
AC_CONFIG_FILES([
Makefile
+po/Makefile.in
src/Makefile
doc/Makefile
])
diff --git a/po/LINGUAS b/po/LINGUAS
new file mode 100644
index 0000000..8357fca
--- /dev/null
+++ b/po/LINGUAS
@@ -0,0 +1 @@
+es
diff --git a/po/POTFILES.in b/po/POTFILES.in
new file mode 100644
index 0000000..44d3202
--- /dev/null
+++ b/po/POTFILES.in
@@ -0,0 +1 @@
+src/zeitgeist-datahub.desktop.in
diff --git a/po/es.po b/po/es.po
new file mode 100644
index 0000000..0eff7d5
--- /dev/null
+++ b/po/es.po
@@ -0,0 +1,25 @@
+# Spanish translation for Zeitgeist-datahub
+#
+# This file is distributed under the same license as the zeitgeist-datahub package.
+# Federico Mena Quintero <federico@gnome.org>, 2011.
+#
+
+msgid ""
+msgstr ""
+"Project-Id-Version: zeitgeist-datahub\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2011-01-19 13:24-0600\n"
+"PO-Revision-Date: 2011-01-19 13:29-0600\n"
+"Last-Translator: Federico Mena Quintero <federico@gnome.org>\n"
+"Language-Team: Spanish <es@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: ../src/zeitgeist-datahub.desktop.in.h:1
+msgid "Start the Zeitgeist Datahub for passive loggers"
+msgstr "Iniciar Zeitgeist Datahub para los monitores pasivos"
+
+#: ../src/zeitgeist-datahub.desktop.in.h:2
+msgid "Zeitgeist Datahub"
+msgstr "Zeitgeist Datahub"
diff --git a/src/Makefile.am b/src/Makefile.am
index 3874aa2..2b87af3 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -16,3 +16,15 @@ zeitgeist_datahub_SOURCES = \
zeitgeist-datahub.vala \
$(NULL)
+xdgautostart_in_files = \
+ zeitgeist-datahub.desktop.in
+
+xdgautostartdir=$(sysconfdir)/xdg/autostart
+
+xdgautostart_DATA = $(xdgautostart_in_files:.desktop.in=.desktop)
+@INTLTOOL_DESKTOP_RULE@
+
+CLEANFILES = zeitgeist-datahub.desktop
+
+EXTRA_DIST = \
+ $(xdgautostart_in_files)
diff --git a/src/zeitgeist-datahub.desktop.in b/src/zeitgeist-datahub.desktop.in
new file mode 100644
index 0000000..30b4aac
--- /dev/null
+++ b/src/zeitgeist-datahub.desktop.in
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+_Name=Zeitgeist Datahub
+_Comment=Start the Zeitgeist Datahub for passive loggers
+Exec=zeitgeist-datahub
+Terminal=false
+Type=Application
+Categories=
+GenericName=