I did some more research in the meantime... only to get more questions! I added the following to my freemarker template:

i18n: ${i18n}<br />
ctx: ${ctx}<br />
ctx.locale: ${ctx.locale}<br />
i18n -> 'form.fieldset.editLabel': ${i18n['form.fieldset.editLabel']} <br />
i18n -> 'form.fieldset.newLabel: ${i18n['form.fieldset.newLabel']}<br />
content: ${content}<br />

What I'm getting is:

i18n: info.magnolia.freemarker.messageswrap...@7a5291d9
ctx: info.magnolia.context.webcontexti...@42e57c4c
ctx.locale: de
i18n -> 'form.fieldset.editLabel': ???form.fieldset.editLabel???
i18n -> 'form.fieldset.newLabel: New Fieldset
content: 0

Questions:
- Why does ${content} return "0" and ${content.i18nBasename} an error? According to http://documentation.magnolia-cms.com/reference/freemarker.html this should work - Why does one i18n key work and the other does not although both are in the strings file -> seems like a pebcak problem to me, but could not figure it out so far

-will

On 23.09.2009, at 17:39, Will Scheidegger wrote:


Dear Magnolians

The Form module freemarker templates contain i18n placeholders like this one:

${i18n['form.fieldset.editLabel']}

What do I have to do in my jsp templates in order for these placeholders to work? Do I have to set a locale somewhere?

Thanks for the insight!
-will

----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to