[Zope3-dev] There's something wrong with having message ids in
schemas
Paul Winkler
pw_lists at slinkp.com
Thu Dec 9 10:09:41 EST 2004
On Thu, Dec 09, 2004 at 09:15:17AM -0500, Stephan Richter wrote:
> The declaration
>
> >>> class IFoo(Interface):
> ...
> ... bar = Field(
> ... title="Bar",
> ... description="This is a Bar")
>
> would be equivalent to todays spelling of
>
> >>> from zope.app.i18n import ZopeMessageIdFactory as _
> >>> class IFoo(Interface):
> ...
> ... bar = Field(
> ... title=_("Bar"),
> ... description=_("This is a Bar"))
>
>
> Here is the catch though. `zope.schema` would still depend on
> `zope.i18nmessageid`. But the benefit is that only `zope.schema` would need
> some code to handle the case when the `zope.i18nmessageid` code is not
> available.It would definitely free all `zope.*` packages of the explicit
> `zope.i18nmessageid` dependency.
You're proposing to remove all usage of _()?
But then how does xgettext or pygettext identify translatable strings in
the source code?
--
Paul Winkler
http://www.slinkp.com
More information about the Zope3-dev
mailing list