[opencms-dev] Locale

Jorge González informatico at hotelparadisepark.com
Mon Mar 14 18:25:07 CET 2005


There shall only be one (dog)

The dog1.xml has ALL the data, in each language.

Well, this approach is not perfect, because you could have a staff of
translators, and only one of them could have locked the dog1.xml, so no
paralell translation.

But this is a nice content structure, you can have your content organized in
the same tree and get the data in different languages using a link and a
property.

Remember that you can get the content data programatically using

----snip-----------------------------
<jsp:useBean id="cmsbean" class="org.opencms.jsp.CmsJspActionElement">
  <% cmsbean.init(pageContext, request, response); %>
</jsp:useBean>

<%
	// getting english content
	String content = cmsbean.getContent("path_to_xml", "property_name",
java.util.Locale.ENGLISH);
%>
----snip-----------------------------





More information about the opencms-dev mailing list