Author: jleroux
Date: Tue Sep 8 21:51:03 2009
New Revision: 812708
URL:
http://svn.apache.org/viewvc?rev=812708&view=revLog:
I'm not exactly sure why, but I had to put this test to be able to see only French labels (actually I was only looking for missing labels)
And there is always this initialisation issue which compels you to choose a file first before being able to choose all files
Modified:
ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/SearchLabels.ftl
Modified: ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/SearchLabels.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/SearchLabels.ftl?rev=812708&r1=812707&r2=812708&view=diff==============================================================================
--- ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/SearchLabels.ftl (original)
+++ ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/SearchLabels.ftl Tue Sep 8 21:51:03 2009
@@ -61,8 +61,10 @@
<#assign locale = Static["org.ofbiz.base.util.UtilMisc"].parseLocale(localeFound)?if_exists/>
<#assign langAttr = localeFound.toString()?replace("_", "-")>
<#assign langDir = "ltr">
- <#if "ar.iw"?contains(langAttr?substring(0, 2))>
- <#assign langDir = "rtl">
+ <#if 1 < langAttr?length>
+ <#if "ar.iw"?contains(langAttr?substring(0, 2))>
+ <#assign langDir = "rtl">
+ </#if>
</#if>
<option <#if parameters.labelLocaleName?exists && parameters.labelLocaleName == localeFound>selected="selected"</#if> value="${localeFound}" lang="${langAttr}" dir="${langDir}"><#if locale?exists && locale?has_content>${locale.getDisplayName(locale)}<#else>${localeFound}</#if></option>
</#list>