Put this line somewhere near the beginning of the templates file:

[#assign cms=JspTaglibs["cms-taglib"]]

It will load the cms-taglib (I'm assuming here that you are using
Freemarker for templating)

Now, say you have something like this in your template:
<h2 class="summary">${content.eventTitle}</h2>

Change it to:
<h2 class="summary">[[email protected] nodeDataName="eventTitle" /]</h2>

Now it should be i18n aware.

HTH :)
Best regards,
Igor Klimer

On Wed, Jul 8, 2009 at 12:53 PM, Dennis
Buenzel<[email protected]> wrote:
>
> Hi Igor,
> thanks for your reply!
>
> Could you paste an example for the use of cms:out? I'm not good in such 
> things and can't get it running via the example in the tag libary
>
> -----Ursprüngliche Nachricht-----
> Von: [email protected] 
> [mailto:[email protected]] Im Auftrag von Igor Klimer
> Gesendet: Mittwoch, 8. Juli 2009 11:40
> An: Magnolia User-List
> Betreff: Re: [magnolia-user] How to enable i18n in 4.1?
>
>
> I had some problems with that too - take a look at
> http://jira.magnolia-cms.com/browse/MAGNOLIA-2803 and
> http://www.nabble.com/i18n-and-cms%3Aout---%24%7B...%7D-td24234038.html
>
> Basically, try to change your templates (the ones in the stk too) to
> use cms:out instead of ${content.nodeName} - at least till that bug is
> fixed.
>
> HTH & best regards,
> Igor Klimer
>
> On Tue, Jul 7, 2009 at 3:05 PM, Dennis
> Buenzel<[email protected]> wrote:
>> Hi there, me again ;-)
>>
>>
>>
>> I followed this tutorial:
>> http://wiki.magnolia-cms.com/display/WIKI/Introduction+to+I18nContentSupport
>>
>> as far as it was possible (I used
>> "config/modules/stk/dialoges/paragraphs/content/stkTextImage/tab"Text
>> instead of the path in the tutorial for copying and renaming)
>>
>> I already found out that I have to rename "text" to "text_en" too, to make
>> that thing work, but it still doesn't >:(
>>
>>
>>
>> I enabled i18n content support and I have the /en/ and /de/ seperation in my
>> URL, I have additional text & subheadline fields in my texttab but all I get
>> is the english output.
>>
>>
>>
>> Anything I might have done wrong or some additional stuff to do with stk?
>>
>>
>>
>> Thanks
>>
>> Dennis
>>
>>
>>
>> ________________________________
>> ----------------------------------------------------------------
>> 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]>
> ----------------------------------------------------------------
>
>
> ----------------------------------------------------------------
> 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