I have a site that has translations for both Engish and French. On a product 
page, I have a description in both English and French for the product and this 
is working as expected on the product page. Now, on a different page, I am 
trying to load in that product using cmsfn.contentById() to get the product and 
display it's information. When i do this, the data does not seem to switch back 
and forth between French and English like it should. It only seems to display 
in English. When I looked through the source code, I didn't see anything in 
contentById that takes care of internationalization, nor did I see any other 
helper functions to do this in cmsfn. I ended up writing my own function that 
you pass the data in and utilizes the I18nContentDecorator class. This seems to 
work just fine. My question is, is this the easiest way to handle this issue, 
or did I miss something? I would assume that the cmsfn functions for retrieving 
content are popular enough that there should be some built in functions for 
taking care of i18n but I was having trouble finding any. Thanks in advance for 
any help on the situation.

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=5b5ea7dc-99e1-45a3-a7fe-83d778af1ccf


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

Reply via email to