David Sean Taylor wrote:

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"

Did you try it with other decorators. I wrote my own decorator from scratch. I am not sure if there's something else I need to include in the pages before using the line:

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

I trid to copy the resource directory from Tigris over to my decorator and tried to use the exact same property, but the page is breaking with message:
"content not available"
A quick search shows that this exact property exists only in tigris/resources/Messages.properties and not in any of the localization files (ie, Messages_fr.properties ...etc.). So if I moved this message from the the default properties file (Messages.properties) to another resource file like (Messages_en.properties) it will never work. In this case, how can I do the localization in a decorator ? And before that How can I access even the default properties file (Messages.properties) from my new decorator?

Thank you in advance.





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



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

Reply via email to