[jira] [Created] (OFBIZ-6309) Freemarker errors at lanaguge change page due to locale with no display name returned by Locale.getAvailableLocales() in UtilMisc.java#getAvailableLocaleList

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

[jira] [Created] (OFBIZ-6309) Freemarker errors at lanaguge change page due to locale with no display name returned by Locale.getAvailableLocales() in UtilMisc.java#getAvailableLocaleList

Nicolas Malin (Jira)
Christian Carlow created OFBIZ-6309:
---------------------------------------

             Summary: Freemarker errors at lanaguge change page due to locale with no display name returned by Locale.getAvailableLocales() in UtilMisc.java#getAvailableLocaleList
                 Key: OFBIZ-6309
                 URL: https://issues.apache.org/jira/browse/OFBIZ-6309
             Project: OFBiz
          Issue Type: Improvement
          Components: framework
    Affects Versions: Trunk
            Reporter: Christian Carlow


For some reason Locale.getAvailableLocales() returns an array list whose first member is a locale without a display name which causes an FTL error at ListLocales page.  The error is not occurring for the demo trunk.  The attached patch adds a line to UtilMisc to check that a displayName exists before adding the locale to the list in case the same happens for other users.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)