From 1a05bb40cd76b29b60a7fed4679a78bbe4682eb7 Mon Sep 17 00:00:00 2001 From: Adrian Crum Date: Sat, 26 May 2012 04:32:22 +0000 Subject: [PATCH] Fixed a bug in an eCommerce Freemarker template - https://issues.apache.org/jira/browse/OFBIZ-4899. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1342852 13f79535-47bb-0310-9956-ffa450edef68 --- .../ecommerce/webapp/ecommerce/includes/headerHead.ftl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/specialpurpose/ecommerce/webapp/ecommerce/includes/headerHead.ftl b/specialpurpose/ecommerce/webapp/ecommerce/includes/headerHead.ftl index e456653679..ab0636bc42 100644 --- a/specialpurpose/ecommerce/webapp/ecommerce/includes/headerHead.ftl +++ b/specialpurpose/ecommerce/webapp/ecommerce/includes/headerHead.ftl @@ -16,7 +16,12 @@ KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> - +<#assign docLangAttr = locale.toString()?replace("_", "-")> +<#assign langDir = "ltr"> +<#if "ar.iw"?contains(docLangAttr?substring(0, 2))> + <#assign langDir = "rtl"> + + <#if title?has_content>${title}<#elseif titleProperty?has_content>${uiLabelMap.get(titleProperty)}</#if>: ${(productStore.storeName)?if_exists}