Author: jacopoc
Date: Tue May 22 22:12:48 2007
New Revision: 540843
URL:
http://svn.apache.org/viewvc?view=rev&rev=540843Log:
Applied patch from Adrian Crum to render languages in the language drop down box in the native language.
OFBIZ-1003
Modified:
ofbiz/trunk/framework/common/webcommon/includes/header.ftl
Modified: ofbiz/trunk/framework/common/webcommon/includes/header.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/webcommon/includes/header.ftl?view=diff&rev=540843&r1=540842&r2=540843==============================================================================
--- ofbiz/trunk/framework/common/webcommon/includes/header.ftl (original)
+++ ofbiz/trunk/framework/common/webcommon/includes/header.ftl Tue May 22 22:12:48 2007
@@ -74,10 +74,10 @@
<#list availableLocales as availableLocale>
<#assign langAttr = availableLocale.toString()?replace("_", "-")>
<#assign langDir = "ltr">
- <#if "ar.iw"?contains(langAttr?substring(0, 2)) && langAttr?substring(0, 2) = docLangAttr?substring(0, 2)>
+ <#if "ar.iw"?contains(langAttr?substring(0, 2))>
<#assign langDir = "rtl">
</#if>
- <option lang="${langAttr}" dir="${langDir}" value="${availableLocale.toString()}"<#if locale.toString() = availableLocale.toString()> selected="selected"</#if>>${availableLocale.getDisplayName(locale)}</option>
+ <option lang="${langAttr}" dir="${langDir}" value="${availableLocale.toString()}"<#if locale.toString() = availableLocale.toString()> selected="selected"</#if>>${availableLocale.getDisplayName(availableLocale)}</option>
</#list>
</select>
<input type="submit" value="${uiLabelMap.CommonSet}"/>