On Sep 6, 2008, at 1:43 PM, Mansour Al Akeel wrote:

Sorry, not enough details in my previous email.
I have created my own velocity page layout. However, I need to localize it. So I copied the resources directory from the "blueOcean" layout and tried to access the properties in the way you mentioned.

<b>$rootFragment.decoration.getResourceBundle($preferedLocale, $ JS2RequestContext ).getString("desktop.pageeditor.dialog.labels.deletepage")</b>

However, this is not working. The object $rootFragment.decoration. is defined but, $rootFragment.decoration.getResourceBundle($preferedLocale, $JS2RequestContext) is not.


Can you please let me know if I am doing something wrong?

Not sure. I tried this with the 2.1.3 installer, with both Tigris and Blueocean page decorators. Both cases the expression:

<b>$rootFragment.decoration.getResourceBundle($preferedLocale, $ JS2RequestContext ).getString("desktop.pageeditor.dialog.labels.deletepage")</b>

evaluates to:

"Are you sure you want to delete this page"


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to