ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 54590] New: Manual entry for the tstamp task uses incorrect country code UK in locale example
Date Wed, 20 Feb 2013 17:59:08 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=54590

            Bug ID: 54590
           Summary: Manual entry for the tstamp task uses incorrect
                    country code UK in locale example
           Product: Ant
           Version: 1.8.4
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Documentation
          Assignee: notifications@ant.apache.org
          Reporter: nicko@apache.org
    Classification: Unclassified

The manual entry for the tstamp task
(http://ant.apache.org/manual/Tasks/tstamp.html) provides an example of how to
configure the time stamp date format using a locale. This is the example:

  <tstamp>
    <format property="TODAY_UK" pattern="d-MMMM-yyyy" locale="en,UK"/>
  </tstamp>

Unfortunately UK is not a valid country code for a locale. I think the
intention was to use GB as the country code. GB is the iso country code for the
United Kingdom of Great Britain and Northern Ireland.

The Java Locale class doesn't really make this very clear by defining a
constant called UK for the en,GB locale. See
http://www.docjar.com/html/api/java/util/Locale.java.html#481

Please update the example in the manual to have the locale set to "en,GB".

-- 
You are receiving this mail because:
You are the assignee for the bug.

Mime
View raw message