+Thu Aug 26 15:12:36 2004 Jonathan Blandford <jrb@redhat.com>
+
+ * Makefile.am: add po as a supdir
+
+ * autogen.sh: use gnome-autogen.sh
+
+ * initscript/Gentoo/.cvsignore:
+ * initscript/RedHat/.cvsignore: Shut up cvs
+
+ * panel-applet/Makefile.am: Define GNOMELOCALEDIR for bonobo.
+
+ * panel-applet/NMWirelessApplet.c: (nmwa_populate_menu),
+ (nmwa_fill): Use gettext.
+
+ * configure.in: add gettext support
+ * po/.cvsignore:
+ * po/NetworkManager.pot:
+ * po/POTFILES.in:
+
2004-08-26 Seth Nickell <seth@gnome.org>
* panel-applet/NMWirelessApplet.c: (nmwa_destroy),
-SUBDIRS = src dispatcher-daemon info-daemon panel-applet initscript test
+SUBDIRS = src dispatcher-daemon info-daemon panel-applet initscript test po
EXTRA_DIST = CONTRIBUTING
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
-
-ORIGDIR=`pwd`
-cd $srcdir
-PROJECT=NetworkManager
-TEST_TYPE=-d
-FILE=src
-
-DIE=0
-
-if $have_libtool ; then : ; else
- echo
- echo "You must have libtool 1.4 installed to compile $PROJECT."
- echo "Install the appropriate package for your distribution,"
- echo "or get the source tarball at http://ftp.gnu.org/gnu/libtool/"
- DIE=1
-fi
-
-(autoconf --version) < /dev/null > /dev/null 2>&1 || {
- echo
- echo "You must have autoconf installed to compile $PROJECT."
- echo "Install the appropriate package for your distribution,"
- echo "or get the source tarball at http://ftp.gnu.org/gnu/autoconf/"
- DIE=1
+REQUIRED_AUTOMAKE_VERSION=1.7
+PKG_NAME=NetworkManager
+
+(test -f $srcdir/configure.in \
+ && test -f $srcdir/src/NetworkManager.h) || {
+ echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
+ echo " top-level $PKG_NAME directory"
+ exit 1
}
-if automake --version < /dev/null > /dev/null 2>&1 ; then
- AUTOMAKE=automake
- ACLOCAL=aclocal
-else
- echo
- echo "You must have automake 1.7.x installed to compile $PROJECT."
- echo "Install the appropriate package for your distribution,"
- echo "or get the source tarball at http://ftp.gnu.org/gnu/automake/"
- DIE=1
-fi
-if test "$DIE" -eq 1; then
- exit 1
-fi
-
-test $TEST_TYPE $FILE || {
- echo "You must run this script in the top-level $PROJECT directory"
- exit 1
+which gnome-autogen.sh || {
+ echo "You need to install gnome-common from the GNOME CVS"
+ exit 1
}
+USE_GNOME2_MACROS=1 . gnome-autogen.sh
-if test -z "$AUTOGEN_SUBDIR_MODE"; then
- if test -z "$*"; then
- echo "I am going to run ./configure with no arguments - if you wish "
- echo "to pass any to it, please specify them on the $0 command line."
- fi
-fi
-
-$ACLOCAL -I . $ACLOCALFLAGS || exit $?
-$AUTOMAKE --add-missing || exit $?
-autoconf || exit $?
-cd $ORIGDIR || exit $?
-
-if test -z "$AUTOGEN_SUBDIR_MODE"; then
- $srcdir/configure --enable-maintainer-mode $AUTOGEN_CONFIGURE_ARGS "$@" || exit $?
- echo
- echo "Now type 'make' to compile $PROJECT."
-fi
AC_PROG_CC
AM_PROG_CC_C_O
+GETTEXT_PACKAGE=NetworkManager
+AC_SUBST(GETTEXT_PACKAGE)
+AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package])
+ALL_LINGUAS=""
+AM_GLIB_GNU_GETTEXT
+
AC_ARG_WITH(distro,
[
--with-distro: Specify the Linux distribution to target with distro-specific
initscript/Makefile
initscript/RedHat/Makefile
initscript/Gentoo/Makefile
+po/Makefile.in
])
echo
--- /dev/null
+Makefile
+Makefile.in
--- /dev/null
+Makefile
+Makefile.in
INCLUDES = \
$(NM_CFLAGS) \
- $(GLADE_CFLAGS) \
+ $(GLADE_CFLAGS) \
$(DBUS_CFLAGS) \
$(DBUS_GLIB_CFLAGS) \
- $(PANEL_APPLET_CFLAGS) \
- -DICONDIR=\""$(datadir)/pixmaps"\" \
- -DG_DISABLE_DEPRECATED \
+ $(PANEL_APPLET_CFLAGS) \
+ -DICONDIR=\""$(datadir)/pixmaps"\" \
+ -DG_DISABLE_DEPRECATED \
-DGDK_DISABLE_DEPRECATED \
- -DGNOME_DISABLE_DEPRECATED \
+ -DGNOME_DISABLE_DEPRECATED \
+ -DGNOMELOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
$(NULL)
libexec_PROGRAMS = NMWirelessApplet
switch (applet->applet_state)
{
case (APPLET_STATE_NO_NM):
- nmwa_add_menu_item (applet, menu, "NetworkManager is not running...",
- NULL, FALSE, FALSE);
+ nmwa_add_menu_item (applet, menu, _("NetworkManager is not running..."),
+ NULL, FALSE, FALSE);
break;
case (APPLET_STATE_NO_CONNECTION):
- nmwa_add_menu_item (applet, menu, "No network connection is currently active...",
- NULL, FALSE, FALSE);
+ nmwa_add_menu_item (applet, menu, _("No network connection is currently active..."),
+ NULL, FALSE, FALSE);
break;
case (APPLET_STATE_WIRED):
case (APPLET_STATE_WIRED_CONNECTING):
- nmwa_add_menu_item (applet, menu, "A wired network connection is currently active...",
- NULL, FALSE, FALSE);
+ nmwa_add_menu_item (applet, menu, _("A wired network connection is currently active..."),
+ NULL, FALSE, FALSE);
break;
case (APPLET_STATE_WIRELESS):
GSList *element = applet->networks;
g_mutex_lock (applet->networks_mutex);
if (!element)
- nmwa_add_menu_item (applet, menu, "There are no wireless networks...",
- NULL, FALSE, FALSE);
+ nmwa_add_menu_item (applet, menu, _("There are no wireless networks..."),
+ NULL, FALSE, FALSE);
else
{
/* Add all networks in our network list to the menu */
"NMWirelessApplet/wireless-applet.glade", FALSE, NULL);
if (!glade_file)
{
- show_warning_dialog (TRUE, "The NetworkManager Applet could not find some required"
- "resources (the glade file was not found).");
+ show_warning_dialog (TRUE, _("The NetworkManager Applet could not find some required resources (the glade file was not found)."));
return (FALSE);
}
--- /dev/null
+*.gmo
+*.mo
+Makefile
+Makefile.in
+Makefile.in.in
+POTFILES
+cat-id-tbl.c
+*.pot
+stamp-cat-id
+messages
+missing
+po2tbl.sed
+po2tbl.sed.in
+notexist
--- /dev/null
+# 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: 2004-08-26 15:11-0400\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"
+
+#: panel-applet/NMWirelessApplet.c:563
+msgid "NetworkManager is not running..."
+msgstr ""
+
+#: panel-applet/NMWirelessApplet.c:568
+msgid "No network connection is currently active..."
+msgstr ""
+
+#: panel-applet/NMWirelessApplet.c:574
+msgid "A wired network connection is currently active..."
+msgstr ""
+
+#: panel-applet/NMWirelessApplet.c:584
+msgid "There are no wireless networks..."
+msgstr ""
+
+#: panel-applet/NMWirelessApplet.c:800
+msgid ""
+"The NetworkManager Applet could not find some required resources (the glade "
+"file was not found)."
+msgstr ""
+
+#: panel-applet/wireless-applet.glade:8
+msgid " "
+msgstr ""
+
+#: panel-applet/wireless-applet.glade:51
+msgid "_Login to Network"
+msgstr ""
+
+#: panel-applet/wireless-applet.glade:100
+msgid ""
+"<span weight=\"bold\" size=\"larger\">Wireless Network Login Confirmation</"
+"span>\n"
+"\n"
+"You have chosen log in to the wireless network '%s'. If you are sure this "
+"wireless network is secure, click the checkbox below and NetworkManager will "
+"no longer pester you with stupid questions when you connect to it."
+msgstr ""
+
+#: panel-applet/wireless-applet.glade:124
+msgid "Always Trust this Wireless Network"
+msgstr ""
--- /dev/null
+panel-applet/NMWirelessApplet.c
+panel-applet/wireless-applet.glade