[Zope3-dev] Re: i18n domains vs. unique message ids -OR- whyShakespearean English was better

Philipp von Weitershausen philipp at weitershausen.de
Wed Aug 20 10:23:58 EDT 2003


Shane Hathaway wrote:
> On Wed, 20 Aug 2003, Martijn Faassen wrote:
> 
>>Note that an XML design pattern is to avoid putting human-readable text
>>in attributes. That is, text that passes along to some user interface or
>>readable document format or whatnot would need to be element content:
>>
>><browser:editform name="edit">
>>   <schema src="some.schema"/>
>>   <label msgid="my-form-msg-id">Default form label</label>
>>    <menu id="menu_id" msgid="my-menu-msg-id">Default menu title</menu>
>></browser:editform>
> 
> 
> Excellent point.  I agree completely.

You both have valid point here, apart from the message id discussion. I 
already suggested refactoring some of the heavier directives like 
browser:*form to use more subdirectives. The current ZCML framework 
actually supports all of this, all we'd have to do is refactor all 
meta.zcmls, metadirectives.py, metaconfigure.py and last, but definitely 
not least, configure.zcml files (again!).

Someone would have to go through all of the directives and propose how 
they should be changed. I can imagine many schemata being shared 
globally then, such as an IMenuSubdirective schema (example above).

Anyone willing to do the proposal?

Philipp




More information about the Zope3-dev mailing list