JDK-5104387 : Support for gl_ES locale (galician language)
  • Type: Enhancement
  • Component: globalization
  • Sub-Component: translation
  • Affected Version: 1.4.2
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • CPU: x86
  • Submitted: 2004-09-20
  • Updated: 2012-10-29
  • Resolved: 2012-09-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8 b55Fixed
Related Reports
Relates :  
Description
Name: rmT116609			Date: 09/20/2004


A DESCRIPTION OF THE REQUEST :
Add support for the locale gl_ES in the jre for date, currency and date format. This locale identifies the galician language.

JUSTIFICATION :
The galician language (gl_ES) is a official language at Spain and in near future at the European Union. This locale is needed to format dates and number in a intertionalized application.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The currency, number format and date format is identical to Spanish locale (es_ES). The difference is days and months names. The full list of days and months in galician are:
january = "xaneiro"
february = "febreiro"
march = "marzo"
april = "abril"
may = "maio"
june = "xu\u00f1o"
july = "xullo"
august = "agosto"
september = "setembro"
october = "outubro"
november = "novembro"
december = "decembro"
month 13 if applicable = ""
abb january = "xan."
abb february = "feb."
abb march = "mar."
abb april = "abr."
abb may = "maio"
abb june = "xu\u00f1o"
abb july = "xullo"
abb august = "ag."
abb september = "set."
abb october = "oct."
abb november = "nov."
abb december = "dec."
abb month 13 if applicable = ""
Sunday = "domingo"
Monday = "luns"
Tuesday = "martes"
Wednesday = "m\u00e9rcores"
Thursday = "xoves"
Friday = "venres"
Saturday = "sabado"
abb Sunday = "do."
abb Monday = "lu."
abb Tuesday = "ma."
abb Wednesday = "me."
abb Thursday = "xo."
abb Friday = "ve."
abb Saturday = "sa."

ACTUAL -
No locale support

---------- BEGIN SOURCE ----------
import java.util.Locale;
import java.text.DateFormat;

class Test  {
  public static void main(String[] ar) {
    Locale l = new Locale("gl", "ES");
    DateFormat df = DateFormat.getDateInstance(DateFormat.LONG, l);
    System.out.println(df.format(new Date()));
  }
}
---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
1M-^O���� Implement the classes sun.text.resources.LocaleElements_gl and sun.text.resources.DateFormatZoneData_gl (search the net for a implementation of other locale).
2M-^O���� Copy a .jar with this classes in the $JAVA_HOME/jre/lib/ext directory
(Incident Review ID: 311032) 
======================================================================

Comments
Run the new test developed for JEP 127 with latest JPRT build and JDK8 b62.
29-10-2012

SUGGESTED FIX http://hg.openjdk.java.net/jdk8/tl/jdk/rev/131a683a2ce0
21-08-2012

EVALUATION gl and al_ES locales will be supported in JDK8 as CLDR support.
18-05-2012

EVALUATION The EU is acception the galician but it is not promoted as a official EU language. In the spain it has status of official language. See: http://en.wikipedia.org/wiki/Galician_language The request is for gl_ES so it sound reasonable to have it implemented.
16-10-2007

EVALUATION Name: nl37777 Date: 09/20/2004 Can you please provide evidence (preferably an official EU statement) for the claim that Galician will in the near future be an official language of the European Union? ====================================================================== Third party will be able to translate locale data with the following RFE. 4052440 RFE: Pluggable locale support ###@###.### 2005-03-22 20:24:50 GMT
22-03-2005