[Zope-dev] Zope Exceptions and translation
Andre Schubert
andre.schubert@geyer.kabeljournal.de
Tue, 04 Dec 2001 08:59:09 +0100
Trevor Toenjes schrieb:
>
> This proposal is dead-on to make the errors more accessible and
> customizable. This is the solution to some of my previous error_message
> threads.
>
> How do we move this from proposal to project?
>
> Why not start with a less ambitious first phase of opening up Exceptions
> control as a "product". How about a Folder attribute or a
> standard_error_message controller?
Yes thats it let us begin this project because it seems that a lot of
poeple would use it.
> Then with time ready it for the core.
Thats the way.
Thanks as
> -Trevor
>
> > -----Original Message-----
> > From: zope-dev-admin@zope.org [mailto:zope-dev-admin@zope.org]On Behalf
> > Of Andre Schubert
> > Sent: Monday, December 03, 2001 11:09 AM
> > To: seb bacon
> > Cc: zope
> > Subject: Re: [Zope-dev] Zope Exceptions and translation
> >
> >
> > Hi,
> >
> > yes it is a big job, but i started at all form-based exceptions,
> > because the members of our websites can manage many things over
> > web-forms, thats why i tried to patch
> > all HTTPResponse-exceptions with writing a product that patches the
> > correspondend functions,
> > further i patched Converters.py so that it returns german error_values.
> > Thats the work i have done and it seems to work for me.
> > All i want is a Product which catches as many exceptions as possible and
> > translate them into, for me, german.
> > I also thought that i can design the product as like as zzlocale, thats
> > its easy to translate into other languages.
> >
> > I dont want to hack the sources, i want a Product but its hard to
> > program all the exceptions.
> >
> > thanks as
> >
> > seb bacon schrieb:
> > >
> > > You're certainly right, but it would be a big job. In fact I recently
> > > started a proposal on the subject (bare bones). Please add to it!
> > > Especially the requirement for i18n.
> > >
> > > http://dev.zope.org/Wikis/DevSite/Proposals/ClassBasedExceptions
> >
> > What and how should it add???
> >
> > >
> > > seb
> > >
> > > * Andre Schubert <andre.schubert@geyer.kabeljournal.de> [011203 15:10]:
> > > > Hi all,
> > > >
> > > > I'am looking for several products to translate zope-site into german.
> > > > I have found ZBabel and it works very fine for normal websites.
> > > > It always works fine in the standard_error_message if there is an
> > > > error_value and an error_type.
> > > > But it doesnt work if i get an string exception, because the
> > error_value
> > > > is an complete html-site.
> > > > Therefore i tryed to patch some Exceptions in HTTPResponse to raise an
> > > > class-Exception and a short string
> > > > as error_value.
> > > > The problem i see is that all exceptions in zope are raised in many
> > > > defferent places and thats very difficult
> > > > to patch them or to make them translation-able.
> > > > I think it is a good way to change all string-exceptions like these in
> > > > HTTPResponse to class-exceptions and the error_value
> > > > to a normal description. With these changes the standard_error_message
> > > > could be raised and there is an ability to
> > > > translate the error_value.
> > > > Do i think in the right way or did i missing any facts
> > > >
> > > > thanks as
> > > >
> > > > _______________________________________________
> > > > Zope-Dev maillist - Zope-Dev@zope.org
> > > > http://lists.zope.org/mailman/listinfo/zope-dev
> > > > ** No cross posts or HTML encoding! **
> > > > (Related lists -
> > > > http://lists.zope.org/mailman/listinfo/zope-announce
> > > > http://lists.zope.org/mailman/listinfo/zope )
> > >
> > > --
> > >
> > > [] j a m k i t
> > >
> > > seb bacon
> > > T: 020 7749 7218
> > > F: 020 7739 8683
> > > M: 07968 301 336
> > > W: www.jamkit.com
> > >
> > > _______________________________________________
> > > Zope-Dev maillist - Zope-Dev@zope.org
> > > http://lists.zope.org/mailman/listinfo/zope-dev
> > > ** No cross posts or HTML encoding! **
> > > (Related lists -
> > > http://lists.zope.org/mailman/listinfo/zope-announce
> > > http://lists.zope.org/mailman/listinfo/zope )
> >
> > _______________________________________________
> > Zope-Dev maillist - Zope-Dev@zope.org
> > http://lists.zope.org/mailman/listinfo/zope-dev
> > ** No cross posts or HTML encoding! **
> > (Related lists -
> > http://lists.zope.org/mailman/listinfo/zope-announce
> > http://lists.zope.org/mailman/listinfo/zope )
> >
>
> _______________________________________________
> Zope-Dev maillist - Zope-Dev@zope.org
> http://lists.zope.org/mailman/listinfo/zope-dev
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope )