Permalink
Browse files

Add .desktop file, i18n

  • Loading branch information...
1 parent 345433d commit 9c3472ce06c91f8491d33a57ffed9fa6ed0da72c @markoa committed Jul 24, 2009
Showing with 54 additions and 2 deletions.
  1. +11 −0 .gitignore
  2. +1 −1 Makefile.am
  3. +18 −0 configure.ac
  4. +9 −0 data/Makefile.am
  5. +9 −0 data/tumblefile.desktop.in.in
  6. +2 −0 po/LINGUAS
  7. +1 −0 po/POTFILES.in
  8. +1 −0 po/POTFILES.skip
  9. +2 −1 src/Makefile.am
View
@@ -13,8 +13,19 @@ config.sub
configure
depcomp
install-sh
+intltool-extract.in
+intltool-merge.in
+intltool-update.in
missing
+mkinstalldirs
stamp-h1
+data/tumblefile.desktop
+data/tumblefile.desktop.in
+po/.intltool-merge-cache
+po/Makefile.in.in
+po/POTFILES
+po/*.gmo
+po/stamp-it
src/.deps/
src/*.o
View
@@ -1,5 +1,5 @@
-SUBDIRS = src
+SUBDIRS = data src
dist_noinst_SCRIPTS = autogen.sh
View
@@ -45,6 +45,21 @@ AC_CANONICAL_HOST
AC_LANG_CPLUSPLUS
# *************************************
+# Internationalization support
+# *************************************
+# To add a new language, add language code xx to po/LINGUAS
+IT_PROG_INTLTOOL([0.35.0])
+
+GETTEXT_PACKAGE=tumblefile
+AC_SUBST(GETTEXT_PACKAGE)
+AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"],
+ [The domain to use with gettext])
+AM_GLIB_GNU_GETTEXT
+
+TUMBLEFILE_LOCALEDIR=[${datadir}/locale]
+AC_SUBST(TUMBLEFILE_LOCALEDIR)
+
+# *************************************
# Library checks
# *************************************
PKG_CHECK_MODULES([GTKMM], [gtkmm-2.4 >= 2.16.0])
@@ -76,6 +91,9 @@ AC_PROG_INSTALL
# Generate the files:
AC_CONFIG_FILES([
Makefile
+ data/Makefile
+ data/tumblefile.desktop.in
+ po/Makefile.in
src/Makefile
])
View
@@ -0,0 +1,9 @@
+
+desktopdir = $(datadir)/applications
+desktop_in_files = tumblefile.desktop.in
+desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
+@INTLTOOL_DESKTOP_RULE@
+
+EXTRA_DIST = ${desktop_in_files}
+
+CLEANFILES = ${desktop_DATA}
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=@PACKAGE_VERSION@
+Encoding=UTF-8
+Type=Application
+_Name=Tumblefile
+_Comment=Reclaim your Desktop
+Icon=@PACKAGE@
+Exec=@PACKAGE@
+Categories=GNOME;Application;Utility;
View
@@ -0,0 +1,2 @@
+# please keep this list sorted alphabetically
+#
View
@@ -0,0 +1 @@
+data/tumblefile.desktop.in.in
View
@@ -0,0 +1 @@
+data/tumblefile.desktop.in
View
@@ -23,6 +23,7 @@ global_defines = \
-DGTKMM_DISABLE_DEPRECATED
AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) $(global_defines) \
- ${TUMBLEFILE_CFLAGS}
+ ${TUMBLEFILE_CFLAGS} \
+ -DTUMBLEFILE_LOCALEDIR=\"${TUMBLEFILE_LOCALEDIR}\"
tumblefile_LDADD = ${TUMBLEFILE_LIBS}

0 comments on commit 9c3472c

Please sign in to comment.