summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ABOUT-NLS226
-rw-r--r--Makefile.am37
-rw-r--r--Makefile.in645
-rw-r--r--acconfig.h28
-rw-r--r--aclocal.m4520
-rw-r--r--addrbook.c4
-rw-r--r--alias.c15
-rw-r--r--attach.c33
-rw-r--r--browser.c33
-rw-r--r--buffy.c2
-rw-r--r--color.c30
-rw-r--r--commands.c48
-rw-r--r--compose.c83
-rw-r--r--config.h.in134
-rwxr-xr-xconfigure2439
-rw-r--r--configure.in47
-rw-r--r--copy.c4
-rw-r--r--curs_lib.c8
-rw-r--r--curs_main.c83
-rw-r--r--date.c2
-rw-r--r--doc/Makefile.in5
-rw-r--r--edit.c24
-rw-r--r--flags.c5
-rwxr-xr-xgen_defs2
-rw-r--r--handler.c28
-rw-r--r--headers.c2
-rw-r--r--help.c12
-rw-r--r--hook.c6
-rw-r--r--imap.c36
-rw-r--r--init.c53
-rw-r--r--intl/ChangeLog1086
-rw-r--r--intl/Makefile.in214
-rw-r--r--intl/bindtextdom.c203
-rw-r--r--intl/cat-compat.c262
-rw-r--r--intl/dcgettext.c624
-rw-r--r--intl/dgettext.c59
-rw-r--r--intl/explodename.c188
-rw-r--r--intl/finddomain.c216
-rw-r--r--intl/gettext.c70
-rw-r--r--intl/gettext.h105
-rw-r--r--intl/gettextP.h89
-rw-r--r--intl/hash-string.h59
-rw-r--r--intl/intl-compat.c76
-rw-r--r--intl/intlh.inst.in111
-rw-r--r--intl/l10nflist.c411
-rw-r--r--intl/libgettext.h182
-rw-r--r--intl/libintl.glibc120
-rw-r--r--intl/libintl.h182
-rw-r--r--intl/linux-msg.sed100
-rw-r--r--intl/loadinfo.h76
-rw-r--r--intl/loadmsgcat.c222
-rw-r--r--intl/localealias.c424
-rw-r--r--intl/po2tbl.sed.in102
-rw-r--r--intl/textdomain.c108
-rw-r--r--intl/xopen-msg.sed104
-rw-r--r--keymap.c22
-rw-r--r--lib.c18
-rw-r--r--main.c38
-rw-r--r--mbox.c24
-rw-r--r--menu.c56
-rw-r--r--mh.c2
-rwxr-xr-xmissing188
-rw-r--r--mutt.h19
-rw-r--r--mx.c50
-rw-r--r--pager.c36
-rw-r--r--parse.c2
-rw-r--r--pattern.c51
-rw-r--r--pgp.c42
-rw-r--r--pgpkey.c39
-rw-r--r--pgppubring.c35
-rw-r--r--po/Makefile.in.in251
-rw-r--r--po/POTFILES.in69
-rw-r--r--po/cat-id-tbl.c681
-rw-r--r--po/de.po2595
-rw-r--r--po/mutt.pot2595
-rw-r--r--po/stamp-cat-id1
-rw-r--r--pop.c25
-rw-r--r--postpone.c12
-rw-r--r--query.c17
-rw-r--r--recvattach.c34
-rw-r--r--rfc1524.c6
-rw-r--r--score.c4
-rw-r--r--send.c40
-rw-r--r--sendlib.c14
-rw-r--r--signal.c6
-rw-r--r--sort.c4
-rw-r--r--stamp-h.in1
-rw-r--r--status.c4
-rw-r--r--thread.c2
89 files changed, 16131 insertions, 839 deletions
diff --git a/ABOUT-NLS b/ABOUT-NLS
new file mode 100644
index 00000000..28d38c76
--- /dev/null
+++ b/ABOUT-NLS
@@ -0,0 +1,226 @@
+Notes on the Free Translation Project
+*************************************
+
+ Free software is going international! The Free Translation Project
+is a way to get maintainers of free software, translators, and users all
+together, so that will gradually become able to speak many languages.
+A few packages already provide translations for their messages.
+
+ If you found this `ABOUT-NLS' file inside a distribution, you may
+assume that the distributed package does use GNU `gettext' internally,
+itself available at your nearest GNU archive site. But you do *not*
+need to install GNU `gettext' prior to configuring, installing or using
+this package with messages translated.
+
+ Installers will find here some useful hints. These notes also
+explain how users should proceed for getting the programs to use the
+available translations. They tell how people wanting to contribute and
+work at translations should contact the appropriate team.
+
+ When reporting bugs in the `intl/' directory or bugs which may be
+related to internationalization, you should tell about the version of
+`gettext' which is used. The information can be found in the
+`intl/VERSION' file, in internationalized packages.
+
+One advise in advance
+=====================
+
+ If you want to exploit the full power of internationalization, you
+should configure it using
+
+ ./configure --with-included-gettext
+
+to force usage of internationalizing routines provided within this
+package, despite the existence of internationalizing capabilities in the
+operating system where this package is being installed. So far, only
+the `gettext' implementation in the GNU C library version 2 provides as
+many features (such as locale alias or message inheritance) as the
+implementation here. It is also not possible to offer this additional
+functionality on top of a `catgets' implementation. Future versions of
+GNU `gettext' will very likely convey even more functionality. So it
+might be a good idea to change to GNU `gettext' as soon as possible.
+
+ So you need not provide this option if you are using GNU libc 2 or
+you have installed a recent copy of the GNU gettext package with the
+included `libintl'.
+
+INSTALL Matters
+===============
+
+ Some packages are "localizable" when properly installed; the
+programs they contain can be made to speak your own native language.
+Most such packages use GNU `gettext'. Other packages have their own
+ways to internationalization, predating GNU `gettext'.
+
+ By default, this package will be installed to allow translation of
+messages. It will automatically detect whether the system provides
+usable `catgets' (if using this is selected by the installer) or
+`gettext' functions. If neither is available, the GNU `gettext' own
+library will be used. This library is wholly contained within this
+package, usually in the `intl/' subdirectory, so prior installation of
+the GNU `gettext' package is *not* required. Installers may use
+special options at configuration time for changing the default
+behaviour. The commands:
+
+ ./configure --with-included-gettext
+ ./configure --with-catgets
+ ./configure --disable-nls
+
+will respectively bypass any pre-existing `catgets' or `gettext' to use
+the internationalizing routines provided within this package, enable
+the use of the `catgets' functions (if found on the locale system), or
+else, *totally* disable translation of messages.
+
+ When you already have GNU `gettext' installed on your system and run
+configure without an option for your new package, `configure' will
+probably detect the previously built and installed `libintl.a' file and
+will decide to use this. This might be not what is desirable. You
+should use the more recent version of the GNU `gettext' library. I.e.
+if the file `intl/VERSION' shows that the library which comes with this
+package is more recent, you should use
+
+ ./configure --with-included-gettext
+
+to prevent auto-detection.
+
+ By default the configuration process will not test for the `catgets'
+function and therefore they will not be used. The reasons are already
+given above: the emulation on top of `catgets' cannot provide all the
+extensions provided by the GNU `gettext' library. If you nevertheless
+want to use the `catgets' functions use
+
+ ./configure --with-catgets
+
+to enable the test for `catgets' (this causes no harm if `catgets' is
+not available on your system). If you really select this option we
+would like to hear about the reasons because we cannot think of any
+good one ourself.
+
+ Internationalized packages have usually many `po/LL.po' files, where
+LL gives an ISO 639 two-letter code identifying the language. Unless
+translations have been forbidden at `configure' time by using the
+`--disable-nls' switch, all available translations are installed
+together with the package. However, the environment variable `LINGUAS'
+may be set, prior to configuration, to limit the installed set.
+`LINGUAS' should then contain a space separated list of two-letter
+codes, stating which languages are allowed.
+
+Using This Package
+==================
+
+ As a user, if your language has been installed for this package, you
+only have to set the `LANG' environment variable to the appropriate
+ISO 639 `LL' two-letter code prior to using the programs in the
+package. For example, let's suppose that you speak German. At the
+shell prompt, merely execute `setenv LANG de' (in `csh'),
+`export LANG; LANG=de' (in `sh') or `export LANG=de' (in `bash'). This
+can be done from your `.login' or `.profile' file, once and for all.
+
+ An operating system might already offer message localization for
+many of its programs, while other programs have been installed locally
+with the full capabilities of GNU `gettext'. Just using `gettext'
+extended syntax for `LANG' would break proper localization of already
+available operating system programs. In this case, users should set
+both `LANGUAGE' and `LANG' variables in their environment, as programs
+using GNU `gettext' give preference to `LANGUAGE'. For example, some
+Swedish users would rather read translations in German than English for
+when Swedish is not available. This is easily accomplished by setting
+`LANGUAGE' to `sv:de' while leaving `LANG' to `sv'.
+
+Translating Teams
+=================
+
+ For the Free Translation Project to be a success, we need interested
+people who like their own language and write it well, and who are also
+able to synergize with other translators speaking the same language.
+Each translation team has its own mailing list, courtesy of Linux
+International. You may reach your translation team at the address
+`LL@li.org', replacing LL by the two-letter ISO 639 code for your
+language. Language codes are *not* the same as the country codes given
+in ISO 3166. The following translation teams exist, as of December
+1997:
+
+ Chinese `zh', Czech `cs', Danish `da', Dutch `nl', English `en',
+ Esperanto `eo', Finnish `fi', French `fr', German `de', Hungarian
+ `hu', Irish `ga', Italian `it', Indonesian `id', Japanese `ja',
+ Korean `ko', Latin `la', Norwegian `no', Persian `fa', Polish
+ `pl', Portuguese `pt', Russian `ru', Slovenian `sl', Spanish `es',
+ Swedish `sv', and Turkish `tr'.
+
+For example, you may reach the Chinese translation team by writing to
+`zh@li.org'.
+
+ If you'd like to volunteer to *work* at translating messages, you
+should become a member of the translating team for your own language.
+The subscribing address is *not* the same as the list itself, it has
+`-request' appended. For example, speakers of Swedish can send a
+message to `sv-request@li.org', having this message body:
+
+ subscribe
+
+ Keep in mind that team members are expected to participate
+*actively* in translations, or at solving translational difficulties,
+rather than merely lurking around. If your team does not exist yet and
+you want to start one, or if you are unsure about what to do or how to
+get started, please write to `translation@iro.umontreal.ca' to reach the
+coordinator for all translator teams.
+
+ The English team is special. It works at improving and uniformizing
+the terminology in use. Proven linguistic skill are praised more than
+programming skill, here.
+
+Available Packages
+==================
+
+ Languages are not equally supported in all packages. The following
+matrix shows the current state of internationalization, as of December
+1997. The matrix shows, in regard of each package, for which languages
+PO files have been submitted to translation coordination.
+
+ Ready PO files cs da de en es fi fr it ja ko nl no pl pt ru sl sv
+ .----------------------------------------------------.
+ bash | [] [] [] | 3
+ bison | [] [] [] | 3
+ clisp | [] [] [] [] | 4
+ cpio | [] [] [] [] [] [] | 6
+ diffutils | [] [] [] [] [] | 5
+ enscript | [] [] [] [] [] [] | 6
+ fileutils | [] [] [] [] [] [] [] [] [] [] | 10
+ findutils | [] [] [] [] [] [] [] [] [] | 9
+ flex | [] [] [] [] | 4
+ gcal | [] [] [] [] [] | 5
+ gettext | [] [] [] [] [] [] [] [] [] [] [] | 12
+ grep | [] [] [] [] [] [] [] [] [] [] | 10
+ hello | [] [] [] [] [] [] [] [] [] [] [] | 11
+ id-utils | [] [] [] | 3
+ indent | [] [] [] [] [] | 5
+ libc | [] [] [] [] [] [] [] | 7
+ m4 | [] [] [] [] [] [] | 6
+ make | [] [] [] [] [] [] | 6
+ music | [] [] | 2
+ ptx | [] [] [] [] [] [] [] [] | 8
+ recode | [] [] [] [] [] [] [] [] [] | 9
+ sh-utils | [] [] [] [] [] [] [] [] | 8
+ sharutils | [] [] [] [] [] [] | 6
+ tar | [] [] [] [] [] [] [] [] [] [] [] | 11
+ texinfo | [] [] [] | 3
+ textutils | [] [] [] [] [] [] [] [] [] | 9
+ wdiff | [] [] [] [] [] [] [] [] | 8
+ `----------------------------------------------------'
+ 17 languages cs da de en es fi fr it ja ko nl no pl pt ru sl sv
+ 27 packages 6 4 25 1 18 1 26 2 1 12 20 9 19 7 4 7 17 179
+
+ Some counters in the preceding matrix are higher than the number of
+visible blocks let us expect. This is because a few extra PO files are
+used for implementing regional variants of languages, or language
+dialects.
+
+ For a PO file in the matrix above to be effective, the package to
+which it applies should also have been internationalized and
+distributed as such by its maintainer. There might be an observable
+lag between the mere existence a PO file and its wide availability in a
+distribution.
+
+ If December 1997 seems to be old, you may fetch a more recent copy
+of this `ABOUT-NLS' file on most GNU archive sites.
+
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 00000000..4e36fee7
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,37 @@
+## Process this file with automake to produce Makefile.in
+## Use aclocal; automake --foreign
+
+EXTRA_PROGRAMS = mutt_dotlock
+
+bin_PROGRAMS = mutt @DOTLOCK_TARGET@
+mutt_SOURCES = addrbook.c alias.c attach.c browser.c buffy.c color.c \
+ commands.c complete.c compose.c copy.c curs_lib.c curs_main.c date.c \
+ edit.c enter.c flags.c init.c filter.c from.c getdomain.c \
+ handler.c hash.c hdrline.c headers.c help.c hook.c keymap.c \
+ main.c mbox.c menu.c mh.c mx.c pager.c parse.c pattern.c \
+ postpone.c query.c recvattach.c rfc822.c \
+ rfc1524.c rfc2047.c score.c send.c sendlib.c signal.c sort.c \
+ status.c system.c thread.c charset.c history.c lib.c
+
+mutt_LDADD = @MUTT_LIB_OBJECTS@
+mutt_DEPENDENCIES = @MUTT_LIB_OBJECTS@
+
+EXTRA_mutt_SOURCES = pgp.c pgpinvoke.c pgpkey.c pgppubring.c sha1dgst.c \
+ gnupgparse.c resize.c snprintf.c dotlock.c pop.c imap.c socket.c
+
+BUILT_SOURCES = mutt_dotlock.c
+
+mutt_dotlock.c: dotlock.c
+ cp dotlock.c mutt_dotlock.c
+
+LDADD = @LIBOBJS@ @INTLLIBS@
+
+SUBDIRS = doc intl po
+
+OPS=$(srcdir)/OPS $(srcdir)/OPS.PGP
+
+keymap_defs.h: $(OPS)
+ $(srcdir)/gen_defs $(OPS) > keymap_defs.h
+
+reldate:
+ echo 'const char *ReleaseDate = "'`date +%Y-%m-%d`'";' > $(srcdir)/reldate.h
diff --git a/Makefile.in b/Makefile.in
index ddad5346..76177b17 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1,168 +1,523 @@
-#
-# Copyright (C) 1996,1997 Michael R. Elkins <me@cs.hmc.edu>
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-#
-
-SHELL=/bin/sh
-VERSION=@VERSION@
-
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-bindir=@bindir@
-libdir=@libdir@
-mandir=@mandir@
-sharedir=@sharedir@
-srcdir=@srcdir@
-docdir=@docdir@
-VPATH=@srcdir@
-@SET_MAKE@
+# Makefile.in generated automatically by automake 1.3 from Makefile.am
-INSTALL=@INSTALL@
-CC=@CC@
-XCPPFLAGS=-I. @CPPFLAGS@ -DSHAREDIR=\"$(sharedir)\" -DDOTLOCK=\"$(bindir)/mutt.dotlock\"
-CFLAGS=@CFLAGS@ $(XCPPFLAGS)
-LDFLAGS=@LDFLAGS@
-LIBS=@LIBS@
-OPS=@OPS@
-OBJS= addrbook.o alias.o attach.o browser.o buffy.o color.o \
- commands.o complete.o compose.o copy.o curs_lib.o curs_main.o date.o \
- edit.o enter.o flags.o init.o filter.o from.o getdomain.o \
- handler.o hash.o hdrline.o headers.o help.o \
- history.o hook.o keymap.o lib.o \
- main.o mbox.o menu.o mh.o mx.o pager.o parse.o pattern.o \
- postpone.o query.o recvattach.o rfc822.o \
- rfc1524.o rfc2047.o score.o send.o sendlib.o signal.o sort.o \
- status.o system.o thread.o charset.o @LIBOBJS@
-
-CLEANFILES=dotlock mutt *.o core
-VERYCLEANFILES=$(CLEANFILES) Makefile config.cache config.log \
- config.status config.h Muttrc
-DISTCLEANFILES=$(VERYCLEANFILES) tags keymap_defs.h *.rej *.orig *~ Makefile.bak
-
-# kill these files when making new export distributions
-NONEXPORT=pgp.c pgp.h pgpinvoke.c pgpkey.c pgppubring.c sha.h sha1dgst.c \
- gnupgparse.c sha_locl.h OPS.PGP doc/pgp-Notes.txt doc/language.txt \
- doc/language50.txt
-
-all: mutt @DOTLOCK_TARGET@ charsets/charsets.list
-
-mutt: keymap_defs.h $(OBJS) $(REGEX)
- $(CC) -o mutt $(OBJS) $(REGEX) $(LDFLAGS) $(LIBS)
-
-dotlock: dotlock.o @SNPRINTFOBJS@
- $(CC) -o dotlock dotlock.o @SNPRINTFOBJS@
-
-charsets/charsets.list:
- ( cd $(srcdir)/charsets && $(MAKE) charsets.list)
-
-keymap_defs.h: Makefile $(OPS)
- rm -f keymap_defs.h
- $(srcdir)/gen_defs $(OPS) > keymap_defs.h
+# Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
-install: mutt install.doc @DOTLOCK_INSTALL_TARGET@
- $(srcdir)/mkinstalldirs $(bindir)
- -mv -f $(bindir)/mutt $(bindir)/mutt.old
- $(INSTALL) -m 755 mutt $(bindir)
- -if [ ! -f $(sharedir)/Muttrc ]; then \
- $(srcdir)/mkinstalldirs $(sharedir); \
- $(INSTALL) -m 644 $(srcdir)/Muttrc $(sharedir); \
- fi
- -if [ ! -f $(sharedir)/mime.types ]; then \
- $(INSTALL) -m 644 $(srcdir)/mime.types $(sharedir); \
- fi
- ( cd $(srcdir)/charsets && make install )
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
-install.dotlock: dotlock
- $(srcdir)/mkinstalldirs $(bindir)
- -mv -f $(bindir)/mutt.dotlock $(bindir)/mutt.dotlock.old
- $(INSTALL) @DOTLOCK_GROUP@ -m @DOTLOCK_PERMISSION@ dotlock $(bindir)/mutt.dotlock
-install.doc:
- ( cd $(srcdir)/doc && $(MAKE) install )
+SHELL = /bin/sh
-uninstall: uninstall.doc
- rm -f $(bindir)/mutt $(sharedir)/Muttrc $(bindir)/mutt.dotlock
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+VPATH = @srcdir@
+prefix = @prefix@
+exec_prefix = @exec_prefix@
-uninstall.doc:
- ( cd $(srcdir)/doc/ && $(MAKE) uninstall )
+bindir = @bindir@
+sbindir = @sbindir@
+libexecdir = @libexecdir@
+datadir = @datadir@
+sysconfdir = @sysconfdir@
+sharedstatedir = @sharedstatedir@
+localstatedir = @localstatedir@
+libdir = @libdir@
+infodir = @infodir@
+mandir = @mandir@
+includedir = @includedir@
+oldincludedir = /usr/include
-$(srcdir)/configure: $(srcdir)/configure.in
- autoconf
+DISTDIR =