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

Shane Hathaway shane at zope.com
Wed Aug 20 11:36:12 EDT 2003


Philipp von Weitershausen wrote:
> 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?

I was about to suggest that we need to finish the other fork of this 
discussion first.  Then I remembered the XP principle of incremental 
refactoring.  So this refactoring can happen first, but I hope it won't 
be the last one.

Shane




More information about the Zope3-dev mailing list