[Python-checkins] CVS: python/dist/src/Doc/lib libgettext.tex,1.9,1.10

Martin v. L?wis loewis@users.sourceforge.net
Thu, 10 Jan 2002 22:33:30 -0800


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv9971/Doc/lib

Modified Files:
	libgettext.tex 
Log Message:
Add fallback argument to translation(). Request fallbacks on install.
Fixes #500595.


Index: libgettext.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libgettext.tex,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** libgettext.tex	2001/10/18 19:41:48	1.9
--- libgettext.tex	2002/01/11 06:33:27	1.10
***************
*** 124,128 ****
  
  \begin{funcdesc}{translation}{domain\optional{, localedir\optional{,
!                               languages\optional{, class_}}}}
  Return a \class{Translations} instance based on the \var{domain},
  \var{localedir}, and \var{languages}, which are first passed to
--- 124,129 ----
  
  \begin{funcdesc}{translation}{domain\optional{, localedir\optional{,
!                               languages\optional{, 
!                               class_,\optional{fallback}}}}}
  Return a \class{Translations} instance based on the \var{domain},
  \var{localedir}, and \var{languages}, which are first passed to
***************
*** 133,137 ****
  \class{GNUTranslations}.  The class's constructor must take a single
  file object argument.  If no \file{.mo} file is found, this
! function raises \exception{IOError}.
  \end{funcdesc}
  
--- 134,140 ----
  \class{GNUTranslations}.  The class's constructor must take a single
  file object argument.  If no \file{.mo} file is found, this
! function raises \exception{IOError} if \var{fallback} is false
! (which is the default), and returns a \class{NullTranslations} instance
! if \var{fallback} is true.
  \end{funcdesc}