diff options
-rw-r--r-- | Makefile.am | 20 | ||||
-rwxr-xr-x | bootstrap.sh | 4 | ||||
-rw-r--r-- | configure.ac | 16 | ||||
-rw-r--r-- | po/POTFILES.in | 3 | ||||
-rw-r--r-- | po/paprefs.pot | 78 | ||||
-rw-r--r-- | src/Makefile.am | 16 | ||||
-rw-r--r-- | src/paprefs.cc | 7 | ||||
-rw-r--r-- | src/paprefs.desktop.in (renamed from src/paprefs.desktop) | 6 |
8 files changed, 139 insertions, 11 deletions
diff --git a/Makefile.am b/Makefile.am index 397fcd0..deebd5d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -17,8 +17,17 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. -EXTRA_DIST = bootstrap.sh README LICENSE -SUBDIRS=src doc +EXTRA_DIST=\ + config.rpath \ + m4/ChangeLog \ + bootstrap.sh \ + README \ + LICENSE \ + intltool-merge.in \ + intltool-update.in \ + intltool-extract.in + +SUBDIRS=src doc po MAINTAINERCLEANFILES=README noinst_DATA = README @@ -35,4 +44,11 @@ homepage: all dist cp doc/README.html doc/screenshot.png doc/style.css $$HOME/homepage/private/projects/paprefs ln -sf README.html $$HOME/homepage/private/projects/paprefs/index.html +DISTCLEANFILES = \ + intltool-extract \ + intltool-merge \ + intltool-update + .PHONY: homepage + +ACLOCAL_AMFLAGS = -I m4 diff --git a/bootstrap.sh b/bootstrap.sh index 0d3db06..73a72e7 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -48,7 +48,9 @@ else rm -rf autom4te.cache rm -f config.cache - run_versioned aclocal "$VERSION" + echo "no" | gettextize --copy --force + 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 f543be6..314341b 100644 --- a/configure.ac +++ b/configure.ac @@ -68,5 +68,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=paprefs +AC_SUBST([GETTEXT_PACKAGE]) +AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[Gettext package]) +AM_GLIB_GNU_GETTEXT + +AC_CONFIG_FILES([ +Makefile +src/Makefile +doc/Makefile +doc/README.html +po/Makefile.in]) + AC_OUTPUT diff --git a/po/POTFILES.in b/po/POTFILES.in new file mode 100644 index 0000000..98fc9c5 --- /dev/null +++ b/po/POTFILES.in @@ -0,0 +1,3 @@ +[encoding: UTF-8] +src/paprefs.desktop.in +src/paprefs.glade diff --git a/po/paprefs.pot b/po/paprefs.pot new file mode 100644 index 0000000..d98e1be --- /dev/null +++ b/po/paprefs.pot @@ -0,0 +1,78 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2007-05-24 00:02+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ../src/paprefs.desktop.in.h:1 ../src/paprefs.glade.h:10 +msgid "PulseAudio Preferences" +msgstr "" + +#: ../src/paprefs.desktop.in.h:2 +msgid "Sound Server Preferences" +msgstr "" + +#: ../src/paprefs.desktop.in.h:3 ../src/paprefs.glade.h:13 +msgid "View and modify the configuration of the local sound server" +msgstr "" + +#: ../src/paprefs.glade.h:1 +msgid "<b>Multicast/RTP</b>" +msgstr "" + +#: ../src/paprefs.glade.h:2 +msgid "<b>Network Access</b>" +msgstr "" + +#: ../src/paprefs.glade.h:3 +msgid "" +"<span size=\"18000\" color=\"black\"><b>PulseAudio Preferences</b></span>" +msgstr "" + +#: ../src/paprefs.glade.h:4 +msgid "Allow other machines in LAN to _browse for local sound devices" +msgstr "" + +#: ../src/paprefs.glade.h:5 +msgid "Create seperate audio _device for Multicast/RTP" +msgstr "" + +#: ../src/paprefs.glade.h:6 +msgid "Don't require _authentication" +msgstr "" + +#: ../src/paprefs.glade.h:7 +msgid "Enable Multicast/RTP _receiver" +msgstr "" + +#: ../src/paprefs.glade.h:8 +msgid "Enable Multicast/RTP _sender" +msgstr "" + +#: ../src/paprefs.glade.h:9 +msgid "Enable _network access to local sound devices" +msgstr "" + +#: ../src/paprefs.glade.h:11 +msgid "Send audio from local _microphone" +msgstr "" + +#: ../src/paprefs.glade.h:12 +msgid "Send audio from local s_peakers" +msgstr "" + +#: ../src/paprefs.glade.h:14 +msgid "_Loopback audio to local speakers" +msgstr "" diff --git a/src/Makefile.am b/src/Makefile.am index 6a54d31..7729bee 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -18,14 +18,22 @@ # USA. desktopdir = $(datadir)/applications +gladedir = $(pkgdatadir) +localedir = $(datadir)/locale bin_PROGRAMS=paprefs - -dist_pkgdata_DATA=paprefs.glade -dist_desktop_DATA=paprefs.desktop +glade_DATA=paprefs.glade +desktop_in_files=paprefs.desktop.in +desktop_DATA=$(desktop_in_files:.desktop.in=.desktop) paprefs_SOURCES=paprefs.cc paprefs_LDADD=$(AM_LDADD) $(GUILIBS_LIBS) paprefs_CXXFLAGS=$(AM_CXXFLAGS) $(GUILIBS_CFLAGS) -paprefs_CXXFLAGS+=-DGLADE_FILE=\"$(pkgdatadir)/paprefs.glade\" +paprefs_CXXFLAGS+=-DGLADE_FILE=\"$(gladedir)/paprefs.glade\" -DLOCALEDIR=\"$(localedir)\" + +EXTRA_DIST = $(glade_DATA) $(desktop_in_files) + +CLEANFILES = $(desktop_DATA) + +@INTLTOOL_DESKTOP_RULE@ diff --git a/src/paprefs.cc b/src/paprefs.cc index 1fa7381..a2abfd5 100644 --- a/src/paprefs.cc +++ b/src/paprefs.cc @@ -304,7 +304,14 @@ void MainWindow::readFromGConf() { } int main(int argc, char *argv[]) { + + /* Initialize the i18n stuff */ + bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR); + bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"); + textdomain(GETTEXT_PACKAGE); + signal(SIGPIPE, SIG_IGN); + Gtk::Main kit(argc, argv); Gnome::Conf::init(); diff --git a/src/paprefs.desktop b/src/paprefs.desktop.in index 7de90fb..5998b87 100644 --- a/src/paprefs.desktop +++ b/src/paprefs.desktop.in @@ -1,9 +1,9 @@ [Desktop Entry] Version=1.0 Encoding=UTF-8 -Name=PulseAudio Preferences -GenericName=Sound server Preferences -Comment=View and modify the configuration of the local sound server +_Name=PulseAudio Preferences +_GenericName=Sound Server Preferences +_Comment=View and modify the configuration of the local sound server Exec=paprefs Icon=preferences-desktop StartupNotify=true |