svn commit: r1136786 - /ofbiz/trunk/applications/content/webapp/content/content/DisplayContentNav.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1136786 - /ofbiz/trunk/applications/content/webapp/content/content/DisplayContentNav.ftl

erwan
Author: erwan
Date: Fri Jun 17 06:23:16 2011
New Revision: 1136786

URL: http://svn.apache.org/viewvc?rev=1136786&view=rev
Log:
Internationalization for help tree

Modified:
    ofbiz/trunk/applications/content/webapp/content/content/DisplayContentNav.ftl

Modified: ofbiz/trunk/applications/content/webapp/content/content/DisplayContentNav.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/webapp/content/content/DisplayContentNav.ftl?rev=1136786&r1=1136785&r2=1136786&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/webapp/content/content/DisplayContentNav.ftl (original)
+++ ofbiz/trunk/applications/content/webapp/content/content/DisplayContentNav.ftl Fri Jun 17 06:23:16 2011
@@ -36,7 +36,10 @@ var rawdata = [
       <#macro fillTree assocList>
           <#if (assocList?has_content)>
             <#list assocList as assoc>
-                <#assign content  = delegator.findByPrimaryKey("Content",Static["org.ofbiz.base.util.UtilMisc"].toMap("contentId",assoc.contentIdTo))/>
+                <#assign content  = delegator.findOne("Content",{"contentId":assoc.contentIdTo},true)/>
+                <#if locale != "en">
+                  <#assign content = Static["org.ofbiz.content.content.ContentWorker"].findAlternateLocaleContent(delegator, content, locale)/>
+                </#if>
                 {
                 "data": {"title" : unescapeHtmlText("${content.contentName!assoc.contentIdTo}"), "attr": {"href": "javascript:void(0);", "onClick" : "callDocument('${assoc.contentIdTo}');"}},
                 <#assign assocChilds  = delegator.findByAnd("ContentAssoc",Static["org.ofbiz.base.util.UtilMisc"].toMap("contentId",assoc.contentIdTo,"contentAssocTypeId", "TREE_CHILD"), Static["org.ofbiz.base.util.UtilMisc"].toList("sequenceNum"))/>