<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython.git/Lib/test/test_gettext.py, branch v2.7</title>
<subtitle>
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/'/>
<entry>
<title>convert usage of fail* to assert*</title>
<updated>2009-06-30T22:57:08+00:00</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2009-06-30T22:57:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=1b78638ff7336c73f64125f60777becfdba56fdc'/>
<id>1b78638ff7336c73f64125f60777becfdba56fdc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Make test.test_support.EnvironmentVarGuard behave like a dictionary.</title>
<updated>2009-05-01T17:35:37+00:00</updated>
<author>
<name>Walter Dörwald</name>
<email>walter@livinglogic.de</email>
</author>
<published>2009-05-01T17:35:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=2df5858ce317caf4503c5e81f7eccd8a1613c52e'/>
<id>2df5858ce317caf4503c5e81f7eccd8a1613c52e</id>
<content type='text'>
All changes are mirrored to the underlying os.environ dict, but rolled back
on exit from the with block.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
All changes are mirrored to the underlying os.environ dict, but rolled back
on exit from the with block.
</pre>
</div>
</content>
</entry>
<entry>
<title>Standardize on test.test_support.run_unittest() (as opposed to a mix of run_unittest() and run_suite()). Also, add functionality to run_unittest() that admits usage of unittest.TestLoader.loadTestsFromModule().</title>
<updated>2007-04-25T17:29:52+00:00</updated>
<author>
<name>Collin Winter</name>
<email>collinw@gmail.com</email>
</author>
<published>2007-04-25T17:29:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=dab26405e88f847ad2db6ceba78e7357ef13f81b'/>
<id>dab26405e88f847ad2db6ceba78e7357ef13f81b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Patch #1349274: gettext.install() now optionally installs additional</title>
<updated>2006-02-19T13:26:36+00:00</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2006-02-19T13:26:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=2701d4394c154e60d6f285c040e97d967e437cfc'/>
<id>2701d4394c154e60d6f285c040e97d967e437cfc</id>
<content type='text'>
translation functions other than _() in the builtin namespace.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
translation functions other than _() in the builtin namespace.
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't try to create the directory if it already exists, otherwise the test fails</title>
<updated>2004-07-19T00:08:59+00:00</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2004-07-19T00:08:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=133f7b7fef5331c4101f41234ed256e69e916f72'/>
<id>133f7b7fef5331c4101f41234ed256e69e916f72</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Added a test for the fix of SF bug #658233, where continuation lines</title>
<updated>2003-05-20T17:28:54+00:00</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2003-05-20T17:28:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=80a29bd23e36758d20b81699f52bc1ca74fbd684'/>
<id>80a29bd23e36758d20b81699f52bc1ca74fbd684</id>
<content type='text'>
in .po metadata caused a crash.

Also, removed some unnecessary code.

Backport candidate.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
in .po metadata caused a crash.

Also, removed some unnecessary code.

Backport candidate.
</pre>
</div>
</content>
</entry>
<entry>
<title>Make tests clean up after themselves better.  This means:</title>
<updated>2003-04-27T19:42:41+00:00</updated>
<author>
<name>Brett Cannon</name>
<email>bcannon@gmail.com</email>
</author>
<published>2003-04-27T19:42:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=de4b20ec1d59b2532c1210afc6af2a6f102a5704'/>
<id>de4b20ec1d59b2532c1210afc6af2a6f102a5704</id>
<content type='text'>
* call tearDown when Setup is called
* shutil.rmtree the root of the created directory instead of just the leaf
  directory
* set the LANGUAGE environment variable to what it was originally and not
  assume 'en'.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* call tearDown when Setup is called
* shutil.rmtree the root of the created directory instead of just the leaf
  directory
* set the LANGUAGE environment variable to what it was originally and not
  assume 'en'.
</pre>
</div>
</content>
</entry>
<entry>
<title>UnicodeTranslationsTest.setUp(): Removed the coerce flag to the</title>
<updated>2003-04-24T18:08:13+00:00</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2003-04-24T18:08:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=68c6091a453c26d1e045aec810e16f377319092e'/>
<id>68c6091a453c26d1e045aec810e16f377319092e</id>
<content type='text'>
GNUTranslations constructor.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
GNUTranslations constructor.
</pre>
</div>
</content>
</entry>
<entry>
<title>Whitespace normalization.</title>
<updated>2003-04-24T16:02:54+00:00</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2003-04-24T16:02:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=38425ed060dd425bc6383c46c0a07b4ac57015a3'/>
<id>38425ed060dd425bc6383c46c0a07b4ac57015a3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>From http://mail.python.org/pipermail/i18n-sig/2003-April/001557.html</title>
<updated>2003-04-11T18:36:43+00:00</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2003-04-11T18:36:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=6a80f4e7d48ad99c08fd04fa09997a2a476db36c'/>
<id>6a80f4e7d48ad99c08fd04fa09997a2a476db36c</id>
<content type='text'>
- Expose NullTranslations and GNUTranslations to __all__

- Set the default charset to iso-8859-1.  It used to be None, which
would cause problems with .ugettext() if the file had no charset
parameter.  Arguably, the po/mo file would be broken, but I still think
iso-8859-1 is a reasonable default.

- Add a "coerce" default argument to GNUTranslations's constructor.  The
reason for this is that in Zope, we want all msgids and msgstrs to be
Unicode.  For the latter, we could use .ugettext() but there isn't
currently a mechanism for Unicode-ifying msgids.

The plan then is that the charset parameter specifies the encoding for
both the msgids and msgstrs, and both are decoded to Unicode when read.
For example, we might encode po files with utf-8. I think the GNU
gettext tools don't care.

Since this could potentially break code [*] that wants to use the
encoded interface .gettext(), the constructor flag is added, defaulting
to False.  Most code I suspect will want to set this to True and use
.ugettext().

- A few other minor changes from the Zope project, including asserting
that a zero-length msgid must have a Project-ID-Version header for it to
be counted as the metadata record.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Expose NullTranslations and GNUTranslations to __all__

- Set the default charset to iso-8859-1.  It used to be None, which
would cause problems with .ugettext() if the file had no charset
parameter.  Arguably, the po/mo file would be broken, but I still think
iso-8859-1 is a reasonable default.

- Add a "coerce" default argument to GNUTranslations's constructor.  The
reason for this is that in Zope, we want all msgids and msgstrs to be
Unicode.  For the latter, we could use .ugettext() but there isn't
currently a mechanism for Unicode-ifying msgids.

The plan then is that the charset parameter specifies the encoding for
both the msgids and msgstrs, and both are decoded to Unicode when read.
For example, we might encode po files with utf-8. I think the GNU
gettext tools don't care.

Since this could potentially break code [*] that wants to use the
encoded interface .gettext(), the constructor flag is added, defaulting
to False.  Most code I suspect will want to set this to True and use
.ugettext().

- A few other minor changes from the Zope project, including asserting
that a zero-length msgid must have a Project-ID-Version header for it to
be counted as the metadata record.
</pre>
</div>
</content>
</entry>
</feed>
