This is an automated email from the ASF dual-hosted git repository.

mbrohl pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 7bca526  Fixed: StringOutOfBounds Exception while checking available 
Languages (OFBIZ-10707)
7bca526 is described below

commit 7bca526c10318d4f94d9e07f380adba43c67c2de
Author: Benjamin Jugl <benjamin.j...@ecomify.de>
AuthorDate: Wed Feb 3 10:24:58 2021 +0100

    Fixed: StringOutOfBounds Exception while checking available Languages
    (OFBIZ-10707)
---
 themes/common-theme/template/includes/ListLocales.ftl | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/themes/common-theme/template/includes/ListLocales.ftl 
b/themes/common-theme/template/includes/ListLocales.ftl
index 82c7ca7..e521362 100644
--- a/themes/common-theme/template/includes/ListLocales.ftl
+++ b/themes/common-theme/template/includes/ListLocales.ftl
@@ -31,7 +31,9 @@ under the License.
       <#assign altRow = !altRow>
       <#assign langAttr = availableLocale.toString()?replace("_", "-")>
       <#assign langDir = "ltr">
-      <#if "ar.iw"?contains(langAttr?substring(0, 2))>
+      <#if 
Static["java.awt.ComponentOrientation"].getOrientation(availableLocale).isLeftToRight()>
+        <#assign langDir = "ltr">
+      <#else>
         <#assign langDir = "rtl">
       </#if>
       <tr <#if altRow>class="alternate-row"</#if>>

Reply via email to