PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-28969

Add Australian language properties, locale and timezones to Liferay Portal 6.0 and 6.1

    Details

    • Epic/Theme:
    • Similar Issues:
      Show 5 results 

      Description

      Overview

      Add Australian language properties, locale and timezones to Liferay Portal 6.0 and 6.1

      Changes

      Add Australian locale language properties

      • Clone en_GB language properties file as en_AU (ie. Language_en_AU.properties)

      Add Australian locale to portal properties

      • Australian locale "en_AU" to "locales" properties in "portal.properties" file
          locales=ar_SA,...,en_US,en_AU,en_GB,...,vi_VN
      (eg. locales=...,en_AU,...)
      

      Add Australian flag icon to unstyled theme

      • Add Australian flag icon to source folder "portal-web/docroot/html/themes/_unstyled/images/language/en_AU.png".
      • Icon will be included in "Classic" theme and available for selection in "Language Portlet".

      Add Australian capital cities and states to timezones in portal properties.

      • Australian timezones (see Australian timezones supported by JVM)
          #
          # Specify the available time zones. The specified ids must match those from
          # the class java.util.TimeZone.
          #
          time.zones=\
              Pacific/Midway,\
              ...,\
              Australia/ACT,\
              Australia/Adelaide,\
              Australia/Brisbane,\
              Australia/Canberra,\
              Australia/Darwin,\
              Australia/Hobart,\
              Australia/Melbourne,\
              Australia/NSW,\
              Australia/North,\
              Australia/Perth,\
              Australia/Queensland,\
              Australia/South,\
              Australia/Sydney,\
              Australia/Tasmania,\
              Australia/Victoria,\
              Australia/West,\
              ...,\
              Pacific/Kiritimati
      

      Add Australian locale to I18n Servlet in web descriptor file "ROOT/WEB-INF/web.xml".

      The following snippet shows how to add the Australian English (en_AU) as a new URL pattern.

      <servlet-mapping>
         <servlet-name>I18n Servlet</servlet-name>
         <url-pattern>/en_AU/*</url-pattern>    
      </servlet-mapping>   
      

      References

        Activity

        Hide
        Scott Palmer added a comment -

        Good news. Thanks!

        Show
        Scott Palmer added a comment - Good news. Thanks!
        Hide
        Michael Saechang added a comment -

        Committed on:
        Portal 6.2.x GIT ID: 7698fae65df524e2ccf8a7e9298275a491a4c295.

        Show
        Michael Saechang added a comment - Committed on: Portal 6.2.x GIT ID: 7698fae65df524e2ccf8a7e9298275a491a4c295.
        Hide
        Sharon Choi added a comment -

        PASSED Manual Testing using the following steps:

        1. Add the following line to portal-ext.properties file:
          locales=en_AU
        2. Start up Liferay
        3. Navigate to Liferay.com and add a test page and a Language portlet to the test page
        4. Assert that the Australian flag displays in the Language portlet
        5. Add the Software Catalog portlet to the page, assert that Software Catalog is now spelled as "Software Catalogue"
        6. Navigate to My Private Pages
        7. Assert that the Australian flag displays in the Language portlet
        8. Navigate to My Public Pages
        9. Assert that the Australian flag displays in the Language portlet
        10. Navigate to the Control Panel > Users and Organizations
        11. Click on a user
        12. Click Display Settings and assert that the Language dropdown displays "English (Australia)"
        13. Assert that Software Catalog is now spelled as "Software Catalogue" on the left navigation panel

        Reproduced on:
        Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 6372ab75da7ca5e9af787dc3d392bdae47e05063.

        It seems as though the language settings have been successfully implemented for Australia, and that everything is working correctly across Private and Public Pages of a site and in the Control Panel.

        Show
        Sharon Choi added a comment - PASSED Manual Testing using the following steps: Add the following line to portal-ext.properties file: locales=en_AU Start up Liferay Navigate to Liferay.com and add a test page and a Language portlet to the test page Assert that the Australian flag displays in the Language portlet Add the Software Catalog portlet to the page, assert that Software Catalog is now spelled as "Software Catalogue" Navigate to My Private Pages Assert that the Australian flag displays in the Language portlet Navigate to My Public Pages Assert that the Australian flag displays in the Language portlet Navigate to the Control Panel > Users and Organizations Click on a user Click Display Settings and assert that the Language dropdown displays "English (Australia)" Assert that Software Catalog is now spelled as "Software Catalogue" on the left navigation panel Reproduced on: Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 6372ab75da7ca5e9af787dc3d392bdae47e05063. It seems as though the language settings have been successfully implemented for Australia, and that everything is working correctly across Private and Public Pages of a site and in the Control Panel.
        Hide
        Tim Telcik added a comment -

        This is not yet complete.
        The Australian timezones for capital cities are missing in LP 6.2 CE M6.

        Show
        Tim Telcik added a comment - This is not yet complete. The Australian timezones for capital cities are missing in LP 6.2 CE M6.
        Hide
        Tim Telcik added a comment - - edited

        Duplicate time zone label for GMT+8 (aka. Perth, West) may affect some JREs

        Referring to JRE 1.6.0 running on Apple Mac OS X (10.8.4)

        Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-11M3811)
        

        the time zone label for GMT+8 is not unique.

        The time zone label for GMT+8 will only appear once in the time zone select list,
        due to a configuration issue in the JRE and the default behaviour of the HTML SELECT tag.

        Hence, on the time zone label "Australia/West" will be displayed in the time zone
        selection list.

        Most Australian time zones have duplicate GMT offsets with unique labels.

        eg.

        <option value="Australia/Sydney">(UTC +10:00) Eastern Standard Time (New South Wales)</option>
        <option value="Australia/Victoria">(UTC +10:00) Eastern Standard Time (Victoria)</option>
        

        However, the time zone label for Perth and AWST is not unique, hence can only be displayed once in a HTML select list.

        eg.

        <option value="Australia/Perth" selected="">(UTC +08:00) Western Standard Time (Australia)</option>
        <option value="Australia/West">(UTC +08:00) Western Standard Time (Australia)</option>
        

        The time zone label for Perth should be

        <option value="Australia/Perth" selected="">(UTC +08:00) Western Standard Time (Perth)</option>
        

        Hence, be aware that only one unique time zone label will be displayed for multiple time zone IDs (eg. GMT+8).

        Show
        Tim Telcik added a comment - - edited Duplicate time zone label for GMT+8 (aka. Perth, West) may affect some JREs Referring to JRE 1.6.0 running on Apple Mac OS X (10.8.4) Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-11M3811) the time zone label for GMT+8 is not unique. The time zone label for GMT+8 will only appear once in the time zone select list, due to a configuration issue in the JRE and the default behaviour of the HTML SELECT tag. Hence, on the time zone label "Australia/West" will be displayed in the time zone selection list. Most Australian time zones have duplicate GMT offsets with unique labels. eg. <option value= "Australia/Sydney" >(UTC +10:00) Eastern Standard Time (New South Wales)</option> <option value= "Australia/Victoria" >(UTC +10:00) Eastern Standard Time (Victoria)</option> However, the time zone label for Perth and AWST is not unique, hence can only be displayed once in a HTML select list. eg. <option value= "Australia/Perth" selected="">(UTC +08:00) Western Standard Time (Australia)</option> <option value= "Australia/West" >(UTC +08:00) Western Standard Time (Australia)</option> The time zone label for Perth should be <option value= "Australia/Perth" selected="">(UTC +08:00) Western Standard Time (Perth)</option> Hence, be aware that only one unique time zone label will be displayed for multiple time zone IDs (eg. GMT+8).

          People

          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development

                Structure Helper Panel