Re: i18n of mockup
"David Glick (Plone)" <david.glick-z4DKO/[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.devel |
|---|---|
| Message-ID | <[email protected]> |
On 12/9/13, 5:53 AM, Rok Garbas wrote:
> Quoting Godefroid Chapelle (2013-12-09 14:14:48)
>> Le 09/12/13 12:52, Rok Garbas a écrit :
>>> you pass them via data attributes as options of pattern.
>>>
>>> for now nothing more fancy is needed.
>>>
>>>
>>> --
>>> Rok Garbas -http://www.garbas.si
>> Thanks for the hint
>>
>> Answer with a bit more details :
>>
>> If I want to configure message of preventdoublesubmit
>>
>> I need to add
>>
>> data-pat-preventdoublesubmit="message: You already clicked the submit
>> button. Do you really want to submit this form again?"
>>
>> attribute to the form element where the pattern is triggered.
>>
> you can actually put this into the body element. it will be then used by any
> preventdoublesubmit pattern inside body.
>
> also since i believe you will be generating this attribute using python you can
> also pass json, eg.:
>
> <body data-pat-preventdoublesubmit='{"message": "..."}'>
>
> please read more on this at http://plone.github.io/mockup/dev/#hello-world
>
>
It would be nice if global pattern options could be loaded as JSON from
a URL, so they can be cached rather than repeated for each page load.
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Plone-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plone-developers