Skip to content

Commit 9c3472c

Browse files
committed
Add .desktop file, i18n
1 parent 345433d commit 9c3472c

File tree

9 files changed

+54
-2
lines changed

9 files changed

+54
-2
lines changed

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,19 @@ config.sub
1313
configure
1414
depcomp
1515
install-sh
16+
intltool-extract.in
17+
intltool-merge.in
18+
intltool-update.in
1619
missing
20+
mkinstalldirs
1721
stamp-h1
22+
data/tumblefile.desktop
23+
data/tumblefile.desktop.in
24+
po/.intltool-merge-cache
25+
po/Makefile.in.in
26+
po/POTFILES
27+
po/*.gmo
28+
po/stamp-it
1829
src/.deps/
1930
src/*.o
2031

Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
SUBDIRS = src
2+
SUBDIRS = data src
33

44
dist_noinst_SCRIPTS = autogen.sh
55

configure.ac

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,21 @@ AC_CANONICAL_HOST
4444

4545
AC_LANG_CPLUSPLUS
4646

47+
# *************************************
48+
# Internationalization support
49+
# *************************************
50+
# To add a new language, add language code xx to po/LINGUAS
51+
IT_PROG_INTLTOOL([0.35.0])
52+
53+
GETTEXT_PACKAGE=tumblefile
54+
AC_SUBST(GETTEXT_PACKAGE)
55+
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"],
56+
[The domain to use with gettext])
57+
AM_GLIB_GNU_GETTEXT
58+
59+
TUMBLEFILE_LOCALEDIR=[${datadir}/locale]
60+
AC_SUBST(TUMBLEFILE_LOCALEDIR)
61+
4762
# *************************************
4863
# Library checks
4964
# *************************************
@@ -76,6 +91,9 @@ AC_PROG_INSTALL
7691
# Generate the files:
7792
AC_CONFIG_FILES([
7893
Makefile
94+
data/Makefile
95+
data/tumblefile.desktop.in
96+
po/Makefile.in
7997
src/Makefile
8098
])
8199

data/Makefile.am

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
desktopdir = $(datadir)/applications
3+
desktop_in_files = tumblefile.desktop.in
4+
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
5+
@INTLTOOL_DESKTOP_RULE@
6+
7+
EXTRA_DIST = ${desktop_in_files}
8+
9+
CLEANFILES = ${desktop_DATA}

data/tumblefile.desktop.in.in

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[Desktop Entry]
2+
Version=@PACKAGE_VERSION@
3+
Encoding=UTF-8
4+
Type=Application
5+
_Name=Tumblefile
6+
_Comment=Reclaim your Desktop
7+
Icon=@PACKAGE@
8+
Exec=@PACKAGE@
9+
Categories=GNOME;Application;Utility;

po/LINGUAS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# please keep this list sorted alphabetically
2+
#

po/POTFILES.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
data/tumblefile.desktop.in.in

po/POTFILES.skip

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
data/tumblefile.desktop.in

src/Makefile.am

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ global_defines = \
2323
-DGTKMM_DISABLE_DEPRECATED
2424

2525
AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) $(global_defines) \
26-
${TUMBLEFILE_CFLAGS}
26+
${TUMBLEFILE_CFLAGS} \
27+
-DTUMBLEFILE_LOCALEDIR=\"${TUMBLEFILE_LOCALEDIR}\"
2728

2829
tumblefile_LDADD = ${TUMBLEFILE_LIBS}

0 commit comments

Comments
 (0)