[I18n-sig] Re: [4suite] 4Suite 0.10.2 alpha 1

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Sun, 4 Feb 2001 16:13:21 +0100

> Please test the new internationalization: French and German translations
> hve been added courtesy Alexandre and Martin.

This is indeed causing problems for me. Invoking 4xslt gives

raceback (most recent call last):
  File "/usr/local/bin/4xslt", line 4, in ?
    from xml.xslt import _4xslt
  File "/usr/local/lib/python2.1/site-packages/_xmlplus/xslt/__init__.py", line
16, in ?
    from xml import xpath
  File "/usr/local/lib/python2.1/site-packages/_xmlplus/xpath/__init__.py", line 41, in ?
    import XPathParserBase
  File "/usr/local/lib/python2.1/site-packages/_xmlplus/xpath/XPathParserBase.py", line 7, in ?
    gettext.install('4Suite', locale_dir)
  File "/usr/local/lib/python2.1/gettext.py", line 251, in install
    translation(domain, localedir).install(unicode)
  File "/usr/local/lib/python2.1/gettext.py", line 238, in translation
    raise IOError(ENOENT, 'No translation file found for domain', domain)
IOError: [Errno 2] No translation file found for domain: '4Suite'

The problem is two-fold: For one thing, there is no German xpath
message catalog. However, it shouldn't fail if LANG is set to an
unsupported language, so you should catch IOError also.

I consider this is a gettext bug: gettext should not fail in the
absence of a catalog, but default to the "C" locale.