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/10/13, 4:34 PM, Rok Garbas wrote:
> Quoting Johannes Raggam (2013-12-10 21:28:13)
>> On Die, 2013-12-10 at 10:32 -0800, David Glick (Plone) wrote:
>>> 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.
>> +1
>>
> then we are not far from a place where we could load all our javascript with
> requirejs :) we could skip almond packing altogether and just use requirejs all
> the way.
>
Well, no. You still want to limit the number of HTTP requests on first 
load, and you still want to be able to deploy updates to the js.


------------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.