summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering2008-08-05 20:20:09 +0200
committerLennart Poettering2008-08-05 20:20:09 +0200
commit21bb91f1b96c6e276ffeefb7425b409b22e7615a (patch)
treeb1673ad87556991cda24e6a1a730dce9471032fc
parentgenerate changelog from git history (diff)
downloadpavucontrol-slx-21bb91f1b96c6e276ffeefb7425b409b22e7615a.tar.gz
pavucontrol-slx-21bb91f1b96c6e276ffeefb7425b409b22e7615a.tar.xz
pavucontrol-slx-21bb91f1b96c6e276ffeefb7425b409b22e7615a.zip
add i18n
-rw-r--r--.gitignore10
-rw-r--r--Makefile.am18
-rwxr-xr-xbootstrap.sh9
-rw-r--r--configure.ac16
-rw-r--r--po/.gitignore12
-rw-r--r--po/POTFILES.in4
-rw-r--r--src/Makefile.am16
-rw-r--r--src/pavucontrol.desktop.in (renamed from src/pavucontrol.desktop)7
8 files changed, 80 insertions, 12 deletions
diff --git a/.gitignore b/.gitignore
index 43ed615..531190f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,13 @@
+ABOUT-NLS
+ChangeLog
+*~
+config.guess
+config.rpath
+config.sub
+intltool-extract.in
+intltool-merge.in
+intltool-update.in
+m4/
aclocal.m4
*.cache
config.h
diff --git a/Makefile.am b/Makefile.am
index 2b84337..2aeb1ce 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -15,8 +15,15 @@
# You should have received a copy of the GNU General Public License
# along with pavucontrol. If not, see <http://www.gnu.org/licenses/>.
-EXTRA_DIST = bootstrap.sh README LICENSE
-SUBDIRS=src doc
+EXTRA_DIST = \
+ m4/ChangeLog \
+ bootstrap.sh \
+ README LICENSE \
+ intltool-merge.in \
+ intltool-update.in \
+ intltool-extract.in
+
+SUBDIRS=src doc po
MAINTAINERCLEANFILES=README
noinst_DATA = README
@@ -33,11 +40,18 @@ homepage: all dist
cp doc/README.html doc/screenshot.png doc/style.css $$HOME/homepage/private/projects/pavucontrol
ln -sf README.html $$HOME/homepage/private/projects/pavucontrol/index.html
+DISTCLEANFILES = \
+ intltool-extract \
+ intltool-merge \
+ intltool-update
+
fedora-snapshot: dist
cp $(distdir).tar.gz $$HOME/cvs.fedora/pavucontrol/devel/$(distdir).git`date +%Y%m%d`.tar.gz
.PHONY: homepage
+ACLOCAL_AMFLAGS = -I m4
+
dist-hook:
if test -d .git ; then \
git pull ; \
diff --git a/bootstrap.sh b/bootstrap.sh
index f03ceff..7de732d 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -48,7 +48,14 @@ else
rm -rf autom4te.cache
rm -f config.cache
- run_versioned aclocal "$VERSION"
+ rm -f Makefile.am~ configure.ac~
+ # Evil, evil, evil, evil hack
+ sed 's/read dummy/\#/' `which gettextize` | sh -s -- --copy --force
+ test -f Makefile.am~ && mv Makefile.am~ Makefile.am
+ test -f configure.ac~ && mv configure.ac~ configure.ac
+
+ intltoolize --copy --force --automake
+ run_versioned aclocal "$VERSION" -I m4
run_versioned autoconf 2.59 -Wall
run_versioned autoheader 2.59
run_versioned automake "$VERSION" -a -c --foreign
diff --git a/configure.ac b/configure.ac
index f1c13d8..e4663e7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -78,5 +78,19 @@ fi
AM_CONDITIONAL([USE_LYNX], [test "x$lynx" = xyes])
-AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile doc/README.html])
+AM_GNU_GETTEXT([external])
+
+IT_PROG_INTLTOOL([0.35.0])
+GETTEXT_PACKAGE=pavucontrol
+AC_SUBST([GETTEXT_PACKAGE])
+AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[Gettext package])
+AM_GLIB_GNU_GETTEXT
+
+AC_CONFIG_FILES([
+po/Makefile.in
+Makefile
+src/Makefile
+doc/Makefile
+doc/README.html])
+
AC_OUTPUT
diff --git a/po/.gitignore b/po/.gitignore
new file mode 100644
index 0000000..06abd4d
--- /dev/null
+++ b/po/.gitignore
@@ -0,0 +1,12 @@
+.intltool-merge-cache
+Makefile.in.in
+Makevars.template
+POTFILES
+Rules-quot
+boldquot.sed
+en@boldquot.header
+en@quot.header
+insert-header.sin
+pavucontrol.pot
+quot.sed
+remove-potcdate.sin
diff --git a/po/POTFILES.in b/po/POTFILES.in
new file mode 100644
index 0000000..0166fc3
--- /dev/null
+++ b/po/POTFILES.in
@@ -0,0 +1,4 @@
+[encoding: UTF-8]
+src/pavucontrol.desktop.in
+src/pavucontrol.glade
+src/pavucontrol.cc
diff --git a/src/Makefile.am b/src/Makefile.am
index 4c465cc..c79c17f 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -16,15 +16,23 @@
# along with pavucontrol. If not, see <http://www.gnu.org/licenses/>.
desktopdir = $(datadir)/applications
+gladedir = $(pkgdatadir)
+localedir = $(datadir)/locale
bin_PROGRAMS=pavucontrol
-
-dist_pkgdata_DATA=pavucontrol.glade
-dist_desktop_DATA=pavucontrol.desktop
+glade_DATA=pavucontrol.glade
+desktop_in_files=pavucontrol.desktop.in
+desktop_DATA=$(desktop_in_files:.desktop.in=.desktop)
pavucontrol_SOURCES=pavucontrol.cc
pavucontrol_LDADD=$(AM_LDADD) $(GUILIBS_LIBS) $(PULSE_LIBS)
pavucontrol_CXXFLAGS=$(AM_CXXFLAGS) $(GUILIBS_CFLAGS) $(PULSE_CFLAGS)
-pavucontrol_CXXFLAGS+=-DGLADE_FILE=\"$(pkgdatadir)/pavucontrol.glade\"
+pavucontrol_CXXFLAGS+=-DGLADE_FILE=\"$(gladedir)/pavucontrol.glade\"
#pavucontrol_CXXFLAGS+=-DGLADE_FILE=\"pavucontrol.glade\"
+
+EXTRA_DIST = $(glade_DATA) $(desktop_in_files)
+
+CLEANFILES = $(desktop_DATA)
+
+@INTLTOOL_DESKTOP_RULE@
diff --git a/src/pavucontrol.desktop b/src/pavucontrol.desktop.in
index fecc007..5c50478 100644
--- a/src/pavucontrol.desktop
+++ b/src/pavucontrol.desktop.in
@@ -1,12 +1,11 @@
[Desktop Entry]
Version=1.0
Encoding=UTF-8
-Name=PulseAudio Volume Control
-GenericName=Volume Control
-Comment=Adjust the volume level
+_Name=PulseAudio Volume Control
+_GenericName=Volume Control
+_Comment=Adjust the volume level
Exec=pavucontrol
Icon=multimedia-volume-control
StartupNotify=true
Type=Application
Categories=Application;AudioVideo;Audio;
-GenericName[en_GB]=Volume Control