[Nuxeo-localizer] Re: [Zope] NuxDocument Nonfunctional
Myroslav Opyr
myroslav@zope.net.ua
Tue, 28 Jan 2003 18:58:49 +0200
Florent Guillaume wrote:
>Apparently Localizer (in fact, python gettext module) didn't correctly
>parse the charset of the .po files... Are they standard .po files? There
>should be a Content-Type: xxx; charset=3Dfoo header in them.
>
>If you could add debug statements to /local/lib/python2.1/gettext.py to
>track this down it would be helpful.
>
Florent, why Zope Product would require Localizer to be installed to=20
function correctly? We've just removed all gettext form .dtml files to=20
make it work. ZMI is mainly in English and that is pretty good solution=20
until Zope provide Basement for Product l10n. Until that time I see no=20
reason to force users to install Localizer just to see ZMI of that one=20
product (NuxDocument in our case) in other language. Note, there is no=20
fallback mechanism to make it work without Localizer installed.
And here is the case to mention our NuxDocument patch. We had to remocve=20
all convesions because NuxDocument just corrupted generated HTML from=20
wvWare which was perfect for use in our case (UTF-8 encoding). What=20
maillist is correct place for discussion of NuxDocument?
m.
>In article <1043428979.268.35.camel@kermit> you write:
> =20
>
>>On FreeBSD 4.7 I'm running Zope 2.5.1 that I've patched with all the
>>Unicode diffs from http://www.zope.org/Members/efge/i18n/Unicode-2.5.1.
>>I've also installed Localizer 1.0.0. All in an attempt to get
>>NuxDocument 1.1alpha functional. (I've installed all the necessary
>>converter apps as well: wvWare, etc.) I *think* I've installed
>>NuxDocument correctly, but the very first instruction is confusing:
>>
>>"Install the product in Products (NOT lib/python/Products!). The
>>ZNuxDocument product should appear in the ZMI."
>>
>>Well, the *only* "Products" directory in existence on my system is
>>lib/python/Products. So that's where I stuck it. Now I see a
>>"NuxDocument" available as something I can Add in the ZMI (not
>>"ZNuxDocument").
>>
>>Problem is, whenever I try to Add a NuxDocument, I get the following
>>Traceback from Localizer:
>>
>>=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D
>>
>>Error Type: LookupError
>>Error Value: unknown encoding
>>Traceback (innermost last):
>> File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py, line 150,
>>in publish_module
>> File /usr/local/www/Zope/lib/python/Products/Localizer/__init__.py,
>>line 58, in new_publish
>> File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py, line 114,
>>in publish
>> File /usr/local/www/Zope/lib/python/Zope/__init__.py, line 159, in
>>zpublisher_exception_hook
>> File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py, line 98, i=
n
>>publish
>> File /usr/local/www/Zope/lib/python/ZPublisher/mapply.py, line 88, in
>>mapply
>> (Object: addForm)
>> File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py, line 39, i=
n
>>call_object
>> (Object: addForm)
>> File /usr/local/www/Zope/lib/python/Shared/DC/Scripts/Bindings.py,
>>line 252, in __call__
>> (Object: addForm)
>> File /usr/local/www/Zope/lib/python/Shared/DC/Scripts/Bindings.py,
>>line 283, in _bindAndExec
>> (Object: addForm)
>> File /usr/local/www/Zope/lib/python/Products/Localizer/LocalFiles.py,
>>line 100, in _exec
>> (Object: addForm)
>> File /usr/local/www/Zope/lib/python/App/special_dtml.py, line 172, in
>>_exec
>> (Object: addForm)
>> File /usr/local/www/Zope/lib/python/DocumentTemplate/DT_Util.py, line
>>179, in eval
>> (Object: manage_form_title(this(), _,
>> form_title=3Dgettext('Add ZNuxDocument')))
>> (Info: this)
>> File <string>, line 0, in ?
>> File /usr/local/www/Zope/lib/python/Products/Localizer/LocalFiles.py,
>>line 82, in gettext
>> (Object: addForm)
>> File /usr/local/lib/python2.1/gettext.py, line 195, in ugettext
>>LookupError: (see above)
>> =20
>>
>
>
> =20
>
--=20
Myroslav Opyr
zope.net.ua <http://zope.net.ua/> =B0 Ukrainian Zope Hosting
e-mail: myroslav@zope.net.ua <mailto:myroslav@zope.net.ua>