Change philip-20100910-H4r by phi...@philip-i7 on 2010-09-10 11:47:09 EDT
    in /cygdrive/c/clients/laszlo/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Add dojo_locale attribute to RTE component

New Features:

Bugs Fixed: LPP-9358

Technical Reviewer: max
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Overview:
dojo gets the current locale from the browser. I tried changing the locale in my browser but dojo was also saying that english was a valid language. To get around this, I added a dojo_locale attribute to the rte component. It defaults to '' which means no locale is specified.

Details:
rtemanager.js - Set djConfig.locale if a locale is set
rte.lzx - Add dojo_locale attribute and send to lz.rte.manager when set.


Tests:

/test/components/extensions/test/rte_test.lzx
rte_test has a combo box to select english, japanese, and german. Select a language and click the 'Recreate RTE' button.

This simple test shows how to specify dojo_locale

<canvas>
<include href="extensions/rte.lzx"/>
<rte width="800" height="600" dojo_locale="ja-jp">Hello</rte>
</canvas>


Files:
M       test/components/extensions/test/rte_test.lzx
M       lps/components/extensions/rte.lzx
M       lps/includes/source/rtemanager.js


Changeset: http://svn.openlaszlo.org/openlaszlo/patches/philip-20100910-H4r.tar

Reply via email to